startup: name each refused slot-19 output view interval #3387
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3387"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T18:07:09Z.
Refs #3224
The slot-19 output-token path (#3094) refused six byte-interval conditions with one message,
an output UAV interval is unaligned, oversized or outside its buffer. In the 900 s census on #3224, that message is the largest runtime refusal: one shader, 1,146,106 dispatches. This PR gives each condition its own reason, in the same order, so a run shows which one fails. It is the same approach as #3229. The accepted and refused sets do not change.an output UAV interval is emptyan output UAV interval is not whole dwordsan output UAV interval is over 16 MiBan output UAV interval is not 16-byte aligned in its bufferan output UAV interval starts past its bufferan output UAV interval crosses the end of its bufferReasons 1, 5 and 6 need a view that D3D12 rejects when it is created. With the debug layer on,
CreateUnorderedAccessViewremoves the device (measured on WARP and the RTX 4090), so no fixture creates such a view. The stand-in checks the same desktop buffer width that D3D12 validated.Fixture.
tests/startup_compute_token_interval_check.pyuses case A ofstartup_gfx2hlsl_compute_check.pywith 32-byte table records, published throughgfx2hlsl.py --pending.X2W_TEST_DISPATCH_UAV. Each is refused with its own reason in the log and the census, and every word keeps its sentinel.dispatch-uav-token-*modes now create the view at byte 64 and copy the token to byte 32, asdispatch-output-texture-tokenalready does.Test (commit
61bdb434onmaind418f70e, Windows 11 build 26300, debug layer on):startup_compute_token_interval_warp: pass (Microsoft Basic Render Driver 10.0.26100.9818)startup_compute_token_interval_hardware: pass (NVIDIA GeForce RTX 4090, driver 32.0.16.1088).inlchange reverted, all 3 per-reason expectations fail. Each case is still refused, with the old message.native_compute_pack_hardware(uses the samedispatch-uav-token-*modes): pass on the RTX 4090; each of the five slot-19 modes reads back its expected 320 words (bound modes written, refused modes untouched), debug layer onNext on #3224: find which condition the 1.15M-dispatch shader hits. The existing once-per-key
x2w-draw compute UAVline already logs the view's format, element range, stride, flags, backing width, offset and byte count.AI-assisted.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T19:34:07Z.
Review: APPROVED
Review of
61bdb434.mainf2972840with this PR and 17 other open PRs merged locally:startup_compute_token_interval_warpand_hardwarepass. Raising the 16 MiB bound to 32 MiB makes both fail.Not covered: three of the new reasons have no fixture, so swapping two of their messages would pass.
Approve.