GPU: verify GPU-written indirect Dispatch with a translated slot 67 pipeline #2484
Closed
opened 2026-11-25 18:31:59 +00:00 by R0Y00
·
13 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows#2484
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 R0Y00 on 2026-11-25T18:31:59Z.
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
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.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T18:47:55Z.
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
6e64faa9). 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).
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T19:13:06Z.
@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).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T19:20:45Z.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T19:36:32Z.
Current head bd558370 includes #2470 at
f5b03039and 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).
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T21:27:36Z.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T21:30:55Z.
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.Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T21:52:27Z.
@RavenCurseBurg I adapted the #2560 oracle to your current fixture.
tests/slot67-mutation-oracleon my forkgithub.com/lambirou/Xbox2Windows@9bf452a064(9bf452a0, 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.Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T21:58:18Z.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T03:35:54Z.
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).
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-26T04:26:28Z.
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.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T04:38:03Z.
The independent b25894eb 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.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T07:33:22Z.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T07:41:08Z.
#2771 is on main at
cd5fb38band 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.