Skip to content

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

Open
Not-Saii wants to merge 1 commit into
R0Y00:mainfrom
Not-Saii:tests/output-token-expectation
Open

Not-Saii wants to merge 1 commit into
R0Y00:mainfrom
Not-Saii:tests/output-token-expectation

Conversation

@Not-Saii

Copy link
Copy Markdown
Contributor

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 runtime: bind published typed buffer inputs with 32-bit components #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

…put check

Since R0Y00#3094 the dispatch path handles output view tokens before the
descriptor checks of R0Y00#3229, so the texture-view token of the
dispatch-output-texture-token case is refused with "an output token
does not identify a slot-19 UAV". The old reason is no longer reached
from this fixture; the docs note says so.

Refs R0Y00#3224

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@KelboLive KelboLive left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 KelboLive left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 KelboLive left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Leyukaka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve at 3ec83c1.

Checked by reading on main 212d4b5:

  • 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 212d4b5 (git merge-tree).

Main's CI shows the failure: run 46194701708 (main 0614f68) 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants