You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GPU: verify GPU-written indirect Dispatch with a translated slot 67 pipeline #2492
Part B of #2274. Claim this fixture in a comment with your build and adapter.
What to build
Exercise one raw-buffer compute program through device slot 67 and command-list slot 61 (ExecuteIndirect). A source-built GPU producer writes one three-DWORD Dispatch record into a placed argument buffer. The translated consumer writes one identifiable UAV word per group. Reuse the existing indirect-dispatch fixture and keep the producer, consumer and readback fence on one queue.
#1867 already checks GPU-written arguments with a desktop compute pipeline. #2470 adds direct Dispatch for a translated slot 67 raw-buffer program. Fixture work can start independently. Coordinate runtime wiring with the author of #2470 and identify the base commit if the test runs on a stacked branch.
Acceptance
Run with two different GPU-written group counts, for example 2 and 5. Prefill the output with a sentinel. After the fence, compare the entire output with a CPU reference, including the untouched tail.
Start with a zeroed argument record and omit the producer. The entire output must retain the sentinel.
Omit the consumer translation. Record the refusal reason and verify that the output remains untouched.
Register focused WARP and hardware CTests. Suggested selection once registered: ctest --preset release --no-tests=error -j 1 -R '^startup_slot67_indirect_dispatch_(warp|hardware)$' -V. Include the build target, tested commit, exact commands, adapter, driver, Windows build and debug-layer state. Report capability skips separately.
The public reproducer uses source-built shaders and synthetic buffers. Main development will handle the local executable retest under #870. This fixture establishes whether the translated consumer uses the GPU-written argument count.
I am taking the source-built fixture for B / #2492. I will use the existing GPU producer and same-queue fence from the indirect dispatch test, with the raw UAV consumer from #2470 (current head 6e64faa). My setup is Windows 11 build 26100.9711, Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579), and WARP. I can also build and test on Windows Server 2025. I will first pin the two counts, untouched tail, zero record, and missing translation on that base and coordinate the slot 61 wiring with @NiiRoZz.
On Intel UHD 770, RTX 4060 and WARP, the fenced argument readback is a5a5a5a5 [2,1,1] 5a5a5a5a or [5,1,1] with the same guards. Without the GPU producer it is [0,0,0]. Before and after offline translation (803cff6ccac1d4e2: ok), #2470 refuses slot 61 with requires a desktop compute pipeline and root and all 320 output words retain the sentinel. A separate direct-dispatch check confirms the consumer writes exactly its first 2 or 5 words.
I am testing a separate follow-up commit on this branch that reuses your existing compute binding for one rootless indirect record. It passes the GPU argument resource and offset to desktop ExecuteIndirect on the same list. This leaves your direct path covered by its original test; the fixture commit can also be used independently if you have a wiring change underway.
Thanks for isolating the first refusal with the same GPU-written arguments before and after translation. Please continue the one-record, rootless indirect follow-up here and coordinate its base with #2470. Keep the 2/5-group readbacks, both argument guards, and the no-producer or missing-wait control. A translated direct Dispatch with the same inputs is a useful reference. Once #2470’s dependency chain is settled, a focused PR with the fixture and the indirect binding diff will make the two paths independently reviewable.
Current head bd558370 includes #2470 at f5b0303 and the original device-free word-comparison commit from lambirou. The mutation mode and all five Windows Release WARP tests passed. After verifying the source commit and all five artifact digests I ran the same binary on Intel UHD 770, RTX 4060 and local WARP. Each matched both direct and indirect 2/5-group references word for word and passed the missing-translation, zero-work and refusal controls.
The direct-dispatch reference now uses the same slot 67 program, descriptors, input, root constants and output oracle as slot 61. The producer writes a guarded 3-DWORD record at byte 4. The input, both guards and all 320 output words are checked after the queue fence. Both paths write the first 2/5 words and preserve the other 318/315. Missing translation and omitted producer preserve all 320. The four extra refusals cover multiple commands, a count buffer, an out-of-range record and using the argument buffer as the shader output.
Local Windows 11 build 26100.9711, debug layer unavailable: Intel UHD 770 32.0.101.5973, RTX 4060 32.0.15.9579, WARP 10.0.26100.9711. The existing direct path also had an intermittent RTX exit failure after a correct fenced file. The standalone fix is linked on #2470. With that fix integrated at 5899e6df, all three devices passed the entire direct/indirect check and both live-retry controls. Integrated Release WARP 6/6, no capability skips.
I will follow the #2470 dependency chain here and submit the focused PR once its base is settled, as requested.
After #2470 moved to 1f5fb5e4 (including the RTX teardown change), I merged that exact parent into the indirect follow-up at cf30dc34. Both paths now exercise the parent's per-word root-constant writes. All five Release WARP tests passed. With the same verified binary on Intel UHD 770, RTX 4060 and local WARP, both direct references and the indirect 2/5-group draws matched all 320 words. The zero, missing translation, argument-buffer and command-count controls also passed.
Following the #2560 review (now closed as a duplicate in favour of the fixture described here): if useful, the pure-Python single-word mutation oracle from that PR can be folded into the existing fixture as an extra negative control — sentinel-prefilled 320-word readback, one flipped consumer word must be caught, plus the 2-vs-5 count difference. Happy to adapt it to the existing layout; no separate runtime CTest from our side.
Yes, the single-word mutation would be useful. The current fixture at cf30dc34 builds the 320-word expectation in check(). A small device-free control exercising that same comparison would fit: flip one written word and one untouched sentinel in separate runs, then compare the 2-group output to the 5-group reference (only indices 2, 3 and 4 should differ). Reusing the check would keep the reference in one place. Please link your commit here when ready and I can integrate it and rerun the hardware suite with your authorship.
It checks the fully sentinel readback, flips the first and last consumer word, the first and last untouched sentinel, rejects short and long readbacks, and asserts that the 2-group and 5-group references differ only at indices 2, 3 and 4. A comparator stubbed to return no differences fails, so the negative control is real.
git diff --check is clean and tests/docs_links_check.py passes. I did not run the GPU arms. Please cherry-pick 9bf452a0 or take the diff; no runtime or separate CTest is included.
Thank you, lambirou. I fast-forwarded to your original commit so its authorship and SHA are preserved. I then merged the latest #2470 parent f5b03039 and documented the host command. The combined branch is bd558370.
The device-free command and the LLVM assembly check passed here. Stubbing the comparator to return no differences now fails at the first mutated consumer word. The Windows Release validation runs the host oracle followed by the existing direct/indirect WARP fixtures. I'll use that build for the physical adapter checks before updating the original results.
I built the combined slot 35 and slot 67 test branch at b25894eb. It includes #2470 at 206749e4, the three slot 35 controls at 580cda56, the #2492 indirect fixture and the same-pipeline live retry. The indirect consumer now flushes its five-word GPU record immediately after the fence so the captured output retains both argument guards.
On Windows 11 26100.9711 I ran all three Python entry points on Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579) and WARP (10.0.26100.9711). All nine runs passed, with zero capability skips. Both DLLs and the consumer were built locally from these sources with Zig/Clang 0.13.0 and DXC 1.9.2609. The Direct3D debug layer was unavailable.
The GPU produced guarded records [2,1,1] and [5,1,1]. Indirect and direct Dispatch each wrote exactly 2 or 5 of the 320 words. Missing translation, zero producer, multiple commands, count buffer, out-of-range arguments and output aliasing preserved the entire sentinel result.
The nonzero slot 35 table offset selected the correct pair with all 320 words matching. Changing the heap or root without rebinding refused once and kept all 320 sentinels.
Late publication and the unpublished control each matched both fenced, 320-word readbacks on the same live pipeline.
The test commands are python -B tests/startup_slot67_indirect_dispatch_check.py <consumer> <dxc> <warp|hardware>, python -B tests/startup_compute_dispatch_check.py <consumer> <dxc> <warp|hardware> and python -B tests/startup_compute_live_retry_check.py <consumer> <dxc> <warp|hardware>. For the hardware runs I set XBOX2WINDOWS_ADAPTER to Intel and NVIDIA separately. The focused upstream #2492 change can follow when #2470's base is settled per the earlier coordination.
Independent Windows MSVC 19.52 x64 Release verification of RavenCurseBurg's combined b25894ebee38168b7ef3f128e8e04bc332247516, on Windows 26300.10075. All six GPU runs passed, no skips: startup_slot67_indirect_dispatch_check.py, startup_compute_dispatch_check.py, and startup_compute_live_retry_check.py on both in-box WARP (10.0.26100.10068) and physical RTX 4070 (32.0.16.2124). The device-free mutation mode also passed.
The slot 67 fixture reported the D3D12 debug layer enabled on both backends. The GPU-written records kept both guards around [2,1,1] and [5,1,1]; all 320 words matched for each, including untouched tails. The no-translation and zero-producer cases left all 320 sentinel words in place. The adjacent slot 35 test reported the debug layer enabled with no error message on both adapters.
I built startup_stream_consumer d3d12_xs_shim with the Release preset and ran the three Python dispatch entry points with the locally built consumer and SDK DXC 1.9.2602.17.
The independent b25894e retest supplies the fence, both producer records, both untouched tails and the two refusal controls on WARP and RTX 4070. The translated Dispatch implementation is already in main via #2532. Please open the focused fixture from current main when ready, retaining both producer counts and all 320-word comparisons. Keep the slot 35 controls and the same-pipeline retry in their existing work so this review covers the GPU-written indirect consumer by itself. Keep this issue open until that standalone candidate passes.
The standalone fixture requested above is in #2771 (7fdc253a). Direct Dispatch handles the two GPU-written counts on the unmodified runtime. The indirect path leaves all 320 words untouched there, so the PR includes the slot 61 binding change needed for the translated consumer.
The optimized Windows build at the submitted head passed the complete indirect fixture and the adjacent desktop plain, root-constants and counted cases on WARP, Intel UHD 770 and RTX 4060. The PR includes the CPU oracle, both counts, guard and sentinel checks, and the CTest commands for an independent MSVC run.
#2771 is on main at cd5fb38 and the standalone fixture meets the acceptance above. Independent MSVC Release passed all 16 focused and adjacent CTests on WARP and RTX 4060 Laptop, zero skips, with the debug layer enabled. The guarded records for counts 2 and 5 drove exactly 2 and 5 writes, each checked against all 320 reference words. Omitting the producer or the translation preserved the full sentinel tail and the missing-translation case reported its refusal. The CPU oracle detected the independent first/last consumer and sentinel mutations.
Reproduce with cmake --build --preset release --target startup_stream_consumer, then ctest --preset release --no-tests=error -j 1 -R "^startup_slot67_indirect_dispatch_(warp|hardware)$" -V. Windows 11 build 26200, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656. This closes the source-built fixed-table slot-61 fixture. The original-executable replay remains tracked separately in #870.
Activity
RavenCurseBurg commentedon Nov 25, 2026
I am taking the source-built fixture for B / #2492. I will use the existing GPU producer and same-queue fence from the indirect dispatch test, with the raw UAV consumer from #2470 (current head 6e64faa). My setup is Windows 11 build 26100.9711, Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579), and WARP. I can also build and test on Windows Server 2025. I will first pin the two counts, untouched tail, zero record, and missing translation on that base and coordinate the slot 61 wiring with @NiiRoZz.
AI-assisted with Codex (GPT-6.2 Astra, xhigh).
RavenCurseBurg commentedon Nov 25, 2026
@NiiRoZz I have the independent #2492 fixture on your updated #2470 base
b49c7380: fixture-only commit, Windows build and the two parent WARP tests.On Intel UHD 770, RTX 4060 and WARP, the fenced argument readback is
a5a5a5a5 [2,1,1] 5a5a5a5aor[5,1,1]with the same guards. Without the GPU producer it is[0,0,0]. Before and after offline translation (803cff6ccac1d4e2: ok), #2470 refuses slot 61 withrequires a desktop compute pipeline and rootand all 320 output words retain the sentinel. A separate direct-dispatch check confirms the consumer writes exactly its first 2 or 5 words.I am testing a separate follow-up commit on this branch that reuses your existing compute binding for one rootless indirect record. It passes the GPU argument resource and offset to desktop ExecuteIndirect on the same list. This leaves your direct path covered by its original test; the fixture commit can also be used independently if you have a wiring change underway.
AI-assisted with Codex (GPT-6.2 Astra, xhigh).
R0Y00 commentedon Nov 25, 2026
Thanks for isolating the first refusal with the same GPU-written arguments before and after translation. Please continue the one-record, rootless indirect follow-up here and coordinate its base with #2470. Keep the 2/5-group readbacks, both argument guards, and the no-producer or missing-wait control. A translated direct Dispatch with the same inputs is a useful reference. Once #2470’s dependency chain is settled, a focused PR with the fixture and the indirect binding diff will make the two paths independently reviewable.
RavenCurseBurg commentedon Nov 25, 2026
Current head bd558370 includes #2470 at f5b0303 and the original device-free word-comparison commit from lambirou. The mutation mode and all five Windows Release WARP tests passed. After verifying the source commit and all five artifact digests I ran the same binary on Intel UHD 770, RTX 4060 and local WARP. Each matched both direct and indirect 2/5-group references word for word and passed the missing-translation, zero-work and refusal controls.
The direct-dispatch reference now uses the same slot 67 program, descriptors, input, root constants and output oracle as slot 61. The producer writes a guarded 3-DWORD record at byte 4. The input, both guards and all 320 output words are checked after the queue fence. Both paths write the first 2/5 words and preserve the other 318/315. Missing translation and omitted producer preserve all 320. The four extra refusals cover multiple commands, a count buffer, an out-of-range record and using the argument buffer as the shader output.
The fixture and indirect binding are on the current #2470 base. Head
0a76af47passed its focused run on local WARP and Intel UHD 770, and 5/5 Release WARP CTests on Windows Server 2025 with debug layer enabled, driver 10.0.26100.33648.Local Windows 11 build 26100.9711, debug layer unavailable: Intel UHD 770 32.0.101.5973, RTX 4060 32.0.15.9579, WARP 10.0.26100.9711. The existing direct path also had an intermittent RTX exit failure after a correct fenced file. The standalone fix is linked on #2470. With that fix integrated at
5899e6df, all three devices passed the entire direct/indirect check and both live-retry controls. Integrated Release WARP 6/6, no capability skips.I will follow the #2470 dependency chain here and submit the focused PR once its base is settled, as requested.
After #2470 moved to
1f5fb5e4(including the RTX teardown change), I merged that exact parent into the indirect follow-up at cf30dc34. Both paths now exercise the parent's per-word root-constant writes. All five Release WARP tests passed. With the same verified binary on Intel UHD 770, RTX 4060 and local WARP, both direct references and the indirect 2/5-group draws matched all 320 words. The zero, missing translation, argument-buffer and command-count controls also passed.AI-assisted with Codex (GPT-6.2 Astra, xhigh).
lambirou commentedon Nov 25, 2026
Following the #2560 review (now closed as a duplicate in favour of the fixture described here): if useful, the pure-Python single-word mutation oracle from that PR can be folded into the existing fixture as an extra negative control — sentinel-prefilled 320-word readback, one flipped consumer word must be caught, plus the 2-vs-5 count difference. Happy to adapt it to the existing layout; no separate runtime CTest from our side.
Coordination only, nothing pushed for this.
RavenCurseBurg commentedon Nov 25, 2026
Yes, the single-word mutation would be useful. The current fixture at cf30dc34 builds the 320-word expectation in
check(). A small device-free control exercising that same comparison would fit: flip one written word and one untouched sentinel in separate runs, then compare the 2-group output to the 5-group reference (only indices 2, 3 and 4 should differ). Reusing the check would keep the reference in one place. Please link your commit here when ready and I can integrate it and rerun the hardware suite with your authorship.lambirou commentedon Nov 25, 2026
@RavenCurseBurg I adapted the #2560 oracle to your current fixture.
tests/slot67-mutation-oracleon my fork9bf452a0, parent exactlycf30dc34)tests/startup_slot67_indirect_dispatch_check.py, 63 insertions / 8 deletionsIt extracts
expected_words(written)andcompare_words(actual, expected)fromcheck(), then adds a device-freemutationmode:It checks the fully sentinel readback, flips the first and last consumer word, the first and last untouched sentinel, rejects short and long readbacks, and asserts that the 2-group and 5-group references differ only at indices 2, 3 and 4. A comparator stubbed to return no differences fails, so the negative control is real.
git diff --checkis clean andtests/docs_links_check.pypasses. I did not run the GPU arms. Please cherry-pick9bf452a0or take the diff; no runtime or separate CTest is included.tests: add a device-free mutation oracle for slot 67 indirect Dispatch (
RavenCurseBurg commentedon Nov 25, 2026
Thank you, lambirou. I fast-forwarded to your original commit so its authorship and SHA are preserved. I then merged the latest #2470 parent
f5b03039and documented the host command. The combined branch is bd558370.The device-free command and the LLVM assembly check passed here. Stubbing the comparator to return no differences now fails at the first mutated consumer word. The Windows Release validation runs the host oracle followed by the existing direct/indirect WARP fixtures. I'll use that build for the physical adapter checks before updating the original results.
RavenCurseBurg commentedon Nov 26, 2026
I built the combined slot 35 and slot 67 test branch at b25894eb. It includes #2470 at
206749e4, the three slot 35 controls at580cda56, the #2492 indirect fixture and the same-pipeline live retry. The indirect consumer now flushes its five-word GPU record immediately after the fence so the captured output retains both argument guards.On Windows 11 26100.9711 I ran all three Python entry points on Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579) and WARP (10.0.26100.9711). All nine runs passed, with zero capability skips. Both DLLs and the consumer were built locally from these sources with Zig/Clang 0.13.0 and DXC 1.9.2609. The Direct3D debug layer was unavailable.
[2,1,1]and[5,1,1]. Indirect and direct Dispatch each wrote exactly 2 or 5 of the 320 words. Missing translation, zero producer, multiple commands, count buffer, out-of-range arguments and output aliasing preserved the entire sentinel result.The test commands are
python -B tests/startup_slot67_indirect_dispatch_check.py <consumer> <dxc> <warp|hardware>,python -B tests/startup_compute_dispatch_check.py <consumer> <dxc> <warp|hardware>andpython -B tests/startup_compute_live_retry_check.py <consumer> <dxc> <warp|hardware>. For the hardware runs I setXBOX2WINDOWS_ADAPTERtoIntelandNVIDIAseparately. The focused upstream #2492 change can follow when #2470's base is settled per the earlier coordination.AI-assisted with Codex (GPT-6.2 Astra, xhigh).
RonLogic commentedon Nov 26, 2026
Independent Windows MSVC 19.52 x64 Release verification of RavenCurseBurg's combined
b25894ebee38168b7ef3f128e8e04bc332247516, on Windows26300.10075. All six GPU runs passed, no skips:startup_slot67_indirect_dispatch_check.py,startup_compute_dispatch_check.py, andstartup_compute_live_retry_check.pyon both in-box WARP (10.0.26100.10068) and physical RTX 4070 (32.0.16.2124). The device-freemutationmode also passed.The slot 67 fixture reported the D3D12 debug layer enabled on both backends. The GPU-written records kept both guards around
[2,1,1]and[5,1,1]; all 320 words matched for each, including untouched tails. The no-translation and zero-producer cases left all 320 sentinel words in place. The adjacent slot 35 test reported the debug layer enabled with no error message on both adapters.I built
startup_stream_consumer d3d12_xs_shimwith the Release preset and ran the three Python dispatch entry points with the locally built consumer and SDK DXC1.9.2602.17.R0Y00 commentedon Nov 26, 2026
The independent b25894e retest supplies the fence, both producer records, both untouched tails and the two refusal controls on WARP and RTX 4070. The translated Dispatch implementation is already in main via #2532. Please open the focused fixture from current main when ready, retaining both producer counts and all 320-word comparisons. Keep the slot 35 controls and the same-pipeline retry in their existing work so this review covers the GPU-written indirect consumer by itself. Keep this issue open until that standalone candidate passes.
RavenCurseBurg commentedon Nov 26, 2026
The standalone fixture requested above is in #2771 (
7fdc253a). Direct Dispatch handles the two GPU-written counts on the unmodified runtime. The indirect path leaves all 320 words untouched there, so the PR includes the slot 61 binding change needed for the translated consumer.The optimized Windows build at the submitted head passed the complete indirect fixture and the adjacent desktop plain, root-constants and counted cases on WARP, Intel UHD 770 and RTX 4060. The PR includes the CPU oracle, both counts, guard and sentinel checks, and the CTest commands for an independent MSVC run.
R0Y00 commentedon Nov 26, 2026
#2771 is on main at cd5fb38 and the standalone fixture meets the acceptance above. Independent MSVC Release passed all 16 focused and adjacent CTests on WARP and RTX 4060 Laptop, zero skips, with the debug layer enabled. The guarded records for counts 2 and 5 drove exactly 2 and 5 writes, each checked against all 320 reference words. Omitting the producer or the translation preserved the full sentinel tail and the missing-translation case reported its refusal. The CPU oracle detected the independent first/last consumer and sentinel mutations.
Reproduce with cmake --build --preset release --target startup_stream_consumer, then ctest --preset release --no-tests=error -j 1 -R "^startup_slot67_indirect_dispatch_(warp|hardware)$" -V. Windows 11 build 26200, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656. This closes the source-built fixed-table slot-61 fixture. The original-executable replay remains tracked separately in #870.