startup-runtime: execute ExecuteIndirect, with GPU-written arguments and console command signatures #1752
Closed
opened 2026-11-24 18:10:48 +00:00 by denn0x
·
18 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#1752
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 denn0x on 2026-11-24T18:10:48Z.
Question
The startup runtime drops ExecuteIndirect calls. On
main:CreateCommandSignature) returns a placeholder signature when an argument type is aboveD3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH;The census on #1412 shows that after loading, most of the scene is submitted this way: Draw, DrawIndexed, Dispatch and DispatchMesh arguments, written on the GPU by earlier compute work.
What is the smallest runtime path that executes a desktop-supported signature, with arguments that a GPU producer writes on the same queue? What would a console-only argument type need on top of that?
Evidence so far
ID3D12Resourceand an offset, so the runtime has to map the argument address to a desktop buffer. It must also place the transition toINDIRECT_ARGUMENTafter the producer's writes.Completion condition
Each part can land on its own.
INDIRECT_ARGUMENT;Out of scope: count buffers (none observed) and whether the title's compute producers translate correctly (#1412, #1541 to #1546).
Required environment
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T18:43:43Z.
Open for a focused source-built first slice: execute one desktop Dispatch signature with no count buffer, using an argument record written by an earlier GPU dispatch on the same list. Run through the startup wrapper, transition the argument resource to INDIRECT_ARGUMENT after producer writes, and fence the final readback. Start the record with zero dispatch counts and sentinel padding. Omitting the producer should leave the consumer output untouched, and changing the produced group count should change the exact output and untouched guards. Keep unmapped arguments and placeholder signatures refused with a specific reason. Report WARP and one physical adapter separately. DrawIndexed can follow using the same binding and barrier path after this slice lands.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T19:17:24Z.
#1805 now supplies the elementary desktop baseline: a GPU writer puts the Dispatch record in a UAV, ExecuteIndirect consumes it, and a fenced readback distinguishes the omitted writer. The combined candidate passed 4/4 on WARP and RTX 4060 Laptop with the upload-arena fixtures. The next claimable slice is the guest wrapper and argument-buffer address resolution. Reuse the same producer/consumer and include the unmapped-address and placeholder-signature refusals; the baseline itself does not close this issue.
Imported from R0Y00/Xbox2Windows. Originally posted by avt0m4t48 on 2026-11-24T19:33:42Z.
I'll take the source-built guest Dispatch slice described above, starting from #1805. The scope is one desktop Dispatch signature, one GPU-written argument record, no count buffer, and explicit refusal of unmapped arguments or placeholder signatures. I can develop and run the portable checks on Linux, with WARP and physical adapter coverage tracked separately.
An independent public compatibility-layer trace puts the newer guest ExecuteIndirect method at vtable offset 0x1e8 (slot 61), with the resource-and-offset argument shape. Xbox2Windows currently leaves slots 60 and up unnamed. If you have the corresponding slot and argument shape from the #1412 census, that would give this runtime a direct cross-check before the slot is enabled.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T19:57:11Z.
The source-built guest Dispatch slice #1867 has merged at
fb2be030. On the exact candidate, Release passed the slot table and both D3D12 readbacks (WARP and RTX 4060 Laptop) with no skips. One GPU-written record is handled through guest slot 61 and a placed buffer; the omitted writer, unmapped and short ranges, and placeholder signature keep the sentinel. The fixture uses desktop bindings for the producer and output UAV. The full application submission path, DrawIndexed, command count buffers and console-specific signatures remain open.Imported from R0Y00/Xbox2Windows. Originally posted by avt0m4t48 on 2026-11-24T20:03:42Z.
I'll take the single-record indirect DrawIndexed follow-up to #1867. The first slice is a rootless desktop DrawIndexed signature, a GPU-written record at a nonzero offset, and source-built position/color shaders with a placed index buffer. The fixture will verify covered and untouched pixels after a fence, with dropped-writer and invalid-binding controls. I'll develop on Linux, run Windows WARP on the fork, and report physical adapter coverage separately.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T20:38:46Z.
#1891 is on main at
b77050ee. Release on the exact candidate passed the Dispatch and DrawIndexed checks on WARP and RTX 4060 Laptop, four passes with no skips. The indexed slice covers a GPU-written record, both index widths, exact pixel readback and guarded refusals. The shader is a source-built desktop pipeline; console-specific signatures and the application submission path are still open.Imported from R0Y00/Xbox2Windows. Originally posted by avt0m4t48 on 2026-11-24T20:44:41Z.
I'll take the rootless single-record
Drawfollow-up to #1891. The #1412 trace counted 263Drawrecords, each with max count one and no count buffer. I plan to reuse the desktop graphics pipeline and readback fixture, without binding an index buffer, and use a GPU writer to select two differentStartVertexLocationvalues. The candidate should match every pixel and guard word, and refuse an invalid range or incomplete state. Development is on Linux with a Windows WARP run on the fork.Imported from R0Y00/Xbox2Windows. Originally posted by avt0m4t48 on 2026-11-24T20:54:03Z.
I'll investigate the
DispatchMeshpart of #1759 next. The first slice is a single GPU-written desktop mesh-dispatch record on a direct list, with a source-built mesh/fragment pipeline, no amplification shader, no command count buffer, and exact pixel readback for one group, two groups, and an omitted writer. This reuses the indirect graphics fixture from #1909 and checks mesh tier before running. It is separate from #1760's console shader lowering.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T21:15:32Z.
The desktop single-record Draw (#1909) and DispatchMesh (#1916) slices are on main. On the exact #1916 head, Release passed all eight indirect Dispatch, Draw, DrawIndexed and DispatchMesh tests across WARP and RTX 4060 Laptop (driver 32.0.16.1656, debug layer enabled, no skips). On hardware, the mesh cases produced 4/8 and 8/8 non-clear pixels for one and two groups, and 0/8 for omitted writer, short range and missing viewport, with argument guards intact.
These are desktop source-built pipelines. Keeping this issue open for console signature and pipeline bindings. Link any further implementation here so it can build on the existing claims.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-25T00:07:15Z.
I'd like to take part 2 of the completion condition, root arguments in signatures. Scope: one desktop Dispatch signature that carries a root-constant argument (
D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT) ahead of the Dispatch record. It's created through device slot 41 with a root signature and executed through guest slot 61, reusing the #1867 producer and placed-buffer path. A GPU writer produces both the constants and the group counts, and the dispatched shader writes the constants to its output.Negative controls:
The #1412 census saw only types 0, 1, 2 and 10, so this slice completes the documented contract rather than following an observed call. I'll report WARP and RTX 4090 (driver 32.0.16.1088, Windows 11 build 26300.9974) separately with debug-layer status. Source-built inputs only.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T00:33:12Z.
The desktop root-constant slice is on main in #2091 (
5a0b0aad). I reran the source-built Dispatch and root-constant fixtures in Release on RTX 4060 Laptop (32.0.16.1656) and WARP with the debug layer enabled: 4/4 passed. Swapping the two constant words changed the GPU readback; the omitted, wrong-root and record-boundary controls preserved the sentinel. This covers the desktop one-record signature. Keep the console argument type and application producer chain tracked here.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T03:00:38Z.
I'll take the count-buffer slice for the desktop Dispatch signature. It runs max count above 1 with a GPU-written count word, checks the exact output per executed record, and refuses an unmapped or short count buffer with a named reason.
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-25T19:34:15Z.
Is #2413 R1 (loading the translated fixed slot-57 pair and forwarding one indirect DispatchMesh) already assigned? I'd like to take the source-built acceptance fixture for that slice on WARP and RTX 4070. Proposed scope: the merged #2447 shader pair, one GPU-written argument record, exact pixel readback, and a missing artifact control.
Current-main baseline at
267b4be9: 7/7 Release checks passed with no skips on WARP 10.0.26100.10068 and RTX 4070 driver 32.0.16.2124 (Windows 11 26300.10075). The two slot-57 publisher checks preserved both shader spans and the bound root. Separately, the two offline-translated draws matched all 1,024 pixels per case on both adapters, including the zero-vertex case, and rejected a one-pixel wrong reference. The draw reported zero D3D12 warnings/errors. These two separate checks give the expected inputs and pixels for a single integrated fixture.Follow-up: #2522 now exercises the guest publisher and offline translator with the same fixture and compares the resulting desktop output on both adapters. #2521 covers recompiling an incomplete cached stage. The remaining R1 test would bind the translated entry CBV (including the two root-constant values) and the raw SRV within the guest indirect draw.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T19:49:29Z.
Please take the source-built R1 acceptance fixture under #2413. #2522 covers the published request through a separate desktop draw. The R1 fixture should use the translated pair through the actual runtime slot-57 cache loader and indirect DispatchMesh on the same guest list. Reuse the CPU rasterizer as an oracle, put guards around one GPU-written argument record, and require the producer fence before the draw. A missing or truncated artifact must leave the target clear with zero forwarded calls. Please coordinate the fixture with whoever takes runtime wiring and keep the source-built result separate from the #870 executable replay.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T21:36:55Z.
Is the runtime implementation for #2413 R1 available? I can take the first paired, single-colour-target slice and work against RonLogic's same-list acceptance fixture.
At
6c7a59a2, the direct list publishes a fixed slot 57 request on its first indirect mesh command, then returns the pipeline refusal. The accepted translated pair has a different binding layout from the slot 86 cache. I propose loading the published.ms57.txtand matching stage artifacts, using the recorded guest constants and raw table buffer for the translated desktop root, and forwarding one GPU-producedDispatchMeshrecord through the existing argument-range/state checks. The fixture should detect a missing or truncated stage by its zero forwards and clear target, including when the request has already been published. I'll keep the first implementation to the colour pair and binding shape the fixture actually exercises.RonLogic, do you have an in-progress fixture ref or an expected argument/table layout to build against? I can run it on both WARP and a physical RTX 4060.
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-26T04:19:48Z.
@RavenCurseBurg the slot 57 acceptance fixture is ready to cherry-pick. Build
startup_indirect_draw_indexedwith the Release preset and runpython -B tests/startup_mesh57_runtime_check.py out/build/release/startup_indirect_draw_indexed.exe <path-to-dxc.exe> warp. Usehardwarefor the physical adapter.On WARP and RTX 4070 with the D3D12 debug layer, independently deleting or truncating either shader stage produced zero forwards, all 1,024 pixels clear, and intact guards around the GPU-written argument record. With the compiled pair present, the check reached the expected baseline failure on
2215c26d: one forward required, zero observed. The loader integration still needs to pass the one-forward check and compare all 1,024 pixels to the CPU oracle. Please share the loader head when available and I’ll run both adapters against it.I also checked that this exact fixture commit cherry-picks cleanly onto
b505c32band built it there in Windows Release. All four missing/truncated controls still match on WARP and RTX 4070. The paired-artifact case still observes zero forwards on that base, pending the runtime loader.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-26T04:12:52Z.
I’ll take the acceptance fixture as requested. @RavenCurseBurg please take the runtime wiring. I’ll use the exact mesh/pixel pair and CPU 32×32 rasterizer from #2522. The guest root layout will use parameter 0 as two 32-bit constants (word 0 = primitive count, word 1 = vertex count), and parameter 1 as a table with a single raw SRV at byte offset 0. The positive case uses counts 4/12 and a single GPU-written
DispatchMesh(1, 1, 1)record in a placed buffer with guards on both sides. The DIRECT consumer will wait on the producer fence before submitting. Missing/truncated mesh or pixel bytecode will have independent clear-target/zero-forward controls. I haven’t found a published loader branch yet. Please send the head when it’s ready so we can run the same fixture against it.Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T01:56:51Z.
ExecuteIndirect now has a slot 57 mesh acceptance receipt in PR #3531: a GPU compute dispatch writes the
D3D12_DISPATCH_MESH_ARGUMENTSrecord, the direct queue waits on the producer fence, and the consumer executes the indirect mesh draw.The fixture observes
forwarded = dispatchmesh 1, 1,024 pixels matching the CPU rasteriser, and unchanged argument guards on WARP and an AMD Radeon RX 9060 XT. Missing or truncated MS/PS bytecode leaves the target cleared with zero forwarded mesh calls. The same PR also fixes the published-pair loading path for the R1 group-index exchange and the one-wordcbuffershift in mesh pipelines.PR: https://github.com/R0Y00/Xbox2Windows/pull/3531