From 3ec83c1f3b5aaefa0a22ddd8956aeb30c3ac2f90 Mon Sep 17 00:00:00 2001 From: saii <120340942+Not-Saii@users.noreply.github.com> Date: Sat, 28 Nov 2026 20:55:53 +0200 Subject: [PATCH] tests: expect the output-token refusal for a texture token in the output check Since #3094 the dispatch path handles output view tokens before the descriptor checks of #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 #3224 Co-Authored-By: Claude Opus 5.5 --- docs/experiments/compute-output-buffer-reasons.md | 5 +++-- tests/startup_compute_dispatch_output_check.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/experiments/compute-output-buffer-reasons.md b/docs/experiments/compute-output-buffer-reasons.md index 0ccfcba270..8a64b6c3ee 100644 --- a/docs/experiments/compute-output-buffer-reasons.md +++ b/docs/experiments/compute-output-buffer-reasons.md @@ -17,8 +17,9 @@ this order: 9. `an output buffer has no unordered access` Only the reason changes: what was bound is still bound and what was refused is still refused. Output view tokens -are lowered separately in #2961 (open), which binds a buffer UAV token before these checks; with it, reason 1 is -not reached. The census keeps one reason per key, the first one that key was refused with, and counts all of the +are now handled before these checks (#3094, from #2961): a buffer UAV token is bound, and any other token is refused +with `an output token does not identify a slot-19 UAV`, so reason 1 is no longer reached. The fixture's texture-view +token expects that reason. The census keeps one reason per key, the first one that key was refused with, and counts all of the key's untranslated dispatches under it. A start-up run with this build therefore gives first-refusal buckets, not a count per condition: a later dispatch of the same key can fail on another condition, and the per-call refusal lines are capped. diff --git a/tests/startup_compute_dispatch_output_check.py b/tests/startup_compute_dispatch_output_check.py index 45729991e1..f92c468e06 100644 --- a/tests/startup_compute_dispatch_output_check.py +++ b/tests/startup_compute_dispatch_output_check.py @@ -7,7 +7,8 @@ its buffer is changed one condition at a time, and each dispatch is refused with its own reason in the log and the census and writes no output word: -- dispatch-output-texture-token: the token of a texture view where the output descriptor was; +- dispatch-output-texture-token: the token of a texture view where the output descriptor was (refused by the + output-token path, which binds buffer UAV tokens before the descriptor checks); - zero records, a range over 16 MiB (stride 4, 4 Mi + 1 records) and a range 16 bytes past the placed output buffer, through X2W_TEST_DISPATCH_FIELDS (synthetic values); - dispatch-output-unplaced: memory between the two placed buffers; @@ -36,7 +37,7 @@ def fields(records, stride=4): CONTROLS = ( - ('dispatch-output-texture-token', None, 'an output buffer descriptor is a view token'), + ('dispatch-output-texture-token', None, 'an output token does not identify a slot-19 UAV'), ('dispatch', fields(0), 'an output buffer descriptor has zero records'), ('dispatch', fields((16 << 20) // 4 + 1), 'an output buffer range is over 16 MiB or not whole dwords'), ('dispatch', fields(C.WORDS + 4), 'an output range crosses the end of a placed buffer'),