tests: expect the output-token refusal for a texture token in the output check #3394

Merged
Not-Saii merged 1 commit from upstream-pr/3394 into main 2026-11-29 08:38:10 +00:00
Not-Saii commented 2026-11-28 19:01:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T19:01:05Z.


Refs #3224

startup_compute_dispatch_output_warp fails on main. Its dispatch-output-texture-token case (from #3229) expects an output buffer descriptor is a view token. Since #3094 (71844ba0), the dispatch path handles output view tokens before the descriptor checks: it binds a buffer UAV token and refuses any other token with an output token does not identify a slot-19 UAV. The fixture's texture-view token now gets that reason. #3229's docs note anticipated this ("with #2961, reason 1 is not reached").

  • tests/startup_compute_dispatch_output_check.py: the case expects the token-path reason, and the docstring says why.
  • docs/experiments/compute-output-buffer-reasons.md: says reason 1 is no longer reached and names the fixture's reason.

No runtime change. The case still checks that a texture token in an output slot is refused before any dispatch and leaves every output word at its sentinel.

Verification

Commit 3ec83c1f on main f2972840. Windows 11 build 26300, MSVC x64 Debug, Windows SDK 10.0.26100 DXC, D3D12 debug layer enabled.

cmake --build --preset dev --target d3d12_xs_shim startup_stream_consumer
ctest --preset dev --no-tests=error -V -R "^startup_compute_dispatch_output_(warp|hardware)$"
  • startup_compute_dispatch_output_warp (Microsoft Basic Render Driver): passed.
  • startup_compute_dispatch_output_hardware (NVIDIA GeForce RTX 4090, driver 32.0.16.1088): passed.
  • Before the change: the full Windows workflow on #3386's branch (base 6685de7c, run 46174085372) failed startup_compute_dispatch_output_warp on this assertion. The log shows Dispatch(3, 2, 2) refused: an output token does not identify a slot-19 UAV.

AI-assisted.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5543577699 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3394). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T19:01:05Z. --- Refs #3224 `startup_compute_dispatch_output_warp` fails on `main`. Its `dispatch-output-texture-token` case (from #3229) expects `an output buffer descriptor is a view token`. Since #3094 (`71844ba0`), the dispatch path handles output view tokens before the descriptor checks: it binds a buffer UAV token and refuses any other token with `an output token does not identify a slot-19 UAV`. The fixture's texture-view token now gets that reason. #3229's docs note anticipated this ("with #2961, reason 1 is not reached"). - `tests/startup_compute_dispatch_output_check.py`: the case expects the token-path reason, and the docstring says why. - `docs/experiments/compute-output-buffer-reasons.md`: says reason 1 is no longer reached and names the fixture's reason. No runtime change. The case still checks that a texture token in an output slot is refused before any dispatch and leaves every output word at its sentinel. ## Verification Commit `3ec83c1f` on `main` `f2972840`. Windows 11 build 26300, MSVC x64 Debug, Windows SDK 10.0.26100 DXC, D3D12 debug layer enabled. ```powershell cmake --build --preset dev --target d3d12_xs_shim startup_stream_consumer ctest --preset dev --no-tests=error -V -R "^startup_compute_dispatch_output_(warp|hardware)$" ``` - `startup_compute_dispatch_output_warp` (Microsoft Basic Render Driver): passed. - `startup_compute_dispatch_output_hardware` (NVIDIA GeForce RTX 4090, driver 32.0.16.1088): passed. - Before the change: the full Windows workflow on #3386's branch (base `6685de7c`, [run 46174085372](https://github.com/Not-Saii/Xbox2Windows/actions/runs/46174085372)) failed `startup_compute_dispatch_output_warp` on this assertion. The log shows `Dispatch(3, 2, 2) refused: an output token does not identify a slot-19 UAV`. AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
KelboLive commented 2026-11-28 19:08:46 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-28T19:08:46Z.

Review: COMMENTED


LGTM — expected change. The output-token path now binds buffer UAVs before descriptor checks (#3094), so a texture token gets refused with an output token does not identify a slot-19 UAV instead of reaching the old reason.

Only test expectations and docs updated; no logic changes here. Correct and safe.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6099687878 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3394#pullrequestreview-6099687878). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-28T19:08:46Z. **Review:** COMMENTED --- LGTM — expected change. The output-token path now binds buffer UAVs before descriptor checks (#3094), so a texture token gets refused with `an output token does not identify a slot-19 UAV` instead of reaching the old reason. Only test expectations and docs updated; no logic changes here. Correct and safe.
KelboLive commented 2026-11-28 20:29:38 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-28T20:29:38Z.

Review: APPROVED


LGTM — expected change. The output-token path now binds buffer UAVs before descriptor checks (#3094), so a texture token gets refused with an output token does not identify a slot-19 UAV instead of reaching the old reason.

Only test expectations and docs updated; no logic changes here. Correct and safe.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6099962817 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3394#pullrequestreview-6099962817). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-28T20:29:38Z. **Review:** APPROVED --- LGTM — expected change. The output-token path now binds buffer UAVs before descriptor checks (#3094), so a texture token gets refused with `an output token does not identify a slot-19 UAV` instead of reaching the old reason. Only test expectations and docs updated; no logic changes here. Correct and safe.
KelboLive commented 2026-11-28 21:56:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-28T21:56:55Z.

Review: APPROVED


LGTM — expected change. The output-token path now binds buffer UAVs before descriptor checks (#3094), so a texture token gets refused with an output token does not identify a slot-19 UAV instead of reaching the old reason.

Only test expectations and docs updated; no logic changes here. Correct and safe.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6100252382 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3394#pullrequestreview-6100252382). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-28T21:56:55Z. **Review:** APPROVED --- LGTM — expected change. The output-token path now binds buffer UAVs before descriptor checks (#3094), so a texture token gets refused with `an output token does not identify a slot-19 UAV` instead of reaching the old reason. Only test expectations and docs updated; no logic changes here. Correct and safe.
Leyukaka commented 2026-11-29 00:37:24 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T00:37:24Z.

Review: APPROVED


Approve at 3ec83c1f.

Checked by reading on main 212d4b5f:

  • dispatch-output-texture-token copies an SRV token (slot 18, d3d12_capture.inl:556) into the output slot. The output loop sends any token to compute_token_output and continues (d3d12_compute_dispatch.inl:828), whose first check (:492) refuses it with an output token does not identify a slot-19 UAV. The is a view token check (:889) comes after that continue and is no longer reachable, so the old expectation can't match.
  • The case still asserts the sentinel output, one refusal line and the census bucket. No runtime change.
  • Merges cleanly onto 212d4b5f (git merge-tree).

Main's CI shows the failure: run 46194701708 (main 0614f68c) fails startup_compute_dispatch_output_warp with Dispatch(3, 2, 2) refused: an output token does not identify a slot-19 UAV, census token word 3 = 00000012 (slot 18). The PR's CI run (46178934743) ran 73 tests and not this one, so the pass at this head rests on the local runs in the description.

Not covered: either half of words[2] != 19 || ... || record.slot != 19 can be removed and the case still passes, because the fixture token fails both. A token whose words say slot 19 but whose record is not a UAV would tell them apart.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6100743653 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3394#pullrequestreview-6100743653). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-29T00:37:24Z. **Review:** APPROVED --- Approve at 3ec83c1f. Checked by reading on main 212d4b5f: - `dispatch-output-texture-token` copies an SRV token (slot 18, `d3d12_capture.inl:556`) into the output slot. The output loop sends any token to `compute_token_output` and `continue`s (`d3d12_compute_dispatch.inl:828`), whose first check (`:492`) refuses it with `an output token does not identify a slot-19 UAV`. The `is a view token` check (`:889`) comes after that `continue` and is no longer reachable, so the old expectation can't match. - The case still asserts the sentinel output, one refusal line and the census bucket. No runtime change. - Merges cleanly onto 212d4b5f (`git merge-tree`). Main's CI shows the failure: run 46194701708 (main 0614f68c) fails `startup_compute_dispatch_output_warp` with `Dispatch(3, 2, 2) refused: an output token does not identify a slot-19 UAV`, census token word 3 = `00000012` (slot 18). The PR's CI run (46178934743) ran 73 tests and not this one, so the pass at this head rests on the local runs in the description. Not covered: either half of `words[2] != 19 || ... || record.slot != 19` can be removed and the case still passes, because the fixture token fails both. A token whose words say slot 19 but whose record is not a UAV would tell them apart.
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!3394
No description provided.