startup: translated compute Dispatch with 2D texture views, static samplers and a per-key census #2482

Open
NiiRoZz wants to merge 47 commits from upstream-pr/2490 into main
NiiRoZz commented 2026-11-25 18:30:44 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T18:30:44Z.


Depends on #2470 (stacked on its branch, which itself carries #1803, #1974 and #1975); the new code is the last seven commits.

Why

A run of a console package with the first slice recorded no translated Dispatch. Its log and shader cache, counted
offline (counts only):

  • the cache holds 61 compute translations for 2,689 current compute requests;
  • none of the 61 manifests was loadable by the first slice: 53 name a 2D texture output, 44 a 2D texture input,
    40 a raw buffer input, 9 a static sampler, 6 the stride and descword3 entry values, 48 declare no entry
    value, 8 have no view at all, and none has a raw buffer output;
  • the run dispatched at least 7 of those 61 programs (their refusal is logged at the first Dispatch); all 7 store to 2D textures (up to four), 4 read a 2D texture, 4 read a
    raw buffer, 6 declare no entry value, none uses a sampler;
  • the per-call refusal lines share one small budget, so the log names a single dispatching key and cannot rank
    keys by Dispatch count.

What changes

  1. Census (8e14a74b). Each key keeps its Dispatch count, the calls recorded, and the reason and table
    descriptor of its first refusal. The periodic totals line gains not modelled <n> (a manifest exists but holds
    a line the runtime does not bind, counted apart from an absent manifest) and is followed by the refused calls
    per reason and every dispatched key by call count.
  2. 2D texture outputs (f2f7bfcc). uav <i> tex2d float table <param> <byte> channels 4 is bound from the
    token of the unordered access view the caller created (device slot 19). Refused, each with its own reason: an
    entry that is no such token, a view the desktop did not create, a view that is not 2D, a packed view format, a format a float4
    store cannot target (integer, typeless), a texture that is also an input of the same call. Programs
    without entry values, inputs or outputs now load: the translated root no longer emits an empty range, and keeps
    its table when only outputs exist.
  3. 2D texture inputs and static samplers (15e8b7ab). srv <i> tex2d table <param> <byte> is bound from the
    token of a shader resource view (device slot 18) through the texture the draw path samples for that resource,
    uploaded first when the caller filled it in memory. smp lines become static samplers. Refused: no such token,
    no desktop texture, a view that is not 2D, a packed view format, a failed upload.

No view is bound null. A refused call records no Dispatch and binds nothing; the upload of an input texture the
caller filled in memory may already be recorded, which only syncs content.

With these line forms, 55 of the 61 manifests load, including all 7 the run dispatched (offline count against the
manifest text; the 6 others need stride and descword3).

Not in this change

  • stride and descword3 entry values (6 manifests, none among the 7 dispatched).
  • Buffer inputs in plain memory that no GPU-backed range covers (the copy the draw path makes). Nothing measured
    says a dispatched program needs it; the census of the next run will.
  • Sampler heaps, comparison samplers, texture kinds other than 2D, integer-typed outputs, one texture as input and
    output of the same call (a mip chain pass), packed view formats.

Evidence

Commit under test: d0b9e774 for the four tests below; d3c396cc for the neighbouring run (the commits between them throttle a device check, drop a liveness test, narrow the same-texture refusal to input against output, refuse packed output formats by name and print every census key). Windows 11 build 26300.

cmake --build --preset dev
ctest --preset dev --no-tests=error -R "^startup_compute_dispatch_" -V
Test Adapter, driver Debug layer Result
startup_compute_dispatch_warp Microsoft Basic Render Driver, 10.0.26100.10068 enabled, no error message passed
startup_compute_dispatch_texture_warp Microsoft Basic Render Driver, 10.0.26100.10068 enabled, no error message passed
startup_compute_dispatch_hardware NVIDIA GeForce RTX 5090, 32.0.16.2135 enabled, no error message passed
startup_compute_dispatch_texture_hardware NVIDIA GeForce RTX 5090, 32.0.16.2135 enabled, no error message passed
  • Texture output: a source-built gfx1013 program stores to a 32x8 RGBA16_FLOAT texture; the 1024 halves are read
    back through CopyTextureRegion on the stand-in's list. Expected: mip 0 of the fixture's CPU reference (64 halves
    changed). Negative controls, same run: before the offline translation, without a Dispatch, and with a texture
    that has no unordered access, every half keeps its sentinel and the refusal is logged once.
  • Texture input: the raw buffer program with a level-zero sample of a 1x1 RGBA8 texture XORed into each stored
    word. Expected: the case's 288 written words XOR the bits of 1.0f, the 32 others untouched. Negative control: no
    view at the table entry, the dispatch is refused and every word keeps its sentinel.
  • No entry values: the texture output program bound under a manifest edited to ud 0.
  • Census: the raw buffer check asserts the census lines of each run.

Neighbouring tests, ctest --preset dev --no-tests=error -R '^startup_|sampler|list_copy|compute' -j 6: 864 selected, 860 passed, 0 failed. Capability skips, reported apart (4): startup_view_heap_warp, startup_small_texture_4k_addrlib, startup_logical_view_warp, startup_run_sh.

Limits and open points

  • The sampling fixture uses a 1x1 texture: it proves the view and a sampler are bound, not which filter or address
    mode the static sampler has.
  • The instruction that XORs the sampled value is derived by hand from an assembled instruction of the same form
    (one register field changed); the check asserts that the translation reads it as written, llvm-mc did not
    assemble it here.
  • The ud 0 case uses an edited manifest on a program compiled with three unused entry values.
  • That a console package's compute table holds view tokens for its textures is the model of the draw path, not
    something measured for compute; the census prints the first refused descriptor per key to settle it.
  • The 8 manifests without any view store nothing the runtime can observe; they are dispatched, and no read-back
    can show that this is right.
  • Two outputs on one texture (two mips) are allowed and not covered by a fixture.
  • Each dispatch takes its views from the descriptor ring of the draw path (262,144 entries). At the measured rate
    of about 1,500 Dispatch calls per frame and a few views each, the ring wraps after tens of frames; that a
    recorded list never outlives a wrap is the draw path's assumption, not re-measured for compute.
  • The census is printed with the periodic totals (every 300 frames); calls after the last print are not in it.
  • Which share of all Dispatch calls waits for a translation rather than for the runtime is not known from the
    measured run: its log names 8 dispatching keys (7 that waited for the runtime, 1 whose translation failed) and
    no per-key count. The census answers it on the next run.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5496933360 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T18:30:44Z. --- Depends on #2470 (stacked on its branch, which itself carries #1803, #1974 and #1975); the new code is the last seven commits. ## Why A run of a console package with the first slice recorded no translated Dispatch. Its log and shader cache, counted offline (counts only): - the cache holds 61 compute translations for 2,689 current compute requests; - none of the 61 manifests was loadable by the first slice: 53 name a 2D texture output, 44 a 2D texture input, 40 a raw buffer input, 9 a static sampler, 6 the `stride` and `descword3` entry values, 48 declare no entry value, 8 have no view at all, and none has a raw buffer output; - the run dispatched at least 7 of those 61 programs (their refusal is logged at the first Dispatch); all 7 store to 2D textures (up to four), 4 read a 2D texture, 4 read a raw buffer, 6 declare no entry value, none uses a sampler; - the per-call refusal lines share one small budget, so the log names a single dispatching key and cannot rank keys by Dispatch count. ## What changes 1. **Census** (`8e14a74b`). Each key keeps its Dispatch count, the calls recorded, and the reason and table descriptor of its first refusal. The periodic totals line gains `not modelled <n>` (a manifest exists but holds a line the runtime does not bind, counted apart from an absent manifest) and is followed by the refused calls per reason and every dispatched key by call count. 2. **2D texture outputs** (`f2f7bfcc`). `uav <i> tex2d float table <param> <byte> channels 4` is bound from the token of the unordered access view the caller created (device slot 19). Refused, each with its own reason: an entry that is no such token, a view the desktop did not create, a view that is not 2D, a packed view format, a format a `float4` store cannot target (integer, typeless), a texture that is also an input of the same call. Programs without entry values, inputs or outputs now load: the translated root no longer emits an empty range, and keeps its table when only outputs exist. 3. **2D texture inputs and static samplers** (`15e8b7ab`). `srv <i> tex2d table <param> <byte>` is bound from the token of a shader resource view (device slot 18) through the texture the draw path samples for that resource, uploaded first when the caller filled it in memory. `smp` lines become static samplers. Refused: no such token, no desktop texture, a view that is not 2D, a packed view format, a failed upload. No view is bound null. A refused call records no Dispatch and binds nothing; the upload of an input texture the caller filled in memory may already be recorded, which only syncs content. With these line forms, 55 of the 61 manifests load, including all 7 the run dispatched (offline count against the manifest text; the 6 others need `stride` and `descword3`). ## Not in this change - `stride` and `descword3` entry values (6 manifests, none among the 7 dispatched). - Buffer inputs in plain memory that no GPU-backed range covers (the copy the draw path makes). Nothing measured says a dispatched program needs it; the census of the next run will. - Sampler heaps, comparison samplers, texture kinds other than 2D, integer-typed outputs, one texture as input and output of the same call (a mip chain pass), packed view formats. ## Evidence Commit under test: `d0b9e774` for the four tests below; `d3c396cc` for the neighbouring run (the commits between them throttle a device check, drop a liveness test, narrow the same-texture refusal to input against output, refuse packed output formats by name and print every census key). Windows 11 build 26300. ```powershell cmake --build --preset dev ctest --preset dev --no-tests=error -R "^startup_compute_dispatch_" -V ``` | Test | Adapter, driver | Debug layer | Result | |---|---|---|---| | `startup_compute_dispatch_warp` | Microsoft Basic Render Driver, 10.0.26100.10068 | enabled, no error message | passed | | `startup_compute_dispatch_texture_warp` | Microsoft Basic Render Driver, 10.0.26100.10068 | enabled, no error message | passed | | `startup_compute_dispatch_hardware` | NVIDIA GeForce RTX 5090, 32.0.16.2135 | enabled, no error message | passed | | `startup_compute_dispatch_texture_hardware` | NVIDIA GeForce RTX 5090, 32.0.16.2135 | enabled, no error message | passed | - Texture output: a source-built gfx1013 program stores to a 32x8 RGBA16_FLOAT texture; the 1024 halves are read back through CopyTextureRegion on the stand-in's list. Expected: mip 0 of the fixture's CPU reference (64 halves changed). Negative controls, same run: before the offline translation, without a Dispatch, and with a texture that has no unordered access, every half keeps its sentinel and the refusal is logged once. - Texture input: the raw buffer program with a level-zero sample of a 1x1 RGBA8 texture XORed into each stored word. Expected: the case's 288 written words XOR the bits of 1.0f, the 32 others untouched. Negative control: no view at the table entry, the dispatch is refused and every word keeps its sentinel. - No entry values: the texture output program bound under a manifest edited to `ud 0`. - Census: the raw buffer check asserts the census lines of each run. Neighbouring tests, `ctest --preset dev --no-tests=error -R '^startup_|sampler|list_copy|compute' -j 6`: 864 selected, 860 passed, 0 failed. Capability skips, reported apart (4): `startup_view_heap_warp`, `startup_small_texture_4k_addrlib`, `startup_logical_view_warp`, `startup_run_sh`. ## Limits and open points - The sampling fixture uses a 1x1 texture: it proves the view and a sampler are bound, not which filter or address mode the static sampler has. - The instruction that XORs the sampled value is derived by hand from an assembled instruction of the same form (one register field changed); the check asserts that the translation reads it as written, llvm-mc did not assemble it here. - The `ud 0` case uses an edited manifest on a program compiled with three unused entry values. - That a console package's compute table holds view tokens for its textures is the model of the draw path, not something measured for compute; the census prints the first refused descriptor per key to settle it. - The 8 manifests without any view store nothing the runtime can observe; they are dispatched, and no read-back can show that this is right. - Two outputs on one texture (two mips) are allowed and not covered by a fixture. - Each dispatch takes its views from the descriptor ring of the draw path (262,144 entries). At the measured rate of about 1,500 Dispatch calls per frame and a few views each, the ring wraps after tens of frames; that a recorded list never outlives a wrap is the draw path's assumption, not re-measured for compute. - The census is printed with the periodic totals (every 300 frames); calls after the last print are not in it. - Which share of all Dispatch calls waits for a translation rather than for the runtime is not known from the measured run: its log names 8 dispatching keys (7 that waited for the runtime, 1 whose translation failed) and no per-key count. The census answers it on the next run. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
RonLogic commented 2026-11-25 19:14:54 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-25T19:14:54Z.


The two-mip follow-up is verified on the current head f67f80a4. The test-only commit adds separate WARP and hardware CTests and uses the existing slot 67 / slot 14 fixture. I'll open the follow-up against main after the runtime dependency lands.

One translated Dispatch binds two UAVs of the same RGBA16_FLOAT texture at table bytes 64 and 128. Both mip readbacks match across all 1,280 half values, including the untouched texels. Before translation both mips retain their sentinels. Exchanging the UAVs moves the two patterns to the opposite mips and changes exactly 64 halves against the ordered result.

cmake --build --preset release --target startup_stream_consumer --parallel 4
ctest --preset release --no-tests=error -j 1 -R '^startup_compute_dispatch(_texture|_two_mips)?_(warp|hardware)$' -V

6/6 passed, no skips. Windows 11 build 26300.10075, RTX 4070 driver 32.0.16.2124, in-box WARP 10.0.26100.10068 and the SDK 10.0.26100 DXC. The debug layer was enabled on both adapters and reported no errors.

Update: #2532 brought the textured runtime onto main. I ported the test onto 2215c26d (efd69f8e) and both mip tests passed. A separate local integration (8dd586ef) with the current #2710 UAV fix passed all 12 compute, live-retry and pixel UAV tests on WARP and RTX 4070. #2710 modifies the same fixture, so I’ll open the follow-up after that change lands.

Latest integration check: I combined a766f287 with #2710 at 2aa18479 and the isolated two-mip fixture in local head 8f198d16. The 12-test compute Dispatch/live-retry/pixel-UAV group passed in both MSVC Debug and Release, zero skips. In each configuration WARP and RTX 4070 both matched all 1,280 half words for each view order. Swapping the views changed the expected 64 words, with the D3D12 debug layer enabled and no error message. I’ll submit the fixture as its own PR after #2710 lands.

#2710 is now on main. The standalone two-mip fixture is open as #2882. On b505c32b plus the fixture, all 24 Release cases passed, including the current array UAV/slot-67 regressions and both mip permutations on WARP and RTX 4070.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7172027844 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7172027844). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-25T19:14:54Z. --- The two-mip follow-up is verified on the current head `f67f80a4`. The [test-only commit](https://github.com/RonLogic/Xbox2Windows/commit/eca06ade) adds separate WARP and hardware CTests and uses the existing slot 67 / slot 14 fixture. I'll open the follow-up against `main` after the runtime dependency lands. One translated Dispatch binds two UAVs of the same RGBA16_FLOAT texture at table bytes 64 and 128. Both mip readbacks match across all 1,280 half values, including the untouched texels. Before translation both mips retain their sentinels. Exchanging the UAVs moves the two patterns to the opposite mips and changes exactly 64 halves against the ordered result. ```powershell cmake --build --preset release --target startup_stream_consumer --parallel 4 ctest --preset release --no-tests=error -j 1 -R '^startup_compute_dispatch(_texture|_two_mips)?_(warp|hardware)$' -V ``` 6/6 passed, no skips. Windows 11 build 26300.10075, RTX 4070 driver 32.0.16.2124, in-box WARP 10.0.26100.10068 and the SDK 10.0.26100 DXC. The debug layer was enabled on both adapters and reported no errors. Update: #2532 brought the textured runtime onto `main`. I ported the test onto `2215c26d` (`efd69f8e`) and both mip tests passed. A separate local integration (`8dd586ef`) with the current #2710 UAV fix passed all 12 compute, live-retry and pixel UAV tests on WARP and RTX 4070. #2710 modifies the same fixture, so I’ll open the follow-up after that change lands. Latest integration check: I combined `a766f287` with #2710 at `2aa18479` and the isolated two-mip fixture in local head `8f198d16`. The 12-test compute Dispatch/live-retry/pixel-UAV group passed in both MSVC Debug and Release, zero skips. In each configuration WARP and RTX 4070 both matched all 1,280 half words for each view order. Swapping the views changed the expected 64 words, with the D3D12 debug layer enabled and no error message. I’ll submit the fixture as its own PR after #2710 lands. #2710 is now on main. The [standalone two-mip fixture is open as #2882](https://github.com/R0Y00/Xbox2Windows/pull/2882). On `b505c32b` plus the fixture, all 24 Release cases passed, including the current array UAV/slot-67 regressions and both mip permutations on WARP and RTX 4070.
RonLogic commented 2026-11-25 20:04:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-25T19:10:34Z.


I’ll take the uncovered two-UAV case mentioned in the PR description: one translated Dispatch, two output views of the same texture at distinct mips, with different expected values and a view-swap control. I’ll use the source-built fixture on RTX 4070 and WARP and keep it as a follow-up to this PR so the runtime work can land independently.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171920780 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7171920780). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-25T19:10:34Z. --- I’ll take the uncovered two-UAV case mentioned in the PR description: one translated Dispatch, two output views of the same texture at distinct mips, with different expected values and a view-swap control. I’ll use the source-built fixture on RTX 4070 and WARP and keep it as a follow-up to this PR so the runtime work can land independently.
ChazY11 commented 2026-11-25 20:04:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-25T19:13:11Z.


Built and ran it here: 8 C++ cases and both Python checks pass on WARP and on a physical GPU — with two manifest guards that no test constrains

I could build individual targets on this host even though the full build stops in DXC, so this is a run result,
not a reading.

What passed

Targets startup_stream_consumer, startup_compute_root, startup_list_dispatch_check, startup_root_constant_store all
built (cmake --build --preset dev --target …, exit 0).

ctest --preset dev -R 'startup_root_constant_store|startup_list_dispatch|startup_compute_root'
     1/8 startup_root_constant_store .................. Passed
     2/8 startup_list_dispatch ........................ Passed
     3/8 startup_list_dispatch_no-limit_control ....... Passed
     4/8 startup_list_dispatch_no-state_control ....... Passed
     5/8 startup_list_dispatch_no-root-args_control ... Passed
     6/8 startup_list_dispatch_no-pairing_control ..... Passed
     7/8 startup_list_dispatch_no-bound_control ....... Passed
     8/8 startup_compute_root ......................... Passed
     100% tests passed, 0 tests failed out of 8
python -B tests/startup_compute_dispatch_check.py <bin> <dxc 10.0.26100> warp
    adapter=Microsoft Basic Render Driver driver=10.0.26100.9818
    debug layer: enabled, no error message
    startup_compute_dispatch: PASS on warp (all 320 words match after translation; untouched before
    translation, without a Dispatch and for a refused output)

… hardware: startup_compute_dispatch: PASS on hardware (same four conditions)

python -B tests/startup_compute_dispatch_texture_check.py <bin> <dxc> warp / hardware
    texture output: all 1024 halves match after translation (64 changed) and without entry values;
    untouched before translation, without a Dispatch and for a refused view; debug layer: enabled, no error message
    texture input: all 320 words match after translation; untouched before translation and without a view
    startup_compute_dispatch_texture: PASS on warp / PASS on hardware

Five negative controls around the list dispatch, and four conditions inside each dispatch assertion (before
translation, without a Dispatch, refused output, refused view) — that is the shape that makes the pass mean
something.

Three in-place mutations

Each one edited src/startup_stubs/d3d12_compute_dispatch.inl, rebuilt startup_stream_consumer, ran both suites,
then restored the file and rebuilt.

mutation startup_compute_dispatch_check.py the C++ cases
if (tr->state != 1) → if (true) (refuse every dispatch) caught not caught
line 65 return "manifest version"; → return nullptr; survived not caught
line 69 return "not a compute manifest"; → return nullptr; survived not caught

The first is the one that matters: making the not-ready path unconditional breaks the translated case immediately,
so the Python check really does assert that a ready manifest dispatches. It also shows the C++ cases and the Python
check cover different halves — the C++ ones never see a translated dispatch.

The two survivors are manifest-rejection texts, and I would not call them defects

load_compute_translation returns a reason string when a manifest line does not match. Disabling the version check
and the stage check changes only the string recorded for a manifest that failed to load; the dispatch still
refuses, only with nullptr instead of "manifest version". No test feeds a malformed manifest, so nothing
distinguishes the two.

That is a coverage statement, not a bug: the refusal still happens. If you want the reasons pinned, one fixture that
writes x2w-manifest 1 and one that writes stage ps and asserts the two strings would do it — cheap, and it would
also catch a future reordering of the manifest checks.

Build environment

Windows 11 build 26300.9974; DXC 10.0.26100; adapters: Microsoft Basic Render Driver (WARP) and the installed
physical GPU; debug layer enabled with no message in every run above. Individual targets build here — the earlier
"cannot build" boundary applied to the full target set, not to these.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171984389 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7171984389). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-25T19:13:11Z. --- ## Built and ran it here: 8 C++ cases and both Python checks pass on WARP and on a physical GPU — with two manifest guards that no test constrains I could build individual targets on this host even though the full build stops in DXC, so this is a **run** result, not a reading. ### What passed Targets `startup_stream_consumer`, `startup_compute_root`, `startup_list_dispatch_check`, `startup_root_constant_store` all built (`cmake --build --preset dev --target …`, exit 0). ```text ctest --preset dev -R 'startup_root_constant_store|startup_list_dispatch|startup_compute_root' 1/8 startup_root_constant_store .................. Passed 2/8 startup_list_dispatch ........................ Passed 3/8 startup_list_dispatch_no-limit_control ....... Passed 4/8 startup_list_dispatch_no-state_control ....... Passed 5/8 startup_list_dispatch_no-root-args_control ... Passed 6/8 startup_list_dispatch_no-pairing_control ..... Passed 7/8 startup_list_dispatch_no-bound_control ....... Passed 8/8 startup_compute_root ......................... Passed 100% tests passed, 0 tests failed out of 8 ``` ```text python -B tests/startup_compute_dispatch_check.py <bin> <dxc 10.0.26100> warp adapter=Microsoft Basic Render Driver driver=10.0.26100.9818 debug layer: enabled, no error message startup_compute_dispatch: PASS on warp (all 320 words match after translation; untouched before translation, without a Dispatch and for a refused output) … hardware: startup_compute_dispatch: PASS on hardware (same four conditions) python -B tests/startup_compute_dispatch_texture_check.py <bin> <dxc> warp / hardware texture output: all 1024 halves match after translation (64 changed) and without entry values; untouched before translation, without a Dispatch and for a refused view; debug layer: enabled, no error message texture input: all 320 words match after translation; untouched before translation and without a view startup_compute_dispatch_texture: PASS on warp / PASS on hardware ``` Five negative controls around the list dispatch, and four conditions inside each dispatch assertion (before translation, without a Dispatch, refused output, refused view) — that is the shape that makes the pass mean something. ### Three in-place mutations Each one edited `src/startup_stubs/d3d12_compute_dispatch.inl`, rebuilt `startup_stream_consumer`, ran both suites, then restored the file and rebuilt. | mutation | `startup_compute_dispatch_check.py` | the C++ cases | |---|---|---| | `if (tr->state != 1)` → `if (true)` (refuse every dispatch) | **caught** | not caught | | line 65 `return "manifest version";` → `return nullptr;` | survived | not caught | | line 69 `return "not a compute manifest";` → `return nullptr;` | survived | not caught | The first is the one that matters: making the not-ready path unconditional breaks the translated case immediately, so the Python check really does assert that a ready manifest dispatches. It also shows the C++ cases and the Python check cover **different** halves — the C++ ones never see a translated dispatch. ### The two survivors are manifest-rejection texts, and I would not call them defects `load_compute_translation` returns a reason string when a manifest line does not match. Disabling the version check and the stage check changes only the **string** recorded for a manifest that failed to load; the dispatch still refuses, only with `nullptr` instead of `"manifest version"`. No test feeds a malformed manifest, so nothing distinguishes the two. That is a coverage statement, not a bug: the refusal still happens. If you want the reasons pinned, one fixture that writes `x2w-manifest 1` and one that writes `stage ps` and asserts the two strings would do it — cheap, and it would also catch a future reordering of the manifest checks. ### Build environment Windows 11 build 26300.9974; DXC 10.0.26100; adapters: Microsoft Basic Render Driver (WARP) and the installed physical GPU; debug layer enabled with no message in every run above. Individual targets build here — the earlier "cannot build" boundary applied to the full target set, not to these. AI-assisted.
MasterDomino commented 2026-11-25 20:39:07 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T20:39:07Z.

Review: DISMISSED


Review of f67f80a4 (stacked on #2470; it inherits my #2470 notes). One P1, plus unpinned guards.

P1: texture input on a COMPUTE command list breaks the list

  • The path: dispatch_translated accepts COMPUTE lists (d3d12_compute_dispatch.inl:139, type != DIRECT && type != COMPUTE refuses only other types). A texture input is then transitioned to sampled_state(self, view.resource) | D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE (:279).
  • The problem: sampled_state (d3d12_xs_device.cpp:2397-2402) always returns PIXEL_SHADER_RESOURCE, and also DEPTH_READ for depth. PIXEL_SHADER_RESOURCE (0x80) isn't a valid barrier state on a compute command list.
  • Local probe: a test-only edit ran dispatch-sampled with the consumer's queue, allocator and list switched to COMPUTE. On WARP and the RX 9070 XT the debug layer reports ID3D12CommandList::ResourceBarrier: D3D12_RESOURCE_STATES has invalid flags (0x80) for compute command list (id 537), followed by list Close failed 0x80070057. With the debug layer off, Close still fails, and on hardware the process then exited 0xC0000409.
  • Impact: every command on that list is lost.
  • Control: the raw-buffer program passes on the same COMPUTE list.
  • What would resolve it: on COMPUTE lists use only NON_PIXEL_SHADER_RESOURCE (and drop DEPTH_READ there too), and add a COMPUTE-list variant of dispatch-sampled.
  • Why it matters for start-up: 4 of the 7 dispatched keys in your package count read a 2D texture, so an async-compute list would hit this.

Runs (Windows 11 build 26300; RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818; debug layer enabled)

ctest --preset dev --no-tests=error -j1 -R '^startup_compute_dispatch_(texture_)?(warp|hardware)$' -V
  • New tests: 4/4 pass, with no debug messages; the texture output and input lines match the description. Each hardware test also passed --repeat until-fail:10.
  • The #2470 neighbour filter: 184 selected, 182 passed, 0 failed, 2 capability skips.

Mutants (one line each, rebuilt, restored)

mutant result
texture SRV created with a null view (:280) caught (word=0 … 288 words differ)
return "manifest version"; → return nullptr; (:65, @ChazY11's guard) survives
return "not a compute manifest"; → return nullptr; (:69) survives
any manifest version accepted (if (false) at :65) survives
same-texture input/output refusal off (:222) survives
float/normalized output-format refusal off (:218) survives: an integer-format UAV would be bound to a float4 store

One fixture each with x2w-manifest 1, stage ps, an integer-format UAV, and one texture as both input and output would pin these. The manifest version and stage are the translator–runtime contract, so they're worth pinning.

Minor

  • Bound render target: a texture that's currently a bound render target is moved to SRV or UAV state, and nothing restores RENDER_TARGET before the following draws.
  • Typeless format: an undescribed SRV on a typeless resource gets a null description.
  • Parse nit: the smp parser at :88 passes &x twice.

Merge readiness

The branch merges cleanly against main and on top of #2470, but it can only land after #2470, per @R0Y00's 19:30 note there. The manifest format is unchanged, so no cache-key bump is needed. The new DLL export x2w_d3d12_compute_census is an interface addition for the maintainer to accept.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6064656075 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#pullrequestreview-6064656075). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T20:39:07Z. **Review:** DISMISSED --- Review of `f67f80a4` (stacked on #2470; it inherits my #2470 notes). One P1, plus unpinned guards. ### P1: texture input on a COMPUTE command list breaks the list - **The path:** `dispatch_translated` accepts COMPUTE lists (`d3d12_compute_dispatch.inl:139`, `type != DIRECT && type != COMPUTE` refuses only other types). A texture input is then transitioned to `sampled_state(self, view.resource) | D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE` (`:279`). - **The problem:** `sampled_state` (`d3d12_xs_device.cpp:2397-2402`) always returns `PIXEL_SHADER_RESOURCE`, and also `DEPTH_READ` for depth. `PIXEL_SHADER_RESOURCE` (0x80) isn't a valid barrier state on a compute command list. - **Local probe:** a test-only edit ran `dispatch-sampled` with the consumer's queue, allocator and list switched to COMPUTE. On WARP and the RX 9070 XT the debug layer reports `ID3D12CommandList::ResourceBarrier: D3D12_RESOURCE_STATES has invalid flags (0x80) for compute command list` (id 537), followed by `list Close failed 0x80070057`. With the debug layer off, Close still fails, and on hardware the process then exited `0xC0000409`. - **Impact:** every command on that list is lost. - **Control:** the raw-buffer program passes on the same COMPUTE list. - **What would resolve it:** on COMPUTE lists use only `NON_PIXEL_SHADER_RESOURCE` (and drop `DEPTH_READ` there too), and add a COMPUTE-list variant of `dispatch-sampled`. - **Why it matters for start-up:** 4 of the 7 dispatched keys in your package count read a 2D texture, so an async-compute list would hit this. ### Runs (Windows 11 build 26300; RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818; debug layer enabled) ```powershell ctest --preset dev --no-tests=error -j1 -R '^startup_compute_dispatch_(texture_)?(warp|hardware)$' -V ``` - **New tests:** 4/4 pass, with no debug messages; the texture output and input lines match the description. Each hardware test also passed `--repeat until-fail:10`. - **The #2470 neighbour filter:** 184 selected, 182 passed, 0 failed, 2 capability skips. ### Mutants (one line each, rebuilt, restored) | mutant | result | |---|---| | texture SRV created with a null view (`:280`) | caught (`word=0 … 288 words differ`) | | `return "manifest version";` → `return nullptr;` (`:65`, @ChazY11's guard) | **survives** | | `return "not a compute manifest";` → `return nullptr;` (`:69`) | **survives** | | any manifest version accepted (`if (false)` at `:65`) | **survives** | | same-texture input/output refusal off (`:222`) | **survives** | | float/normalized output-format refusal off (`:218`) | **survives**: an integer-format UAV would be bound to a `float4` store | One fixture each with `x2w-manifest 1`, `stage ps`, an integer-format UAV, and one texture as both input and output would pin these. The manifest version and stage are the translator–runtime contract, so they're worth pinning. ### Minor - **Bound render target:** a texture that's currently a bound render target is moved to SRV or UAV state, and nothing restores `RENDER_TARGET` before the following draws. - **Typeless format:** an undescribed SRV on a typeless resource gets a null description. - **Parse nit:** the `smp` parser at `:88` passes `&x` twice. ### Merge readiness The branch merges cleanly against `main` and on top of #2470, but it can only land after #2470, per @R0Y00's 19:30 note there. The manifest format is unchanged, so no cache-key bump is needed. The new DLL export `x2w_d3d12_compute_census` is an interface addition for the maintainer to accept. AI-assisted; commands listed were executed locally.
NiiRoZz commented 2026-11-25 21:01:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T21:00:55Z.


Thanks for the review. Head 76ce41bc, with the reworked #2470 (1f5fb5e4) merged in.

P1, compute list barrier. Fixed at the call site by list type: on a COMPUTE list a sampled texture input is transitioned to NON_PIXEL_SHADER_RESOURCE only; a direct list keeps sampled_state(...) | NON_PIXEL_SHADER_RESOURCE. sampled_state has one other caller, the draw path, which only runs on direct lists. New mode dispatch-sampled-compute records the sampling fixture on a compute list and a compute queue and must give the same 320 words with no debug-layer error.

Refusals that were not pinned. Four fixtures in startup_compute_dispatch_texture_check.py, each requiring the one logged reason and an untouched texture: an RGBA16_UINT view (texture-store-uint), manifest version, stage, and the output texture also named as an input (texture-store-self, with a shader resource view of the same texture and a manifest line added by the check).

Minor. The smp manifest line no longer scans two fields into one variable.

Mutants (each applied alone, stand-in rebuilt, startup_compute_dispatch_texture_warp rerun; not committed)

Mutant Result
compute list uses the pixel-shader state again red: dispatch-sampled-compute: consumer exit 75 (the list's Close fails)
integer-format refusal off red at texture-store-uint (no refusal logged)
same-texture refusal off red at texture-store-self
manifest version check off red at manifest version
stage check off red at not a compute manifest

Measured

ctest --preset dev --no-tests=error -R '^startup_compute_dispatch_'

4/4 passed, no skip: startup_compute_dispatch_{warp,hardware} and startup_compute_dispatch_texture_{warp,hardware}. WARP: Microsoft Basic Render Driver 10.0.26100.10068. Hardware: NVIDIA GeForce RTX 5090, driver 32.0.16.2135. Windows build 26300.10075, debug layer enabled, no error or corruption message. Before the pins were added, the wider filter (...|startup_root_constant_store|startup_list_dispatch|startup_compute_root|startup_stream) passed 30/30 on this branch except the then-new texture-store-self fixture on WARP, which used a table offset that is not a descriptor boundary there; it now uses byte 0. That wider filter was not rerun after this last fixture change.

Not done

  • The bound render target is not restored after a translated dispatch.
  • A typeless texture still gets a null view description.
  • The two-mip follow-up stays with @RonLogic.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174492887 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7174492887). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T21:00:55Z. --- Thanks for the review. Head `76ce41bc`, with the reworked #2470 (`1f5fb5e4`) merged in. **P1, compute list barrier.** Fixed at the call site by list type: on a `COMPUTE` list a sampled texture input is transitioned to `NON_PIXEL_SHADER_RESOURCE` only; a direct list keeps `sampled_state(...) | NON_PIXEL_SHADER_RESOURCE`. `sampled_state` has one other caller, the draw path, which only runs on direct lists. New mode `dispatch-sampled-compute` records the sampling fixture on a compute list and a compute queue and must give the same 320 words with no debug-layer error. **Refusals that were not pinned.** Four fixtures in `startup_compute_dispatch_texture_check.py`, each requiring the one logged reason and an untouched texture: an RGBA16_UINT view (`texture-store-uint`), manifest version, stage, and the output texture also named as an input (`texture-store-self`, with a shader resource view of the same texture and a manifest line added by the check). **Minor.** The `smp` manifest line no longer scans two fields into one variable. **Mutants** (each applied alone, stand-in rebuilt, `startup_compute_dispatch_texture_warp` rerun; not committed) | Mutant | Result | |---|---| | compute list uses the pixel-shader state again | red: `dispatch-sampled-compute: consumer exit 75` (the list's Close fails) | | integer-format refusal off | red at `texture-store-uint` (no refusal logged) | | same-texture refusal off | red at `texture-store-self` | | manifest version check off | red at `manifest version` | | stage check off | red at `not a compute manifest` | **Measured** ```powershell ctest --preset dev --no-tests=error -R '^startup_compute_dispatch_' ``` 4/4 passed, no skip: `startup_compute_dispatch_{warp,hardware}` and `startup_compute_dispatch_texture_{warp,hardware}`. WARP: Microsoft Basic Render Driver 10.0.26100.10068. Hardware: NVIDIA GeForce RTX 5090, driver 32.0.16.2135. Windows build 26300.10075, debug layer enabled, no error or corruption message. Before the pins were added, the wider filter (`...|startup_root_constant_store|startup_list_dispatch|startup_compute_root|startup_stream`) passed 30/30 on this branch except the then-new `texture-store-self` fixture on WARP, which used a table offset that is not a descriptor boundary there; it now uses byte 0. That wider filter was not rerun after this last fixture change. **Not done** - The bound render target is not restored after a translated dispatch. - A typeless texture still gets a null view description. - The two-mip follow-up stays with @RonLogic. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MasterDomino commented 2026-11-25 21:33:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T21:33:41Z.

Review: COMMENTED


Re-review of 76ce41bc (stacked on #2470 1f5fb5e4). The P1 is fixed and the guards I listed are pinned.

P1: texture input on a COMPUTE list (resolved)

  • On a COMPUTE list a sampled texture is now transitioned to NON_PIXEL_SHADER_RESOURCE only (d3d12_compute_dispatch.inl:292). dispatch-sampled-compute records the sampling fixture on a compute list and queue, and gives all 320 words with no debug-layer error on WARP and the RX 9070 XT.
  • With the fix reverted, that mode fails on both adapters: ResourceBarrier: D3D12_RESOURCE_STATES has invalid flags (0x80) for compute command list (id 537), then list Close failed 0x80070057, consumer exit 75. So the fixture guards the fix.
  • DEPTH_READ can't arise on that path: a compute list never tracks it, and sampled_state is no longer called there.

Runs (Windows 11 build 26300; RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818; debug layer enabled)

ctest --preset dev --no-tests=error -j1 -R '^startup_compute_dispatch_(texture_)?(warp|hardware)$' -V
ctest --preset dev --no-tests=error -j1 -R 'startup_list_dispatch|startup_compute|startup_root_constant|startup_gfx2hlsl_compute|startup_indirect|era_heap|desktop_root_signature|startup_stream|docs_links|startup_draw|startup_logical'
  • New tests: 4/4 pass, with no debug messages.
  • Neighbour filter: 184 selected, 182 passed, 0 failed, 2 capability skips (startup_logical_view_*).

Mutants (one line each, rebuilt, restored; startup_compute_dispatch_texture_warp)

mutant result
compute list uses the pixel-shader state again caught on WARP and hardware (Close fails)
return "manifest version"; → return nullptr; caught
any manifest version accepted caught
return "not a compute manifest"; → return nullptr; caught
any stage accepted caught
same-texture input/output refusal off caught (texture-store-self)
float/normalized output-format refusal off caught (texture-store-uint)

Thanks for pinning @ChazY11's two guards as well.

Still open (acknowledged in your note; not blocking for this slice)

  • A texture that is a bound render target isn't moved back to RENDER_TARGET after a translated Dispatch.
  • An undescribed SRV on a typeless resource still gets a null description.
  • The description still names d0b9e774 and doesn't mention the compute-list transition; worth refreshing.

Merge readiness

  • This merges cleanly against main and lands after #2470, in the order @R0Y00 set there.
  • No title start-up progress is claimed: the 55 of 61 figure is an offline count over manifest text.
  • Translated Dispatch isn't opt-in in render mode, so the final candidate needs an executable run before merge.
  • The x2w_d3d12_compute_census export is an interface addition for the maintainer to accept.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6065278112 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#pullrequestreview-6065278112). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T21:33:41Z. **Review:** COMMENTED --- Re-review of `76ce41bc` (stacked on #2470 `1f5fb5e4`). The P1 is fixed and the guards I listed are pinned. ### P1: texture input on a COMPUTE list (resolved) - On a COMPUTE list a sampled texture is now transitioned to `NON_PIXEL_SHADER_RESOURCE` only (`d3d12_compute_dispatch.inl:292`). `dispatch-sampled-compute` records the sampling fixture on a compute list and queue, and gives all 320 words with no debug-layer error on WARP and the RX 9070 XT. - With the fix reverted, that mode fails on both adapters: `ResourceBarrier: D3D12_RESOURCE_STATES has invalid flags (0x80) for compute command list` (id 537), then `list Close failed 0x80070057`, consumer exit 75. So the fixture guards the fix. - `DEPTH_READ` can't arise on that path: a compute list never tracks it, and `sampled_state` is no longer called there. ### Runs (Windows 11 build 26300; RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818; debug layer enabled) ```powershell ctest --preset dev --no-tests=error -j1 -R '^startup_compute_dispatch_(texture_)?(warp|hardware)$' -V ctest --preset dev --no-tests=error -j1 -R 'startup_list_dispatch|startup_compute|startup_root_constant|startup_gfx2hlsl_compute|startup_indirect|era_heap|desktop_root_signature|startup_stream|docs_links|startup_draw|startup_logical' ``` - **New tests:** 4/4 pass, with no debug messages. - **Neighbour filter:** 184 selected, 182 passed, 0 failed, 2 capability skips (`startup_logical_view_*`). ### Mutants (one line each, rebuilt, restored; `startup_compute_dispatch_texture_warp`) | mutant | result | |---|---| | compute list uses the pixel-shader state again | caught on WARP and hardware (Close fails) | | `return "manifest version";` → `return nullptr;` | caught | | any manifest version accepted | caught | | `return "not a compute manifest";` → `return nullptr;` | caught | | any stage accepted | caught | | same-texture input/output refusal off | caught (`texture-store-self`) | | float/normalized output-format refusal off | caught (`texture-store-uint`) | Thanks for pinning @ChazY11's two guards as well. ### Still open (acknowledged in your note; not blocking for this slice) - A texture that is a bound render target isn't moved back to `RENDER_TARGET` after a translated Dispatch. - An undescribed SRV on a typeless resource still gets a null description. - The description still names `d0b9e774` and doesn't mention the compute-list transition; worth refreshing. ### Merge readiness - This merges cleanly against `main` and lands after #2470, in the order @R0Y00 set there. - No title start-up progress is claimed: the 55 of 61 figure is an offline count over manifest text. - Translated Dispatch isn't opt-in in render mode, so the final candidate needs an executable run before merge. - The `x2w_d3d12_compute_census` export is an interface addition for the maintainer to accept. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-25 22:02:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T21:21:34Z.


@MasterDomino I independently ran 76ce41bc in Windows Release. Both the direct raw-buffer CTests and the texture Dispatch CTests passed on WARP and RTX 4060 Laptop (4/4). The latter exercise the updated COMPUTE-list shader-resource transition. Please recheck your previous request at this head when you can. This remains stacked on #2470, whose earlier recorded-state slice must land first.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174969975 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7174969975). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T21:21:34Z. --- @MasterDomino I independently ran `76ce41bc` in Windows Release. Both the direct raw-buffer CTests and the texture Dispatch CTests passed on WARP and RTX 4060 Laptop (4/4). The latter exercise the updated COMPUTE-list shader-resource transition. Please recheck your previous request at this head when you can. This remains stacked on #2470, whose earlier recorded-state slice must land first.
NiiRoZz commented 2026-11-25 22:02:21 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T21:46:21Z.


Merged the current #2470 head (f5b03039) into this branch. Head 190e00a1.

Changed

  • From #2470: a repeated compute-root reset left over from a merge is removed (found by @MasterDomino). @RavenCurseBurg's process-termination fix was already in this branch and is unchanged.
  • Nothing in the texture path changed. The merge had no conflicts.

Measured (Windows 11 build 26300.10075, debug layer on, no error or corruption message)

cmake --build --preset dev --target startup_stream_consumer
ctest --preset dev --no-tests=error -j1 -R "^startup_compute_dispatch_" -V
  • 4/4 passed, no skips: startup_compute_dispatch_{warp,hardware} and startup_compute_dispatch_texture_{warp,hardware}.
  • WARP: Microsoft Basic Render Driver 10.0.26100.10068.
  • Hardware: NVIDIA GeForce RTX 5090, driver 32.0.16.2135.
  • startup_compute_dispatch_hardware was run 10 times in a row: 10/10 passed, so all 100 consumer processes exited 0.

Not rerun

  • The wider neighbour filter.
  • No executable run.

Still open (not in this slice)

  • A texture that is a bound render target is not moved back to RENDER_TARGET after a translated Dispatch.
  • An SRV on a typeless resource that has no view description still gets a null description.
  • The description still names d0b9e774 and does not mention the COMPUTE-list transition. It will be refreshed with the #2470 trim.
  • The x2w_d3d12_compute_census export is a new interface; accepting it is up to the maintainer.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175518473 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7175518473). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T21:46:21Z. --- Merged the current #2470 head (`f5b03039`) into this branch. Head `190e00a1`. **Changed** - From #2470: a repeated compute-root reset left over from a merge is removed (found by @MasterDomino). @RavenCurseBurg's process-termination fix was already in this branch and is unchanged. - Nothing in the texture path changed. The merge had no conflicts. **Measured** (Windows 11 build 26300.10075, debug layer on, no error or corruption message) ```powershell cmake --build --preset dev --target startup_stream_consumer ctest --preset dev --no-tests=error -j1 -R "^startup_compute_dispatch_" -V ``` - 4/4 passed, no skips: `startup_compute_dispatch_{warp,hardware}` and `startup_compute_dispatch_texture_{warp,hardware}`. - WARP: Microsoft Basic Render Driver 10.0.26100.10068. - Hardware: NVIDIA GeForce RTX 5090, driver 32.0.16.2135. - `startup_compute_dispatch_hardware` was run 10 times in a row: 10/10 passed, so all 100 consumer processes exited 0. **Not rerun** - The wider neighbour filter. - No executable run. **Still open (not in this slice)** - A texture that is a bound render target is not moved back to `RENDER_TARGET` after a translated Dispatch. - An SRV on a typeless resource that has no view description still gets a null description. - The description still names `d0b9e774` and does not mention the COMPUTE-list transition. It will be refreshed with the #2470 trim. - The `x2w_d3d12_compute_census` export is a new interface; accepting it is up to the maintainer.
NiiRoZz commented 2026-11-25 22:02:23 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T21:56:17Z.


On the two remaining notes:

  • SRV on a typeless resource without a view description. I tried a fix and a fixture for it, then dropped both. With a null description on a typeless resource, view creation itself is already invalid on desktop D3D12: in the fixture the device is removed at the caller's own view creation, before any Dispatch. The texture the translated Dispatch samples is created with the caller's own format, so a caller that passes a valid view never reaches this case. That makes it caller misuse rather than a form the stand-in should model, so there is no change here.
  • Bound render target not moved back to its target state after a translated Dispatch. Confirmed, but the translated draw path has the same gap, so I would rather fix both in one separate change than cover only compute here.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175730503 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7175730503). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T21:56:17Z. --- On the two remaining notes: - **SRV on a typeless resource without a view description.** I tried a fix and a fixture for it, then dropped both. With a null description on a typeless resource, view creation itself is already invalid on desktop D3D12: in the fixture the device is removed at the caller's own view creation, before any Dispatch. The texture the translated Dispatch samples is created with the caller's own format, so a caller that passes a valid view never reaches this case. That makes it caller misuse rather than a form the stand-in should model, so there is no change here. - **Bound render target not moved back to its target state after a translated Dispatch.** Confirmed, but the translated draw path has the same gap, so I would rather fix both in one separate change than cover only compute here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MasterDomino commented 2026-11-25 23:02:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T22:09:49Z.


Thanks, @NiiRoZz. Both answers work for me, so neither note blocks this PR:

  • Typeless resource without a view description: agreed. Desktop D3D12 needs a description to create a view of a typeless resource, so a caller that reaches this already made an invalid call before any Dispatch. There's nothing for the stand-in to model.
  • Bound render target left in SRV/UAV state: agreed that one change covering both the translated draw and Dispatch paths is better than a compute-only fix. Could you open an issue for it, so it's tracked once this lands?

Still waiting on: the order #1803 → #1974 → #1975 → trimmed #2470, an executable run on the final candidate, and @R0Y00 accepting the x2w_d3d12_compute_census export.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176015873 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7176015873). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T22:09:49Z. --- Thanks, @NiiRoZz. Both answers work for me, so neither note blocks this PR: - **Typeless resource without a view description:** agreed. Desktop D3D12 needs a description to create a view of a typeless resource, so a caller that reaches this already made an invalid call before any Dispatch. There's nothing for the stand-in to model. - **Bound render target left in SRV/UAV state:** agreed that one change covering both the translated draw and Dispatch paths is better than a compute-only fix. Could you open an issue for it, so it's tracked once this lands? Still waiting on: the order #1803 → #1974 → #1975 → trimmed #2470, an executable run on the final candidate, and @R0Y00 accepting the `x2w_d3d12_compute_census` export. AI-assisted.
tedin7 commented 2026-11-26 04:04:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:41:25Z.


@NiiRoZz @MasterDomino #2532 was squash-merged into main as de75613fb, and it was stacked on this branch: its history includes "Merge pr2470 (origin/main) into pr2490". Comparing this head with current main (git merge-tree --write-tree origin/main <head>, then git diff origin/main <tree> --stat), the texture-view Dispatch path is already on main. Of about 930 added lines, about 19 are not on main, and those are small form changes (for example the 32-byte texture/entry fields of Slot).

Is anything here still needed beyond what landed? If not, this PR could be closed as superseded by #2532. Any leftover tweak could go as a small follow-up against main. If you would rather keep this one open for that, just say so here.

Thanks for the work on this stack.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181938501 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7181938501). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T03:41:25Z. --- @NiiRoZz @MasterDomino #2532 was squash-merged into `main` as `de75613fb`, and it was stacked on this branch: its history includes "Merge pr2470 (origin/main) into pr2490". Comparing this head with current `main` (`git merge-tree --write-tree origin/main <head>`, then `git diff origin/main <tree> --stat`), the texture-view Dispatch path is already on `main`. Of about 930 added lines, about 19 are not on `main`, and those are small form changes (for example the 32-byte texture/entry fields of `Slot`). Is anything here still needed beyond what landed? If not, this PR could be closed as superseded by #2532. Any leftover tweak could go as a small follow-up against `main`. If you would rather keep this one open for that, just say so here. Thanks for the work on this stack. AI-assisted; commands listed were executed locally.
MasterDomino commented 2026-11-26 04:04:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T03:44:10Z.


Thanks, @tedin7. Confirmed on main (8016c393): the texture-view Dispatch path, the COMPUTE-list transition fix, dispatch-sampled-compute and the census export came in with #2532. Closing this as superseded is fine with me once @NiiRoZz confirms the remaining small differences aren't needed. I've followed up on the open gates (slot 35 controls, the matched title run, the census export) in #2470: https://github.com/R0Y00/Xbox2Windows/pull/2470#issuecomment-7181977756

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181978062 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7181978062). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-26T03:44:10Z. --- Thanks, @tedin7. Confirmed on `main` (`8016c393`): the texture-view Dispatch path, the COMPUTE-list transition fix, `dispatch-sampled-compute` and the census export came in with #2532. Closing this as superseded is fine with me once @NiiRoZz confirms the remaining small differences aren't needed. I've followed up on the open gates (slot 35 controls, the matched title run, the census export) in #2470: https://github.com/R0Y00/Xbox2Windows/pull/2470#issuecomment-7181977756 AI-assisted.
tedin7 commented 2026-11-27 09:36:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-27T09:36:27Z.


This PR now conflicts with main. Conflicting files:

  • CMakeLists.txt
  • docs/experiments.md
  • src/startup_stubs/d3d12_compute_dispatch.inl
  • src/startup_stubs/d3d12_xs_device.cpp
  • tests/startup_compute_dispatch_check.py
  • tests/startup_compute_dispatch_texture_check.py
  • tests/startup_stream_consumer.cpp

Could you merge main into your branch (a merge commit, no force push needed) and resolve these? Thank you.

AI-assisted; commands listed were executed locally. (git merge-tree origin/main <head>)

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7214879820 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7214879820). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-27T09:36:27Z. --- This PR now conflicts with `main`. Conflicting files: - `CMakeLists.txt` - `docs/experiments.md` - `src/startup_stubs/d3d12_compute_dispatch.inl` - `src/startup_stubs/d3d12_xs_device.cpp` - `tests/startup_compute_dispatch_check.py` - `tests/startup_compute_dispatch_texture_check.py` - `tests/startup_stream_consumer.cpp` Could you merge `main` into your branch (a merge commit, no force push needed) and resolve these? Thank you. AI-assisted; commands listed were executed locally. (`git merge-tree origin/main <head>`)
JohnConnorNPC commented 2026-11-28 07:35:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-28T07:35:03Z.


I suggest closing this as superseded by #2532. I rechecked this head (d3fe0303) against main at c3204a9c:

  • The texture-view Dispatch path is already on main through #2532: git merge-base --is-ancestor de75613f origin/main → true.
  • Both tests and their CTest rows are on main too. All 8 non-blank lines this PR adds to CMakeLists.txt appear verbatim there (grep -vxcF -f <main CMakeLists.txt> over the added lines → 0), so merging would add no new check.
  • The branch is 512 commits behind and conflicts in 8 files: git merge-tree --write-tree --name-only origin/main d3fe0303 | grep -c ^CONFLICT → 8.
  • Three identifiers here are not on main, and main has a replacement for each: dispatch_translated → record_translated_dispatch, retry_manifest_at → x2w_startup::ManifestRetry, and float_output_format → the "an output texture format is not a float or normalized one" refusal.
  • There are no unresolved review threads (GraphQL reviewThreads → 0 unresolved).

If something from this branch is still missing on main, please open a small PR against current main with just that change. Thanks for the work here.

This comment was AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7236033058 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2490#issuecomment-7236033058). Originally posted by [JohnConnorNPC](https://github.com/JohnConnorNPC) on 2026-11-28T07:35:03Z. --- I suggest closing this as superseded by #2532. I rechecked this head (`d3fe0303`) against `main` at `c3204a9c`: - The texture-view Dispatch path is already on `main` through #2532: `git merge-base --is-ancestor de75613f origin/main` → true. - Both tests and their CTest rows are on `main` too. All 8 non-blank lines this PR adds to `CMakeLists.txt` appear verbatim there (`grep -vxcF -f <main CMakeLists.txt>` over the added lines → `0`), so merging would add no new check. - The branch is 512 commits behind and conflicts in 8 files: `git merge-tree --write-tree --name-only origin/main d3fe0303 | grep -c ^CONFLICT` → `8`. - Three identifiers here are not on `main`, and `main` has a replacement for each: `dispatch_translated` → `record_translated_dispatch`, `retry_manifest_at` → `x2w_startup::ManifestRetry`, and `float_output_format` → the "an output texture format is not a float or normalized one" refusal. - There are no unresolved review threads (GraphQL `reviewThreads` → 0 unresolved). If something from this branch is still missing on `main`, please open a small PR against current `main` with just that change. Thanks for the work here. This comment was AI-assisted.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2490:upstream-pr/2490'
git switch 'upstream-pr/2490'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2490'
git switch 'upstream-pr/2490'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2490'
git switch 'upstream-pr/2490'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2490'
git switch 'main'
git merge --squash 'upstream-pr/2490'
git switch 'main'
git merge --ff-only 'upstream-pr/2490'
git switch 'main'
git merge 'upstream-pr/2490'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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!2482
No description provided.