Repository navigation
tests: drive native slot 14 Dispatch through the stand-in - #1
Merged
tedin7 merged 1 commit intoNov 26, 2026
Conversation
startup_list_dispatch_native creates a guest device on a desktop adapter (WARP or hardware, debug layer on when installed) and drives command-list slots 86, 25, 33, 43, 148, 14, 9 and 139 of the stand-in. Each refused case must write exactly one "x2w-render Dispatch(x, y, z) refused: <reason>" line, with the expected reason, to X2W_TRAP_LOG: - a root SRV never set; - a rejected (foreign address) or misaligned slot 43 replacement after a valid one; - a root changed and changed back without a new slot 43; - a pipeline built against another root; - a root with a descriptor table, and a root with a static sampler; - an unset root SRV with zero groups; - 65536 groups on X; - a Dispatch on the closed list; - a Dispatch after Reset without new bindings. A forwarded case must write no line. The fixture wraps a pipeline-statistics query around every slot 14 call on an open list, recorded on the underlying desktop list: CSInvocations must be 4 per group when forwarded and 0 when refused. The fully bound call is recorded alone and read back first, so a slot 14 that records nothing fails on its count. All three recordings are executed to a fence and the debug layer must report no error. The skip_srv control drops slot 43 from the first forwarded case and must report it as refused. Each of these one-line changes to d3d12_xs_device.cpp makes the WARP and hardware tests fail: the refusal branch never taken, compute_srv_bound not cleared by slot 33, the bit not cleared by a rejected slot 43, compute_root_has_arguments forced false, root_matches_pipeline forced true, and the slot 14 registration removed. The docs section now names the device fixture and corrects the sentence on which compute root-argument slots have handlers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
tedin7
pushed a commit
that referenced
this pull request
Nov 26, 2026
…0Y00#2821) The forced-wave64 column said only "Passed, 64 lanes"; the NVIDIA rows that report a range carry it, and the AMD rows do not. This adds the measured 32-64 range from a source build at 49f53ae and one evidence link to it, keeping the existing links together on the same row (same adapter, driver already cited once). Refs #1 Co-authored-by: panam <panam@local>
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.
Follow-up for R0Y00#1974, offered into its branch. This adds the device-level fixture for command-list slot 14 (Dispatch) that I asked for in my review there. R0Y00#1974's production code is unchanged. @tedin7, take it, adapt it or drop it as you prefer: R0Y00#1974 stays your PR.
What it does
tests/startup_list_dispatch_native.cppcreates a guest device on a desktop adapter throughD3D12XboxCreateDevice. It drives the stand-in's command-list slots 86 (compute pipeline stream), 25, 33, 43, 148, 14, 9 and 139, with the D3D12 debug layer when it's installed.x2w-render Dispatch(x, y, z) refused: <reason>line, with the expected reason, toX2W_TRAP_LOG. The cases are:CSInvocationsmust be 4 per group when forwarded and 0 when refused. The fully bound call is recorded alone and counted first, so a slot 14 that records nothing fails on its count.startup_list_dispatch_native_skip_srv_warp_controldrops slot 43 from the first forwarded case and must report it as refused.The root-SRV roots have no UAV, so the shader writes nothing. The fixture shows that the desktop Dispatch is recorded and runs, not what a shader reads through the SRV.
The "Startup list Dispatch" section in the docs gets the reproduction command. It also gets a corrected sentence on which compute root-argument slots have handlers: slot 35 records tables without setting them, and 37, 39, 41 and 45 have none.
Negative controls (one-line changes to
d3d12_xs_device.cpp, WARP and hardware)root SRV never set: expected exactly ... refused: a compute root SRV is not bound, got 0 Dispatch line(s)compute_srv_boundroot changed and changed back: ... got 0 Dispatch line(s)rejected replacement after a valid root SRV: ... got 0 Dispatch line(s)compute_root_has_arguments = falsea compute root SRV is not boundinstead ofcompute root arguments are not forwardedroot_matches_pipeline = truebound: CSInvocations 0, expected 24These are the six mutants that passed every existing test in my R0Y00#1974 review.
Test
Environment: Windows 11 build 26300; WARP 10.0.26100.9818; AMD Radeon RX 9070 XT, driver 32.0.32029.2010; debug layer enabled.
startup_list_dispatch_native_warp,_hardwareand_skip_srv_warp_controlpass 3/3, and also over 20 repeats in a row. With the existing header tests that's 9/9.ctest --preset dev --no-tests=error -j 4 -R '^(startup_list_dispatch.*|startup_indirect_.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*|desktop_root_signature|cpu_shim_compute.*|d3d12x_compute_list.*)$'gives 95/95, no skips.git diff --check,tests/docs_links_check.pyandtests/bidi_controls_check.pyare clean.🤖 Generated with Claude Code