tests: cover a GPU-written slot 67 indirect Dispatch fixture (#2492) #2552

Closed
lambirou wants to merge 1 commit from upstream-pr/2560 into main
lambirou commented 2026-11-25 21:02:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T21:02:47Z.


Problem

Issue #2492 asks for a source-built fixture proving a GPU-written indirect Dispatch through a translated slot 67 pipeline. On main the positive GPU path does not exist yet: device slot 67 only publishes a placeholder compute request, and command-list slot 61 refuses it with "requires a desktop compute pipeline and root".

Change

  • Add tests/startup_slot67_indirect_dispatch_check.py: a 320-word, sentinel-prefilled oracle with a 3-DWORD Dispatch record written at byte 4 of a placed argument buffer (head/tail guards), two GPU-written group counts (2 and 5), a consumer word per group, and one fenced queue.
  • Negative controls: zeroed record with the producer omitted keeps all 320 sentinels, missing translation refuses with the output untouched, a single-word mutation and a 2-vs-5 swap are caught.
  • Register startup_slot67_indirect_dispatch_{warp,hardware} as capability-skipped checks (exit 77) that also assert the current wiring refusals, so the test becomes positive the day #2470 and the slot 61 binding land.
  • The script states the missing runtime link explicitly: d3d12_compute_dispatch.inl/dispatch_translated, the list_dispatch hook, and the slot 61 translated-compute branch.

Verification

python -B tests/startup_slot67_indirect_dispatch_check.py          # PASS
python -B tests/startup_slot67_indirect_dispatch_check.py e2e warp # 77 (capability)
python -B tests/docs_links_check.py                                # 19 files, 479 links
git diff --check                                                   # clean

The WARP/hardware CTests cannot build here (no cmake/ninja on this host's PATH); the skip reason is explicit.

Limits

  • Positive GPU execution is not claimed: the fixture is skipped until the translated-compute wiring lands.
  • The oracle constants (sentinel, consumer base) must be confirmed against the real slot 67 program, descriptors and root constants with #2470.
  • Extra refusals for the future GPU fixture: multiple commands, count buffer, out-of-range record, argument buffer bound as shader output.

Refs #2492, #2470.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6613696100 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2560). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-25T21:02:47Z. --- ## Problem Issue #2492 asks for a source-built fixture proving a GPU-written indirect Dispatch through a translated slot 67 pipeline. On `main` the positive GPU path does not exist yet: device slot 67 only publishes a placeholder compute request, and command-list slot 61 refuses it with "requires a desktop compute pipeline and root". ## Change - Add `tests/startup_slot67_indirect_dispatch_check.py`: a 320-word, sentinel-prefilled oracle with a 3-DWORD Dispatch record written at byte 4 of a placed argument buffer (head/tail guards), two GPU-written group counts (2 and 5), a consumer word per group, and one fenced queue. - Negative controls: zeroed record with the producer omitted keeps all 320 sentinels, missing translation refuses with the output untouched, a single-word mutation and a 2-vs-5 swap are caught. - Register `startup_slot67_indirect_dispatch_{warp,hardware}` as capability-skipped checks (exit 77) that also assert the current wiring refusals, so the test becomes positive the day #2470 and the slot 61 binding land. - The script states the missing runtime link explicitly: `d3d12_compute_dispatch.inl`/`dispatch_translated`, the `list_dispatch` hook, and the slot 61 translated-compute branch. ## Verification ``` python -B tests/startup_slot67_indirect_dispatch_check.py # PASS python -B tests/startup_slot67_indirect_dispatch_check.py e2e warp # 77 (capability) python -B tests/docs_links_check.py # 19 files, 479 links git diff --check # clean ``` The WARP/hardware CTests cannot build here (no cmake/ninja on this host's PATH); the skip reason is explicit. ## Limits - Positive GPU execution is not claimed: the fixture is skipped until the translated-compute wiring lands. - The oracle constants (sentinel, consumer base) must be confirmed against the real slot 67 program, descriptors and root constants with #2470. - Extra refusals for the future GPU fixture: multiple commands, count buffer, out-of-range record, argument buffer bound as shader output. Refs #2492, #2470.
upstream-sync closed this pull request 2026-11-25 22:02:04 +00:00
R0Y00 commented 2026-11-25 22:02:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T21:05:58Z.

Review: CHANGES_REQUESTED


The 2/5-count oracle and untouched-tail controls are useful. #2492 already has an assigned contributor and a source-built draft with actual GPU execution on the current #2470 line, including the common direct/indirect oracle, both argument guards and WARP/Intel/RTX results. Please coordinate any extra oracle controls with @RavenCurseBurg in the existing #2492 thread before proceeding here. Keep the runtime-dependent CTests with the implementation that executes them. A test that only reports the implementation missing would never exercise the GPU path on main. Existing fixture, direct reference and controls

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6064979438 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2560#pullrequestreview-6064979438). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T21:05:58Z. **Review:** CHANGES_REQUESTED --- The 2/5-count oracle and untouched-tail controls are useful. #2492 already has an assigned contributor and a source-built draft with actual GPU execution on the current #2470 line, including the common direct/indirect oracle, both argument guards and WARP/Intel/RTX results. Please coordinate any extra oracle controls with @RavenCurseBurg in the existing #2492 thread before proceeding here. Keep the runtime-dependent CTests with the implementation that executes them. A test that only reports the implementation missing would never exercise the GPU path on main. [Existing fixture, direct reference and controls](https://github.com/R0Y00/Xbox2Windows/issues/2492#issuecomment-7172530852)
RavenCurseBurg commented 2026-11-25 22:02:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T21:09:40Z.


I'm working on the runtime and executable fixture for #2492 with the #2470 author. Both branches register the same CTest names and add the same Python path. At this head, the two e2e branches both return 77, including when wiring_present is true. Merging #2470 alone would still leave those tests skipped.

The current fixture and slot 61 implementation run a real GPU producer, direct and indirect 2/5-group references, both argument guards and all 320 output words on #2470 head 1f5fb5e4. Five Release WARP tests and the Intel, RTX and WARP readbacks passed. The maintainer asked me to submit that branch after its parent settles. Coordination and physical results.

The executable zero case also omits the producer, copies back the guarded zero record and checks that all 320 output words keep their sentinels after the fence. The pure-Python single-word mutation in this PR could be kept as a small independent oracle check if you want to carry that part forward.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174692695 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2560#issuecomment-7174692695). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T21:09:40Z. --- I'm working on the runtime and executable fixture for #2492 with the #2470 author. Both branches register the same CTest names and add the same Python path. At this head, the two `e2e` branches both return 77, including when `wiring_present` is true. Merging #2470 alone would still leave those tests skipped. The [current fixture and slot 61 implementation](https://github.com/RavenCurseBurg/Xbox2Windows/commit/cf30dc3469ceed3569059b42a6dab656c2df7506) run a real GPU producer, direct and indirect 2/5-group references, both argument guards and all 320 output words on #2470 head `1f5fb5e4`. [Five Release WARP tests](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45699987210) and the Intel, RTX and WARP readbacks passed. The maintainer asked me to submit that branch after its parent settles. [Coordination and physical results](https://github.com/R0Y00/Xbox2Windows/issues/2492#issuecomment-7172530852). The executable zero case also omits the producer, copies back the guarded zero record and checks that all 320 output words keep their sentinels after the fence. The pure-Python single-word mutation in this PR could be kept as a small independent oracle check if you want to carry that part forward.
lambirou commented 2026-11-25 22:02:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T21:27:22Z.


Thanks — withdrawing this in favour of @RavenCurseBurg's fixture on #2492.

You are right that the e2e branches here can only report the missing runtime wiring and never exercise the GPU path; the runtime-dependent CTests belong with the implementation that runs them (#2470 line). The one piece that may still be worth carrying is the pure-Python single-word mutation oracle over the sentinel-prefilled 320-word readback; I have offered it in the #2492 thread.

Closing to avoid a duplicate of the assigned work.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175100000 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2560#issuecomment-7175100000). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-25T21:27:22Z. --- Thanks — withdrawing this in favour of @RavenCurseBurg's fixture on #2492. You are right that the `e2e` branches here can only report the missing runtime wiring and never exercise the GPU path; the runtime-dependent CTests belong with the implementation that runs them (#2470 line). The one piece that may still be worth carrying is the pure-Python single-word mutation oracle over the sentinel-prefilled 320-word readback; I have offered it in the #2492 thread. Closing to avoid a duplicate of the assigned work.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2552
No description provided.