Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/experiments/compute-output-buffer-reasons.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions tests/startup_compute_dispatch_output_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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'),
Expand Down
Loading