Repository navigation
Backlog
Labels
priority: P0Highest project priority
Description
Question
The startup runtime drops ExecuteIndirect calls. On main:
- device slot 41 (
CreateCommandSignature) returns a placeholder signature when an argument type is aboveD3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH; - no command-list slot forwards ExecuteIndirect.
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
- startup: run compute pipelines (captured as Scarlett DXIL) and execute Dispatch; dispatches are dropped #1412 (12:35, from a local tracing build): every recorded call has a maximum count of 1 and no count buffer, and the argument records are almost all zero when the list is recorded. That supports, but does not prove, a GPU producer. On startup: run compute pipelines (captured as Scarlett DXIL) and execute Dispatch; dispatches are dropped #1412 the maintainer pointed out that record-time bytes do not establish who produced them.
- The argument types seen are the desktop types 0, 1, 2 and 10, plus one console-only type with a 12-byte stride. Its layout is not established.
- Desktop D3D12 executes types 0, 1, 2 and 10 natively; type 10 needs a mesh pipeline.
- The argument buffer is title memory reached through a title GPU address. The desktop call needs an
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.
- Desktop signatures, GPU producer (the control the maintainer described on startup: run compute pipelines (captured as Scarlett DXIL) and execute Dispatch; dispatches are dropped #1412).
- A source-built fixture, run through the runtime's command-list wrapper:
- fill the argument buffer with a sentinel;
- dispatch a compute writer that writes one Dispatch record (type 2) and one DrawIndexed record (type 1);
- add the UAV barrier and the transition to
INDIRECT_ARGUMENT; - execute both signatures, then read back the fenced outputs: a UAV written by the indirect dispatch, and the render target written by the indirect draw.
- Negative controls: omit the writer (the sentinel record must produce no work), and write a deliberately wrong record.
- Report the desktop ExecuteIndirect calls recorded, and the refusals by reason: unmapped argument address, placeholder signature, missing pipeline.
- A source-built fixture, run through the runtime's command-list wrapper:
- Root arguments in signatures. Root constant or root view arguments in the signature, applied before the draw or dispatch, with a control that swaps two constants.
- DispatchMesh (type 10). The same as part 1, with a source-built mesh pipeline. Adapters without mesh shaders report a capability skip.
- Console-only argument types. Separate from parts 1 to 3: establish the layout from source-built evidence or public documentation before any lowering. A signature that contains one stays refused and counted until then.
Out of scope: count buffers (none observed) and whether the title's compute producers translate correctly (#1412, #1541 to #1546).
Required environment
- Windows x64, WARP and one physical GPU (mesh-shader capable for part 3).
- No game files.
Checklist
- The task can be reproduced with public or source-built inputs.
- I did not include game files, dumps, distribution links or credentials.
Metadata
Metadata
Assignees
Labels
priority: P0Highest project priority
Activity
R0Y00 commentedon Nov 24, 2026
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.
R0Y00 commentedon Nov 24, 2026
#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.
avt0m4t48 commentedon Nov 24, 2026
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.
R0Y00 commentedon Nov 24, 2026
The source-built guest Dispatch slice #1867 has merged at fb2be03. 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.
avt0m4t48 commentedon Nov 24, 2026
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.
R0Y00 commentedon Nov 24, 2026
#1891 is on main at b77050e. 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.
avt0m4t48 commentedon Nov 24, 2026
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.avt0m4t48 commentedon Nov 24, 2026
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.R0Y00 commentedon Nov 24, 2026
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.
Not-Saii commentedon Nov 25, 2026
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).
runtime: forward indirect Dispatch signatures with root constants
R0Y00 commentedon Nov 25, 2026
The desktop root-constant slice is on main in #2091 (5a0b0aa). 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.
tedin7 commentedon Nov 25, 2026
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.
startup: run GPU-counted indirect Dispatch records through slot 61
startup: run GPU-counted indirect Dispatch records through slot 61 (#…
RonLogic commentedon Nov 25, 2026
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.
R0Y00 commentedon Nov 25, 2026
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.
RavenCurseBurg commentedon Nov 25, 2026
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.
RonLogic commentedon Nov 26, 2026
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.RonLogic commentedon Nov 26, 2026
@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.lambirou commentedon Nov 30, 2026
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: #3531