startup: run compute pipelines (captured as Scarlett DXIL) and execute Dispatch; dispatches are dropped #1405

Open
opened 2026-11-24 10:56:17 +00:00 by denn0x · 10 comments
denn0x commented 2026-11-24 10:56:17 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T10:56:17Z.


Summary

The startup runtime drops every compute dispatch. Command-list slot 14 (Dispatch) is a no-op, and compute pipelines created through device slot 62 (D3D12_COMPUTE_PIPELINE_STATE_DESC) are dumped and given a placeholder.

Correction (after capturing them): all 52 compute shaders that executable created were DXBC containers holding Scarlett DXIL (parts SFI0 ISG1 OSG1 PSV0 RTS0 STAT ILDN HASH DXIL), not gfx1013 machine code. tools/dxil_retarget.py retargets all 52 without error (output unsigned). So the compute path is retarget, sign and run, not ISA translation.

For UI-only frames this is invisible. Once an executable leaves its loading phase, compute is most of the GPU work. In a local run of an executable (offline, Windows 11 26300, RX 9070 XT, release build), the command lists after loading averaged per frame:

list slot call per frame
12 DrawInstanced 37
13 DrawIndexedInstanced 8.5
14 Dispatch 333

The executable creates at least 52 compute pipelines through slot 62. The presented surface is black (mean level 0/255) from the first frame after loading. Before that, the UI frames render correctly with the translated vertex and pixel pipelines.

What it needs

  1. Offline: retarget and sign per pipeline.
    • tools/dxil_retarget.py already retargets these containers, and its --pe mode signs them through root_probe --sign and gates modules that call Xbox-only intrinsics.
    • Needed: the same for loose containers captured at run time (slot 62's CS bytecode), keyed by the container's bytes, into the shader cache.
  2. Runtime: create the desktop compute pipeline at slot 62 from the signed container, with a desktop root signature equivalent to the title's (the container carries RTS0 with the Xbox flags cleared).
  3. Runtime: execute Dispatch (list slot 14).
    • Record the title's compute root arguments (SetComputeRoot* list slots).
    • Resolve descriptor tables in title memory to desktop SRV/UAV/CBV descriptors, as the draw path does for graphics.
    • Set the pipeline and dispatch.
    • Add UAV and transition barriers between dispatches and the draws that read their output.
  4. Fixtures:
    • A source-built compute shader compiled for desktop and wrapped like a captured container (a retarget round trip).
    • A dispatch through the runtime's command-list wrapper that writes a UAV the test reads back.
    • WARP and hardware variants.

Steps 1 and 4 need no game data.

  • tools/compute_store_aot.py and tools/ffx_dispatch_aot.py translate specific compute fixtures, not runtime pipelines.
  • #721 (two-exit compute programs in compute_store_aot).

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6580211610 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412). Originally posted by [denn0x](https://github.com/denn0x) on 2026-11-24T10:56:17Z. --- ## Summary The startup runtime drops every compute dispatch. Command-list slot 14 (`Dispatch`) is a no-op, and compute pipelines created through device slot 62 (`D3D12_COMPUTE_PIPELINE_STATE_DESC`) are dumped and given a placeholder. **Correction (after capturing them):** all 52 compute shaders that executable created were DXBC containers holding Scarlett DXIL (parts `SFI0 ISG1 OSG1 PSV0 RTS0 STAT ILDN HASH DXIL`), not gfx1013 machine code. `tools/dxil_retarget.py` retargets all 52 without error (output unsigned). So the compute path is retarget, sign and run, not ISA translation. For UI-only frames this is invisible. Once an executable leaves its loading phase, compute is most of the GPU work. In a local run of an executable (offline, Windows 11 26300, RX 9070 XT, release build), the command lists after loading averaged per frame: | list slot | call | per frame | |---|---|---| | 12 | DrawInstanced | 37 | | 13 | DrawIndexedInstanced | 8.5 | | 14 | Dispatch | 333 | The executable creates at least 52 compute pipelines through slot 62. The presented surface is black (mean level 0/255) from the first frame after loading. Before that, the UI frames render correctly with the translated vertex and pixel pipelines. ## What it needs 1. **Offline: retarget and sign per pipeline.** - `tools/dxil_retarget.py` already retargets these containers, and its `--pe` mode signs them through `root_probe --sign` and gates modules that call Xbox-only intrinsics. - Needed: the same for loose containers captured at run time (slot 62's `CS` bytecode), keyed by the container's bytes, into the shader cache. 2. **Runtime: create the desktop compute pipeline at slot 62** from the signed container, with a desktop root signature equivalent to the title's (the container carries `RTS0` with the Xbox flags cleared). 3. **Runtime: execute `Dispatch` (list slot 14).** - Record the title's compute root arguments (`SetComputeRoot*` list slots). - Resolve descriptor tables in title memory to desktop SRV/UAV/CBV descriptors, as the draw path does for graphics. - Set the pipeline and dispatch. - Add UAV and transition barriers between dispatches and the draws that read their output. 4. **Fixtures:** - A source-built compute shader compiled for desktop and wrapped like a captured container (a retarget round trip). - A dispatch through the runtime's command-list wrapper that writes a UAV the test reads back. - WARP and hardware variants. Steps 1 and 4 need no game data. ## Related - `tools/compute_store_aot.py` and `tools/ffx_dispatch_aot.py` translate specific compute fixtures, not runtime pipelines. - #721 (two-exit compute programs in `compute_store_aot`). AI-assisted (Claude Code).
upstream-sync changed title from [GH #1412] startup: translate compute pipelines and execute Dispatch (dispatches are dropped) to [GH #1412] startup: run compute pipelines (captured as Scarlett DXIL) and execute Dispatch; dispatches are dropped 2026-11-24 12:02:49 +00:00
denn0x commented 2026-11-24 12:03:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T11:11:40Z.


Xbox intrinsics in the captured compute modules

I ran the 52 captured compute containers through dxil_retarget.retarget_container and probe_roots.validate_shader (root_probe, dxil.dll):

  • 9 of 52 reference no xbox.* intrinsic, so they can be signed and run as retargeted.
  • 43 of 52 do, and validation refuses them (External function 'xbox.…' is not a DXIL function, status 0x80aa0009).

Modules per declared intrinsic:

modules intrinsic modules intrinsic
17 xbox.global_load_dword_with_cache 6 xbox.ReadLane.i32
16 xbox.s_load_dword_with_cache 6 xbox.Med3_F32
12 xbox.global_load_dwordx3_with_cache 5 xbox.Max3_F32, xbox.Min3_F32
10 xbox.global_load_dwordx4_with_cache 4 xbox.GetLaneID
8 xbox.LaneSwizzle.i32 4 xbox.global_atomic_add, xbox.global_atomic_sub
8 xbox.V_CNDMASK_B32 3 xbox.global_load_dwordx2_with_cache, xbox.MakeUniform.i32, xbox.V_ALIGNBYTE_B32
7 xbox.BFI 2 xbox.V_PK_MAX_F16, xbox.V_PK_MIN_F16, xbox.global_store_dwordx3/x4_with_cache, xbox.Ballot64, xbox.Max3_U32, xbox.Med3_U32, xbox.Min3_U32
7 xbox.global_atomic_fmax, xbox.global_atomic_fmin 1 xbox.MBCNT64, xbox.S_BCNT1_U64, xbox.TypedLoad.i32, xbox.MakeUniform.i64, xbox.WaveMin_U32, xbox.global_store_dword_with_cache

So step 1 above also needs DXIL lowering of xbox.* calls before signing. Three groups:

  1. ALU-only (straight IR): Med3/Min3/Max3 (F32, U32), BFI, V_CNDMASK_B32, V_ALIGNBYTE_B32, V_PK_MIN/MAX_F16, S_BCNT1_U64.
  2. Wave operations (DXIL wave intrinsics):
    • ReadLane maps to WaveReadLaneAt, GetLaneID to WaveGetLaneIndex, Ballot64 to WaveActiveBallot, WaveMin_U32 to WaveActiveMin, and MakeUniform to WaveReadLaneFirst.
    • LaneSwizzle and MBCNT64 need WaveReadLaneAt sequences and prefix bit counts.
    • Wave size differs between console and desktop, which a fixture has to pin.
  3. Raw GPU-address memory (global_*/s_load_*_with_cache, global_atomic_*):
    • These read, write and update memory by GPU virtual address. Desktop DXIL has no such access.
    • One option: bind the stand-in's GPU memory window as a raw UAV/SRV and convert an address to an offset (address - window_base). That needs the window to be one resource, or a small table of resources.
    • This group covers most modules, so it decides whether compute runs at all.

A bitcode-level rewrite can build on the reader and writer already in tools/dxil_retarget.py. The alternative is a disassemble, edit and reassemble route through DXC, if its assembler is available. Group 1 is a good first PR, with a fixture per intrinsic: a source-built module containing the xbox.* declaration, lowered, validated and dispatched on WARP against a CPU reference. Related: #584 (the gate).

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7129779544 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7129779544). Originally posted by [denn0x](https://github.com/denn0x) on 2026-11-24T11:11:40Z. --- ## Xbox intrinsics in the captured compute modules I ran the 52 captured compute containers through `dxil_retarget.retarget_container` and `probe_roots.validate_shader` (root_probe, dxil.dll): - 9 of 52 reference no `xbox.*` intrinsic, so they can be signed and run as retargeted. - 43 of 52 do, and validation refuses them (`External function 'xbox.…' is not a DXIL function`, status `0x80aa0009`). Modules per declared intrinsic: | modules | intrinsic | | modules | intrinsic | |---|---|---|---|---| | 17 | `xbox.global_load_dword_with_cache` | | 6 | `xbox.ReadLane.i32` | | 16 | `xbox.s_load_dword_with_cache` | | 6 | `xbox.Med3_F32` | | 12 | `xbox.global_load_dwordx3_with_cache` | | 5 | `xbox.Max3_F32`, `xbox.Min3_F32` | | 10 | `xbox.global_load_dwordx4_with_cache` | | 4 | `xbox.GetLaneID` | | 8 | `xbox.LaneSwizzle.i32` | | 4 | `xbox.global_atomic_add`, `xbox.global_atomic_sub` | | 8 | `xbox.V_CNDMASK_B32` | | 3 | `xbox.global_load_dwordx2_with_cache`, `xbox.MakeUniform.i32`, `xbox.V_ALIGNBYTE_B32` | | 7 | `xbox.BFI` | | 2 | `xbox.V_PK_MAX_F16`, `xbox.V_PK_MIN_F16`, `xbox.global_store_dwordx3/x4_with_cache`, `xbox.Ballot64`, `xbox.Max3_U32`, `xbox.Med3_U32`, `xbox.Min3_U32` | | 7 | `xbox.global_atomic_fmax`, `xbox.global_atomic_fmin` | | 1 | `xbox.MBCNT64`, `xbox.S_BCNT1_U64`, `xbox.TypedLoad.i32`, `xbox.MakeUniform.i64`, `xbox.WaveMin_U32`, `xbox.global_store_dword_with_cache` | So step 1 above also needs **DXIL lowering of `xbox.*` calls** before signing. Three groups: 1. **ALU-only (straight IR):** `Med3/Min3/Max3` (F32, U32), `BFI`, `V_CNDMASK_B32`, `V_ALIGNBYTE_B32`, `V_PK_MIN/MAX_F16`, `S_BCNT1_U64`. 2. **Wave operations (DXIL wave intrinsics):** - `ReadLane` maps to `WaveReadLaneAt`, `GetLaneID` to `WaveGetLaneIndex`, `Ballot64` to `WaveActiveBallot`, `WaveMin_U32` to `WaveActiveMin`, and `MakeUniform` to `WaveReadLaneFirst`. - `LaneSwizzle` and `MBCNT64` need `WaveReadLaneAt` sequences and prefix bit counts. - Wave size differs between console and desktop, which a fixture has to pin. 3. **Raw GPU-address memory (`global_*`/`s_load_*_with_cache`, `global_atomic_*`):** - These read, write and update memory by GPU virtual address. Desktop DXIL has no such access. - One option: bind the stand-in's GPU memory window as a raw UAV/SRV and convert an address to an offset (`address - window_base`). That needs the window to be one resource, or a small table of resources. - This group covers most modules, so it decides whether compute runs at all. A bitcode-level rewrite can build on the reader and writer already in `tools/dxil_retarget.py`. The alternative is a disassemble, edit and reassemble route through DXC, if its assembler is available. Group 1 is a good first PR, with a fixture per intrinsic: a source-built module containing the `xbox.*` declaration, lowered, validated and dispatched on WARP against a CPU reference. Related: #584 (the gate). AI-assisted (Claude Code).
triggered02 commented 2026-11-24 12:03:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T11:18:35Z.


Claiming the first slice of this: make Dispatch execute compute pipelines that need no xbox.* intrinsics.

The correction in the issue body is what makes a first slice possible at all: the 52 compute shaders are DXBC containers holding Scarlett DXIL, dxil_retarget.py retargets all 52 without error, and denn0x measured that 9 of 52 reference no xbox.* intrinsic and can therefore be validated and signed. The other 43 are refused by validation with External function 'xbox.…' is not a DXIL function, which is a separate problem and not part of this claim.

What I plan to change:

  • command-list slot 14 (Dispatch) currently a no-op: forward Dispatch(x, y, z) to the desktop command list when the bound compute pipeline is real, and keep the existing no-op behaviour when it is not — no behaviour change for the placeholder case;
  • device slot 62 (D3D12_COMPUTE_PIPELINE_STATE_DESC): instead of a placeholder, retarget and sign the captured Scarlett DXIL container through the existing dxil_retarget path, then create a real compute PSO; refuse with a logged reason when the container carries xbox.* intrinsics or fails validation, rather than silently substituting a placeholder;
  • a source-built fixture that dispatches a trivial compute shader end to end and reads the output buffer back, so the check fails without the wiring (today the buffer stays untouched because nothing dispatches).

Evidence I will report: dispatch count reaching the desktop list, pipeline creation results split into signed / refused with reasons, and the fixture's readback bytes before and after. What I will not claim: that the title's own compute work is correct or complete — the 43 modules with xbox.* intrinsics remain unrunnable by design, and this slice cannot speak for them.

If you would rather have the xbox.* gate handled first (for example a translation shim for the most common intrinsics before wiring Dispatch), say so and I will switch; otherwise I will start with the wiring plus the fixture, which is testable today.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7129930651 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7129930651). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T11:18:35Z. --- Claiming the first slice of this: **make `Dispatch` execute compute pipelines that need no `xbox.*` intrinsics**. The correction in the issue body is what makes a first slice possible at all: the 52 compute shaders are DXBC containers holding Scarlett DXIL, `dxil_retarget.py` retargets all 52 without error, and denn0x measured that **9 of 52 reference no `xbox.*` intrinsic** and can therefore be validated and signed. The other 43 are refused by validation with `External function 'xbox.…' is not a DXIL function`, which is a separate problem and not part of this claim. **What I plan to change:** - command-list slot 14 (`Dispatch`) currently a no-op: forward `Dispatch(x, y, z)` to the desktop command list when the bound compute pipeline is real, and keep the existing no-op behaviour when it is not — no behaviour change for the placeholder case; - device slot 62 (`D3D12_COMPUTE_PIPELINE_STATE_DESC`): instead of a placeholder, retarget and sign the captured Scarlett DXIL container through the existing `dxil_retarget` path, then create a real compute PSO; refuse with a logged reason when the container carries `xbox.*` intrinsics or fails validation, rather than silently substituting a placeholder; - a **source-built fixture** that dispatches a trivial compute shader end to end and reads the output buffer back, so the check fails without the wiring (today the buffer stays untouched because nothing dispatches). **Evidence I will report:** dispatch count reaching the desktop list, pipeline creation results split into signed / refused with reasons, and the fixture's readback bytes before and after. **What I will not claim:** that the title's own compute work is correct or complete — the 43 modules with `xbox.*` intrinsics remain unrunnable by design, and this slice cannot speak for them. If you would rather have the `xbox.*` gate handled first (for example a translation shim for the most common intrinsics before wiring `Dispatch`), say so and I will switch; otherwise I will start with the wiring plus the fixture, which is testable today. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 12:03:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:22:58Z.


Please proceed with the source-built no-intrinsic compute dispatch slice. Use an offline, validated and signed artifact with the existing shader cache. Keep the final-module gate from #584 for executable unresolved calls, and report which stage refuses a pipeline. For the end-to-end fixture, use distinct dispatch dimensions and a UAV sentinel so a dropped dispatch or wrong root binding changes the result. A refused module should record zero desktop dispatches. WARP and one physical adapter would make the first PR independently reviewable.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130024376 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7130024376). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T11:22:58Z. --- Please proceed with the source-built no-intrinsic compute dispatch slice. Use an offline, validated and signed artifact with the existing shader cache. Keep the final-module gate from #584 for executable unresolved calls, and report which stage refuses a pipeline. For the end-to-end fixture, use distinct dispatch dimensions and a UAV sentinel so a dropped dispatch or wrong root binding changes the result. A refused module should record zero desktop dispatches. WARP and one physical adapter would make the first PR independently reviewable.
triggered02 commented 2026-11-24 12:03:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T11:33:59Z.


First slice up as #1441: compute pipelines that are already desktop DXIL become real, and Dispatch records them.

Scope, deliberately narrow:

  • device slot 62 builds a real desktop compute pipeline when the container is DXBC carrying a DXIL part and names no console intrinsic; otherwise it keeps the placeholder and logs the reason;
  • command-list slot 14 records Dispatch(x, y, z) only when the bound pipeline is real — with a placeholder the path is unchanged, so the 43 modules with xbox.* intrinsics behave exactly as they do today;
  • startup_compute_dxil (ctest) controls the classifier boundary, including the case that matters most from denn0x's data: a container that carries DXIL and names an intrinsic must be refused, not built and failed later.

Explicitly not in this PR, and I would rather say so than let the first slice look bigger than it is:

  1. no dispatch-and-readback fixture yet — the classifier is controlled, but "the recorded Dispatch actually executes" is not proven by compilation. That fixture is the next commit on the branch unless you would rather see it in the same review;
  2. no Scarlett-DXIL retargeting — the 9-of-52 intrinsic-free containers are still console DXIL and still get a placeholder; retargeting them offline into cached signed bytecode is the following slice, along with the xbox.* question for the remaining 43;
  3. nothing here claims the title's compute results are correct once dispatches run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130260866 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7130260866). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T11:33:59Z. --- First slice up as **#1441**: compute pipelines that are already desktop DXIL become real, and `Dispatch` records them. Scope, deliberately narrow: - device slot 62 builds a real desktop compute pipeline when the container is DXBC carrying a `DXIL` part and names no console intrinsic; otherwise it keeps the placeholder and logs the reason; - command-list slot 14 records `Dispatch(x, y, z)` **only** when the bound pipeline is real — with a placeholder the path is unchanged, so the 43 modules with `xbox.*` intrinsics behave exactly as they do today; - `startup_compute_dxil` (ctest) controls the classifier boundary, including the case that matters most from denn0x's data: a container that carries DXIL **and** names an intrinsic must be refused, not built and failed later. **Explicitly not in this PR**, and I would rather say so than let the first slice look bigger than it is: 1. **no dispatch-and-readback fixture yet** — the classifier is controlled, but "the recorded Dispatch actually executes" is not proven by compilation. That fixture is the next commit on the branch unless you would rather see it in the same review; 2. **no Scarlett-DXIL retargeting** — the 9-of-52 intrinsic-free containers are still console DXIL and still get a placeholder; retargeting them offline into cached signed bytecode is the following slice, along with the `xbox.*` question for the remaining 43; 3. nothing here claims the title's compute results are correct once dispatches run. AI-assisted (Claude Code).
denn0x commented 2026-11-24 12:03:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T11:49:41Z.


Correction: which pipelines the dispatches use

I counted Dispatch (list slot 14) per bound pipeline, by the device slot that created it.

Every dispatch measured so far used a pipeline from device slot 67, not slot 62.

  • Slot 67 takes a console compute pipeline description. It has the layout of the graphics description at slot 57: a root signature, then the gfx1013 machine code by GPU address and length, then its metadata. It is not a DXBC/DXIL container.
  • This covers the menu screens (one 3D-shaped dispatch per frame) and the loading phase (two more 1D dispatches per frame). The code decodes as ordinary gfx1013 compute: scalar loads from a descriptor table, image_load, image_store, VALU math and exec-masked branches.
  • Not measured yet: dispatches after loading (the 333 per frame in the table above), and whether any slot-62 (DXIL) pipeline is ever dispatched. My runs either crashed during loading or ended before then.

So for this issue, translating gfx1013 compute stages (slot 67) is the likelier critical path, not retargeting DXIL (slot 62). That means extending the graphics translator with:

  • a compute stage: group and thread IDs as entry registers, and numthreads from the pipeline's register metadata;
  • image_store/buffer_store to UAVs, which the translator does not do yet;
  • runtime binding of UAV descriptors from the title's descriptor tables.

The intrinsic census in my previous comment still applies to the slot-62 modules, if they turn out to be used. I will post the post-load census once a run gets there.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130603299 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7130603299). Originally posted by [denn0x](https://github.com/denn0x) on 2026-11-24T11:49:41Z. --- ## Correction: which pipelines the dispatches use I counted `Dispatch` (list slot 14) per bound pipeline, by the device slot that created it. **Every dispatch measured so far used a pipeline from device slot 67, not slot 62.** - Slot 67 takes a console compute pipeline description. It has the layout of the graphics description at slot 57: a root signature, then the gfx1013 machine code by GPU address and length, then its metadata. It is not a DXBC/DXIL container. - This covers the menu screens (one 3D-shaped dispatch per frame) and the loading phase (two more 1D dispatches per frame). The code decodes as ordinary gfx1013 compute: scalar loads from a descriptor table, `image_load`, `image_store`, VALU math and `exec`-masked branches. - **Not measured yet:** dispatches after loading (the 333 per frame in the table above), and whether any slot-62 (DXIL) pipeline is ever dispatched. My runs either crashed during loading or ended before then. So for this issue, translating gfx1013 compute stages (slot 67) is the likelier critical path, not retargeting DXIL (slot 62). That means extending the graphics translator with: - a compute stage: group and thread IDs as entry registers, and `numthreads` from the pipeline's register metadata; - `image_store`/`buffer_store` to UAVs, which the translator does not do yet; - runtime binding of UAV descriptors from the title's descriptor tables. The intrinsic census in my previous comment still applies to the slot-62 modules, if they turn out to be used. I will post the post-load census once a run gets there. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 13:00:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T12:23:36Z.


Thanks for separating recorded pipeline creation from the dispatches that actually use it. Please keep the verified slot 67 work as the next runtime target and treat slot 62 as a separate source-built experiment. A useful first slot 67 fixture would bind explicit group dimensions, a read buffer and a writable resource, then verify nonzero GPU output plus a dropped-dispatch or swapped-binding control. Keep the 333 post-load dispatches unclassified until there is matching evidence for that phase.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7131374913 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7131374913). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T12:23:36Z. --- Thanks for separating recorded pipeline creation from the dispatches that actually use it. Please keep the verified slot 67 work as the next runtime target and treat slot 62 as a separate source-built experiment. A useful first slot 67 fixture would bind explicit group dimensions, a read buffer and a writable resource, then verify nonzero GPU output plus a dropped-dispatch or swapped-binding control. Keep the 333 post-load dispatches unclassified until there is matching evidence for that phase.
denn0x commented 2026-11-24 13:00:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T12:35:31Z.


Post-load census: most rendering is GPU-driven

A run now gets past loading, so I counted one busy frame after loading. The frame was traced in a local runtime build with per-call logging.

Work recorded in one frame:

Call Count
ExecuteIndirect, all signatures 4,989
... DispatchMesh arguments (type 10) 3,715
... Dispatch arguments (type 2) 719
... DrawIndexed arguments (type 1) 270
... Draw arguments (type 0) 263
... console-only argument type 0x69, 12-byte stride 22
Direct Dispatch 2,527
Direct Draw/DrawIndexed 139
  • Every ExecuteIndirect call has a maximum count of 1 and no count buffer.
  • When the list is recorded, the argument records in the executable's memory are almost all zero. So the arguments are written on the GPU by earlier compute work, not by the CPU.
  • ExecuteIndirect is not executed by the runtime yet.

What reaches the render targets: I copied every render target of that frame back to the CPU at the end of the frame.

  • Almost all of them are entirely zero, including ones whose few direct draws did run.
  • The presented 3840x2160 surface is opaque black.

This matches the census: the scene is not drawn by direct draws.

Revised critical path for a picture after loading. Translating compute shaders alone is not enough. Three pieces are needed, and each depends on the one before:

  1. Compute execution: device slot 67 gfx1013 compute and slot 62 DXIL compute.
    • Slot 62 accounts for most of the direct dispatches, over few pipelines.
    • Slot 67 has many more pipelines, with fewer dispatches each.
  2. ExecuteIndirect with argument buffers that alias the executable's GPU memory, so arguments written by compute are what the desktop GPU reads.
  3. Mesh-shader pipelines for the DispatchMesh path, which is most of the indirect calls.

I will start on piece 1, with the compute dispatches that feed the indirect argument buffers. Anyone interested in piece 2 or 3 is welcome to pick it up. Pieces 2 and 3 can be tested on their own with source-built fixtures: a compute shader writes indirect arguments, then ExecuteIndirect consumes them.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7131652814 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7131652814). Originally posted by [denn0x](https://github.com/denn0x) on 2026-11-24T12:35:31Z. --- ## Post-load census: most rendering is GPU-driven A run now gets past loading, so I counted one busy frame after loading. The frame was traced in a local runtime build with per-call logging. **Work recorded in one frame:** | Call | Count | |---|---| | `ExecuteIndirect`, all signatures | 4,989 | | ... `DispatchMesh` arguments (type 10) | 3,715 | | ... `Dispatch` arguments (type 2) | 719 | | ... `DrawIndexed` arguments (type 1) | 270 | | ... `Draw` arguments (type 0) | 263 | | ... console-only argument type 0x69, 12-byte stride | 22 | | Direct `Dispatch` | 2,527 | | Direct `Draw`/`DrawIndexed` | 139 | - Every `ExecuteIndirect` call has a maximum count of 1 and no count buffer. - When the list is recorded, the argument records in the executable's memory are almost all zero. So the arguments are written on the GPU by earlier compute work, not by the CPU. - `ExecuteIndirect` is not executed by the runtime yet. **What reaches the render targets:** I copied every render target of that frame back to the CPU at the end of the frame. - Almost all of them are entirely zero, including ones whose few direct draws did run. - The presented 3840x2160 surface is opaque black. This matches the census: the scene is not drawn by direct draws. **Revised critical path for a picture after loading.** Translating compute shaders alone is not enough. Three pieces are needed, and each depends on the one before: 1. Compute execution: device slot 67 gfx1013 compute and slot 62 DXIL compute. - Slot 62 accounts for most of the direct dispatches, over few pipelines. - Slot 67 has many more pipelines, with fewer dispatches each. 2. `ExecuteIndirect` with argument buffers that alias the executable's GPU memory, so arguments written by compute are what the desktop GPU reads. 3. Mesh-shader pipelines for the `DispatchMesh` path, which is most of the indirect calls. I will start on piece 1, with the compute dispatches that feed the indirect argument buffers. Anyone interested in piece 2 or 3 is welcome to pick it up. Pieces 2 and 3 can be tested on their own with source-built fixtures: a compute shader writes indirect arguments, then `ExecuteIndirect` consumes them. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 13:00:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T12:51:06Z.


The post-load capture adds a separate producer-to-consumer question. The argument bytes seen at record time alone do not establish who produced them. For a source-built control, start the argument buffer with a sentinel, dispatch a writer, apply the required UAV and indirect-argument synchronization, then execute one desktop-supported indirect signature and verify its fenced output. Omit the writer or use an explicitly wrong record as a negative control. Keep the slot 67 direct-dispatch fixture independent, and leave the unclassified signature out of the first slice.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7132005411 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7132005411). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T12:51:06Z. --- The post-load capture adds a separate producer-to-consumer question. The argument bytes seen at record time alone do not establish who produced them. For a source-built control, start the argument buffer with a sentinel, dispatch a writer, apply the required UAV and indirect-argument synchronization, then execute one desktop-supported indirect signature and verify its fenced output. Omit the writer or use an explicitly wrong record as a negative control. Keep the slot 67 direct-dispatch fixture independent, and leave the unclassified signature out of the first slice.
ArnabSaga commented 2026-11-24 13:00:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by ArnabSaga on 2026-11-24T12:53:59Z.


Thanks for the clarification.

I've been working locally on the slot 62 Scarlett DXIL compute path, including offline retargeting, cache integrity, compute PSO creation, root bindings, and Dispatch execution. The source implementation is in place, and the Python controls pass, but C++ compilation and GPU verification are still pending.

I agree that the slot 67 direct-dispatch fixture should remain independent of the producer-to-consumer indirect execution test.

For the latter, the sentinel-initialized argument buffer, compute writer, UAV synchronization, transition to INDIRECT_ARGUMENT, and fenced readback should provide a clear way to establish the dependency. Omitting the writer would serve as a useful negative control.

I'll keep these paths separate and avoid claiming runtime compatibility until the GPU results are verified.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7132070880 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7132070880). Originally posted by [ArnabSaga](https://github.com/ArnabSaga) on 2026-11-24T12:53:59Z. --- Thanks for the clarification. I've been working locally on the slot 62 Scarlett DXIL compute path, including offline retargeting, cache integrity, compute PSO creation, root bindings, and Dispatch execution. The source implementation is in place, and the Python controls pass, but C++ compilation and GPU verification are still pending. I agree that the slot 67 direct-dispatch fixture should remain independent of the producer-to-consumer indirect execution test. For the latter, the sentinel-initialized argument buffer, compute writer, UAV synchronization, transition to INDIRECT_ARGUMENT, and fenced readback should provide a clear way to establish the dependency. Omitting the writer would serve as a useful negative control. I'll keep these paths separate and avoid claiming runtime compatibility until the GPU results are verified.
R0Y00 commented 2026-11-25 07:01:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T06:24:18Z.


The slot 67 request-to-DXIL step is now on main in #2223. Windows Release passed all 19 selected request and compute checks. The source-built publisher fed the watcher, and the resulting bytecode matched all 320 words on WARP and RTX 4060 Laptop. Swapping the group dimensions changed the readback on both. The startup runtime still creates a placeholder, so this is a fixture result. For the next slot 67 slice, please coordinate with the #2223 author, who noted a runtime follow-up. The acceptance is to construct and bind the real PSO, dispatch through the shim, and read the fenced UAV. A stale or missing compiled entry and a wrong binding should produce distinguishable results. Keep the separate slot 62 work in its existing PR.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154755535 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1412#issuecomment-7154755535). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T06:24:18Z. --- The slot 67 request-to-DXIL step is now on main in #2223. Windows Release passed all 19 selected request and compute checks. The source-built publisher fed the watcher, and the resulting bytecode matched all 320 words on WARP and RTX 4060 Laptop. Swapping the group dimensions changed the readback on both. The startup runtime still creates a placeholder, so this is a fixture result. For the next slot 67 slice, please coordinate with the #2223 author, who noted a runtime follow-up. The acceptance is to construct and bind the real PSO, dispatch through the shim, and read the fenced UAV. A stale or missing compiled entry and a wrong binding should produce distinguishable results. Keep the separate slot 62 work in its existing PR.
Sign in to join this conversation.
No labels
No milestone
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#1405
No description provided.