Repository navigation
Conversation
The slot-19 output token path refused six byte-interval conditions with one message. Each now has its own reason, checked in the same order; the set of accepted views is unchanged. A source-built fixture triggers each reason through a replaced view description and checks a bound raw view reads back. Refs R0Y00#3224 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e intervals Byte 32 of the four-descriptor heap is not a descriptor on WARP, so the consumer creates the view at byte 64 and copies its token to byte 32. An empty view, or one past or across the buffer's end, is rejected by D3D12 at creation (the debug layer removes the device), so the fixture covers the three interval reasons a valid view can reach. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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