direct compute: untranslated compute shaders of a start-up run ranked by dispatches, with first refusals on main #3224

Open
opened 2026-11-27 23:31:25 +00:00 by Leyukaka · 66 comments
Leyukaka commented 2026-11-27 23:31:25 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T23:31:25Z.


Part of #2935. A ranking of the compute shaders that had no translation in a start-up run, by how often the title dispatched them, with each one's first refusal on current main. The goal is to pick the next direct-compute work by impact. Contributions welcome: please claim a family in a comment so we do not overlap.

Run. One local start-up run of the title on the Series S profile, about 10 minutes, built from main c45bf9ab plus a local diagnostic patch (miss logging and an optional solid fill for untranslated draws; translator and compute dispatch path unchanged). It got past the loading artwork into the first 3D scene. That scene renders white: 72 graphics pipelines were translated and 490 were missing. Counts and instruction shape only below. No shader keys or title data.

Method. The dispatch counts come from the runtime's own compute census key ...: N dispatches, 0 translated, first refusal: no translation lines (last value per key). 882 compute shaders were dispatched with no translation, 13,403,432 dispatches in total. I copied their requests from that run's shader cache and ran compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests from main 14d56502 on them. The wave size is bit 20 of .sa dword 4 (#2999).

By first refusal on main 14d56502:

First refusal on main Shaders wave32 Dispatches Share
direct resource-heap load requires the selected GPU slot and its view type 322 316 4,299,928 32.1%
direct descriptor address outside bound table 82 48 3,016,736 22.5%
unbound numeric SGPR sN 156 24 2,545,711 19.0%
compiles on main 110 36 1,601,006 11.9%
unimplemented direct SDWA operand profile 4 0 524,763 3.9%
numeric SCC from a symbolic descriptor field 3 1 323,795 2.4%
direct DXIL lowering for s_or_saveexec_b32 55 55 265,486 2.0%
direct image opcode or descriptor modifiers 54 29 233,735 1.7%
26 other first refusals 96 592,272 4.4%

So 110 of them (11.9% of the dispatches) already compile on current main. Three families account for 73.6%.

Top 20 shaders:

Rank Dispatches Share Wave First refusal on main 14d56502
1 934,961 7.0% wave32 direct resource-heap load requires the selected GPU slot and its view type
2 592,591 4.4% wave64 unbound numeric SGPR s11
3 478,592 3.6% wave64 unimplemented direct SDWA operand profile
4 388,856 2.9% wave64 compiles on main
5 329,032 2.5% wave64 unbound numeric SGPR s29
6 329,032 2.5% wave64 unbound numeric SGPR s29
7 329,032 2.5% wave64 compiles on main
8 302,306 2.3% wave64 numeric SCC from a symbolic descriptor field
9 252,852 1.9% wave32 unbound numeric SGPR s10
10 231,683 1.7% wave64 direct descriptor address outside bound table
11 225,647 1.7% wave64 direct descriptor address outside bound table
12 183,789 1.4% wave32 direct descriptor address outside bound table
13 176,407 1.3% wave32 direct resource-heap load requires the selected GPU slot and its view type
14 161,202 1.2% wave64 compiles on main
15 160,185 1.2% wave32 direct resource-heap load requires the selected GPU slot and its view type
16 159,402 1.2% wave32 direct resource-heap load requires the selected GPU slot and its view type
17 151,433 1.1% wave64 direct descriptor address outside bound table
18 149,560 1.1% wave64 unbound numeric SGPR s29
19 147,258 1.1% wave32 direct descriptor address outside bound table
20 126,171 0.9% wave32 direct descriptor address outside bound table

The top 10 account for 31.1% of the dispatches and the top 20 for 43.3%.

Dispatches the runtime refused at binding time. These are compute shaders that do have a translation. The census gives these first refusals:

Runtime refusal (compute census) Shaders Dispatches
an output is not an aliased placed buffer range with unordered access 25 1,861,476
an input is in a placed buffer that does not alias title memory 53 920,176
an input buffer view token's resource does not hold its range 3 476,733
an input view token is not a buffer view of a desktop resource 6 346,160
5 other runtime refusals 11 61,219

Related work I found:

  • Resource-heap loads: #1143 (the gfx2hlsl-side issue) and open PR #3063 (targets cpp-migration).
  • Descriptor address outside bound table: open PR #3221.
  • First-refusal ranking by blocked dispatches: open PR #3198 (a tool).
  • Rank 3 (SDWA): with #3220 (measured on its branch over main e582a9a4), this shader gets past the SDWA refusal and stops later at "unsupported packed binary16 arithmetic source".

I have not checked whether #3063 or #3221 clear any of these. They are third-party branches, and I did not build them.

AI-assisted.

Main integration update. #3783 adds native C++ lowering for six global sub-dword _d16 and _d16_hi load encodings. The source-built GPU replay covers signed and unsigned loads, destination-half preservation and cross-DWORD reads. The dispatch counts in the original census have yet to be remeasured against current main.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6656102605 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-27T23:31:25Z. --- Part of #2935. A ranking of the compute shaders that had no translation in a start-up run, by how often the title dispatched them, with each one's first refusal on current `main`. The goal is to pick the next direct-compute work by impact. Contributions welcome: please claim a family in a comment so we do not overlap. **Run.** One local start-up run of the title on the Series S profile, about 10 minutes, built from `main` `c45bf9ab` plus a local diagnostic patch (miss logging and an optional solid fill for untranslated draws; translator and compute dispatch path unchanged). It got past the loading artwork into the first 3D scene. That scene renders white: 72 graphics pipelines were translated and 490 were missing. Counts and instruction shape only below. No shader keys or title data. **Method.** The dispatch counts come from the runtime's own `compute census key ...: N dispatches, 0 translated, first refusal: no translation` lines (last value per key). 882 compute shaders were dispatched with no translation, 13,403,432 dispatches in total. I copied their requests from that run's shader cache and ran `compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests` from `main` `14d56502` on them. The wave size is bit 20 of `.sa` dword 4 (#2999). **By first refusal on `main` `14d56502`:** | First refusal on `main` | Shaders | wave32 | Dispatches | Share | |---|---:|---:|---:|---:| | direct resource-heap load requires the selected GPU slot and its view type | 322 | 316 | 4,299,928 | 32.1% | | direct descriptor address outside bound table | 82 | 48 | 3,016,736 | 22.5% | | unbound numeric SGPR sN | 156 | 24 | 2,545,711 | 19.0% | | compiles on `main` | 110 | 36 | 1,601,006 | 11.9% | | unimplemented direct SDWA operand profile | 4 | 0 | 524,763 | 3.9% | | numeric SCC from a symbolic descriptor field | 3 | 1 | 323,795 | 2.4% | | direct DXIL lowering for s_or_saveexec_b32 | 55 | 55 | 265,486 | 2.0% | | direct image opcode or descriptor modifiers | 54 | 29 | 233,735 | 1.7% | | 26 other first refusals | 96 | | 592,272 | 4.4% | So 110 of them (11.9% of the dispatches) already compile on current `main`. Three families account for 73.6%. **Top 20 shaders:** | Rank | Dispatches | Share | Wave | First refusal on `main` `14d56502` | |---:|---:|---:|---|---| | 1 | 934,961 | 7.0% | wave32 | direct resource-heap load requires the selected GPU slot and its view type | | 2 | 592,591 | 4.4% | wave64 | unbound numeric SGPR s11 | | 3 | 478,592 | 3.6% | wave64 | unimplemented direct SDWA operand profile | | 4 | 388,856 | 2.9% | wave64 | compiles on `main` | | 5 | 329,032 | 2.5% | wave64 | unbound numeric SGPR s29 | | 6 | 329,032 | 2.5% | wave64 | unbound numeric SGPR s29 | | 7 | 329,032 | 2.5% | wave64 | compiles on `main` | | 8 | 302,306 | 2.3% | wave64 | numeric SCC from a symbolic descriptor field | | 9 | 252,852 | 1.9% | wave32 | unbound numeric SGPR s10 | | 10 | 231,683 | 1.7% | wave64 | direct descriptor address outside bound table | | 11 | 225,647 | 1.7% | wave64 | direct descriptor address outside bound table | | 12 | 183,789 | 1.4% | wave32 | direct descriptor address outside bound table | | 13 | 176,407 | 1.3% | wave32 | direct resource-heap load requires the selected GPU slot and its view type | | 14 | 161,202 | 1.2% | wave64 | compiles on `main` | | 15 | 160,185 | 1.2% | wave32 | direct resource-heap load requires the selected GPU slot and its view type | | 16 | 159,402 | 1.2% | wave32 | direct resource-heap load requires the selected GPU slot and its view type | | 17 | 151,433 | 1.1% | wave64 | direct descriptor address outside bound table | | 18 | 149,560 | 1.1% | wave64 | unbound numeric SGPR s29 | | 19 | 147,258 | 1.1% | wave32 | direct descriptor address outside bound table | | 20 | 126,171 | 0.9% | wave32 | direct descriptor address outside bound table | The top 10 account for 31.1% of the dispatches and the top 20 for 43.3%. **Dispatches the runtime refused at binding time.** These are compute shaders that do have a translation. The census gives these first refusals: | Runtime refusal (compute census) | Shaders | Dispatches | |---|---:|---:| | an output is not an aliased placed buffer range with unordered access | 25 | 1,861,476 | | an input is in a placed buffer that does not alias title memory | 53 | 920,176 | | an input buffer view token's resource does not hold its range | 3 | 476,733 | | an input view token is not a buffer view of a desktop resource | 6 | 346,160 | | 5 other runtime refusals | 11 | 61,219 | **Related work I found:** - Resource-heap loads: #1143 (the gfx2hlsl-side issue) and open PR #3063 (targets `cpp-migration`). - Descriptor address outside bound table: open PR #3221. - First-refusal ranking by blocked dispatches: open PR #3198 (a tool). - Rank 3 (SDWA): with #3220 (measured on its branch over `main` `e582a9a4`), this shader gets past the SDWA refusal and stops later at "unsupported packed binary16 arithmetic source". I have not checked whether #3063 or #3221 clear any of these. They are third-party branches, and I did not build them. AI-assisted. **Main integration update.** #3783 adds native C++ lowering for six global sub-dword `_d16` and `_d16_hi` load encodings. The source-built GPU replay covers signed and unsigned loads, destination-half preservation and cross-DWORD reads. The dispatch counts in the original census have yet to be remeasured against current `main`.
RonLogic commented 2026-11-27 23:47:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T23:47:30Z.


I’ll investigate the numeric SCC from a symbolic descriptor field family on main. I’ll start with an original fixture that observes SCC after extracting a buffer stride and after s_max_u32. The goal is to recover the status from validated descriptor metadata while keeping descriptor provenance symbolic and preserving refusals for fields the runtime cannot supply. If you can share the opcode and masked field for the rank-8 refusal, just the instruction shape would help target the first slice.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230411406 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230411406). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-27T23:47:30Z. --- I’ll investigate the `numeric SCC from a symbolic descriptor field` family on `main`. I’ll start with an original fixture that observes SCC after extracting a buffer stride and after `s_max_u32`. The goal is to recover the status from validated descriptor metadata while keeping descriptor provenance symbolic and preserving refusals for fields the runtime cannot supply. If you can share the opcode and masked field for the rank-8 refusal, just the instruction shape would help target the first slice.
Not-Saii commented 2026-11-27 23:51:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-27T23:51:00Z.


I'll take the largest runtime refusal in the second table: an output is not an aliased placed buffer range with unordered access (25 shaders, 1,861,476 dispatches). These shaders already have a translation, so this is runtime work in src/startup_stubs/d3d12_compute_dispatch.inl (the output branch of the binding loop) and doesn't overlap the translator families claimed above.

That one message covers five different conditions. The code comment there already names two of them as a known shortcut: view tokens and copied placements.

  1. The output words are a view token.
  2. No placed buffer aliases the address (a copied placement or no placement).
  3. The resource's initial state is not COMMON.
  4. The offset is not 16-byte aligned.
  5. The resource has no ALLOW_UNORDERED_ACCESS flag.

Plan.

  1. Split the message into one reason per condition, with no change in what is accepted, and add a source-built fixture that triggers each reason.
  2. Measure which reasons these 25 shaders hit in a local start-up run (counts only).
  3. Lower the dominant case in its own PR with a GPU readback test and a negative control. Cases that stay refused keep their own named reasons.

@Leyukaka, if your census already logs the descriptor words or the placement kind for these outputs, a breakdown by condition would let me skip step 2.

Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230454538 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230454538). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-27T23:51:00Z. --- I'll take the largest runtime refusal in the second table: `an output is not an aliased placed buffer range with unordered access` (25 shaders, 1,861,476 dispatches). These shaders already have a translation, so this is runtime work in `src/startup_stubs/d3d12_compute_dispatch.inl` (the output branch of the binding loop) and doesn't overlap the translator families claimed above. That one message covers five different conditions. The code comment there already names two of them as a known shortcut: view tokens and copied placements. 1. The output words are a view token. 2. No placed buffer aliases the address (a copied placement or no placement). 3. The resource's initial state is not COMMON. 4. The offset is not 16-byte aligned. 5. The resource has no ALLOW_UNORDERED_ACCESS flag. **Plan.** 1. Split the message into one reason per condition, with no change in what is accepted, and add a source-built fixture that triggers each reason. 2. Measure which reasons these 25 shaders hit in a local start-up run (counts only). 3. Lower the dominant case in its own PR with a GPU readback test and a negative control. Cases that stay refused keep their own named reasons. @Leyukaka, if your census already logs the descriptor words or the placement kind for these outputs, a breakdown by condition would let me skip step 2. Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP. AI-assisted.
R0Y00 commented 2026-11-27 23:52:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T23:52:38Z.


Two existing paths to reuse before opening another implementation PR:

  • The leading resource-heap refusal is tracked for the in-process runtime in #3023. #3063 covers the offline mixed raw/typed case and has independent RTX replay evidence. It still needs the #3034/#3042 prerequisites on main before retargeting. Keep #1143 for its separate Python-side contract.
  • @Not-Saii, the diagnostic split complements #2961, which already handles slot-19 output view tokens and adds an 8-byte element case. Please use that PR for the token implementation and let the measured split identify whether copied placement, state, alignment or flags need another change. RonLogic's symbolic-descriptor SCC claim stays separate.

For direct descriptor address outside bound table, #3221's fixture covers a single enabled heap whose SGPR count matches exactly. Grouping that bucket by root flags and remaining user SGPRs would tell us which requests it can address. The counts here were measured with the 14d56502 compiler, so please include the compiler commit in reruns.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230475151 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230475151). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T23:52:38Z. --- Two existing paths to reuse before opening another implementation PR: - The leading resource-heap refusal is tracked for the in-process runtime in #3023. #3063 covers the offline mixed raw/typed case and has independent RTX replay evidence. It still needs the #3034/#3042 prerequisites on `main` before retargeting. Keep #1143 for its separate Python-side contract. - @Not-Saii, the diagnostic split complements #2961, which already handles slot-19 output view tokens and adds an 8-byte element case. Please use that PR for the token implementation and let the measured split identify whether copied placement, state, alignment or flags need another change. RonLogic's symbolic-descriptor SCC claim stays separate. For `direct descriptor address outside bound table`, #3221's fixture covers a single enabled heap whose SGPR count matches exactly. Grouping that bucket by root flags and remaining user SGPRs would tell us which requests it can address. The counts here were measured with the `14d56502` compiler, so please include the compiler commit in reruns.
Not-Saii commented 2026-11-27 23:54:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-27T23:54:31Z.


I'll also take the unbound numeric SGPR sN family (156 shaders, 2,545,711 dispatches, 132 of them wave64). The refusal comes from require_numeric in src/gfx1013_compute_native.cpp: the program reads a scalar register that holds no known numeric value at that point.

Plan.

  1. A counts-only census at current main (c7215add, compiler commit stated with every number). It looks at these requests in a local start-up capture and groups them by refused register, by the instruction that reads it, by how that register was last written, by the entry layout (user SGPR count, the TGID/TG_SIZE enables from the request's RSRC2 word) and by wave size. I'll post the grouping here with instruction shapes only.
  2. Fix the dominant cause in its own PR with a source-built fixture, a GPU readback and a negative control. One example would be an entry register that the direct path doesn't bind. The other causes keep their refusal.

The family is mostly wave64, so I'll check how it interacts with #2999 / #3006 (wave size from .sa) and coordinate rather than overlap. @Leyukaka, if you already know where the s11 and s29 reads come from, a pointer would help.

Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230498602 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230498602). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-27T23:54:31Z. --- I'll also take the `unbound numeric SGPR sN` family (156 shaders, 2,545,711 dispatches, 132 of them wave64). The refusal comes from `require_numeric` in `src/gfx1013_compute_native.cpp`: the program reads a scalar register that holds no known numeric value at that point. **Plan.** 1. A counts-only census at current `main` (`c7215add`, compiler commit stated with every number). It looks at these requests in a local start-up capture and groups them by refused register, by the instruction that reads it, by how that register was last written, by the entry layout (user SGPR count, the TGID/TG_SIZE enables from the request's RSRC2 word) and by wave size. I'll post the grouping here with instruction shapes only. 2. Fix the dominant cause in its own PR with a source-built fixture, a GPU readback and a negative control. One example would be an entry register that the direct path doesn't bind. The other causes keep their refusal. The family is mostly wave64, so I'll check how it interacts with #2999 / #3006 (wave size from `.sa`) and coordinate rather than overlap. @Leyukaka, if you already know where the s11 and s29 reads come from, a pointer would help. Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP. AI-assisted.
legacy-code-archaeologist commented 2026-11-27 23:57:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T23:57:06Z.


I'll take the "unsupported packed binary16 arithmetic source" follow-on refusal (noted under Rank 3 after #3220) to accept inline binary16 float (240..248) and integer (128..208) constants in v_pk_add_f16, v_pk_mul_f16, v_pk_fma_f16, and v_pk_min_f16/v_pk_max_f16 on main.

Plan:

  1. Share a packed_f16_inline_constant() helper between DirectCompute::packed_f16_alu() and DirectCompute::packed_minmax() in src/gfx1013_direct_compute.inl (preserving gfx1013's [31:16] = 0 encoding for 240..248 and 32-bit sign-extended encoding for 128..208).
  2. Add a source-built fixture (ir, controls, compute, pixel on WARP and hardware) covering all 9 inline f16 constants, op_sel_hi high-half zeroing, neg_lo/neg_hi, single-rounding FMA tie witnesses with inline 0.5, inline integer constants, and kept refusals (vcc, m0, exec, scc, 240..248 on integer min/max, clamp).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230530289 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230530289). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T23:57:06Z. --- I'll take the `"unsupported packed binary16 arithmetic source"` follow-on refusal (noted under Rank 3 after #3220) to accept inline binary16 float (`240..248`) and integer (`128..208`) constants in `v_pk_add_f16`, `v_pk_mul_f16`, `v_pk_fma_f16`, and `v_pk_min_f16`/`v_pk_max_f16` on `main`. Plan: 1. Share a `packed_f16_inline_constant()` helper between `DirectCompute::packed_f16_alu()` and `DirectCompute::packed_minmax()` in `src/gfx1013_direct_compute.inl` (preserving gfx1013's `[31:16] = 0` encoding for `240..248` and 32-bit sign-extended encoding for `128..208`). 2. Add a source-built fixture (`ir`, `controls`, `compute`, `pixel` on WARP and hardware) covering all 9 inline f16 constants, `op_sel_hi` high-half zeroing, `neg_lo`/`neg_hi`, single-rounding FMA tie witnesses with inline `0.5`, inline integer constants, and kept refusals (`vcc`, `m0`, `exec`, `scc`, `240..248` on integer min/max, `clamp`). AI-assisted.
SimSalabimse commented 2026-11-28 00:04:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T00:04:21Z.


I'm claiming the "numeric SCC from a symbolic descriptor field" family (3 shaders, about 2.4% of the dispatches, almost all of it from the rank 8 shader).

The direct path raises that refusal after a byte-window descriptor rewrite, when it thinks a later instruction reads the SCC from that rewrite. The OOB selector already has a known SCC, s_mul_i32 doesn't write SCC, and the SOP1 false positives are already merged (#3189). The small follow-up I want to do: s_absdiff_i32, s_min_u32, s_min_i32 and s_max_i32 already write SCC in the direct lowering but are still treated as SCC readers. I'll classify them as writers, add a source-built compile case next to the existing ones, and keep the s_cselect case refused.

I won't invent a numeric SCC for a field that can be zero. If rank 8 really branches or cselects on that SCC, it'll still stop there and I'll say so. This stands on its own, separate from the open wave-size (#3006) and s_or_saveexec (#3193) work.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230624481 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230624481). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-28T00:04:21Z. --- I'm claiming the "numeric SCC from a symbolic descriptor field" family (3 shaders, about 2.4% of the dispatches, almost all of it from the rank 8 shader). The direct path raises that refusal after a byte-window descriptor rewrite, when it thinks a later instruction reads the SCC from that rewrite. The OOB selector already has a known SCC, s_mul_i32 doesn't write SCC, and the SOP1 false positives are already merged (#3189). The small follow-up I want to do: s_absdiff_i32, s_min_u32, s_min_i32 and s_max_i32 already write SCC in the direct lowering but are still treated as SCC readers. I'll classify them as writers, add a source-built compile case next to the existing ones, and keep the s_cselect case refused. I won't invent a numeric SCC for a field that can be zero. If rank 8 really branches or cselects on that SCC, it'll still stop there and I'll say so. This stands on its own, separate from the open wave-size (#3006) and s_or_saveexec (#3193) work. AI-Assisted
RonLogic commented 2026-11-28 00:04:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T00:04:50Z.


The first symbolic-descriptor SCC slice is in #3227, tested at e1b3f898 over main 7fcde81f. It covers live SCC from the 14-bit buffer SRV stride and from both operand orders of s_max_u32 with 1. The in-process and published paths both matched 12 groups for four descriptor strides on RTX 4070 and WARP 1.0.22, with the untouched output preserved. The clean base refuses this source-built fixture. Capture coverage for the rank-8 case still needs the instruction shape.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230630784 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230630784). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-28T00:04:50Z. --- The first symbolic-descriptor SCC slice is in #3227, tested at `e1b3f898` over `main` `7fcde81f`. It covers live SCC from the 14-bit buffer SRV stride and from both operand orders of `s_max_u32` with 1. The in-process and published paths both matched 12 groups for four descriptor strides on RTX 4070 and WARP 1.0.22, with the untouched output preserved. The clean base refuses this source-built fixture. Capture coverage for the rank-8 case still needs the instruction shape.
legacy-code-archaeologist commented 2026-11-28 00:05:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T00:05:10Z.


Filed #3226 and opened https://github.com/R0Y00/Xbox2Windows/pull/3230 targeting main to accept inline binary16 float (240..248, with [31:16] = 0 per gfx1013) and inline integer (128..208) constants in DirectCompute::packed_f16_alu() and DirectCompute::packed_minmax() (native_packed_f16_inline_ir, controls, pixel_warp, and pixel_hardware passed on Intel HD Graphics 530; compute_hardware skipped 77).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230635095 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230635095). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T00:05:10Z. --- Filed #3226 and opened https://github.com/R0Y00/Xbox2Windows/pull/3230 targeting `main` to accept inline binary16 float (`240..248`, with `[31:16] = 0` per gfx1013) and inline integer (`128..208`) constants in `DirectCompute::packed_f16_alu()` and `DirectCompute::packed_minmax()` (`native_packed_f16_inline_ir`, `controls`, `pixel_warp`, and `pixel_hardware` passed on Intel HD Graphics 530; `compute_hardware` skipped `77`). AI-assisted.
RonLogic commented 2026-11-28 00:10:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T00:10:02Z.


@SimSalabimse your SCC-liveness classification work complements #3227. My fixture reads SCC immediately after the descriptor operations, so it exercises a genuinely live flag. Your subsequent scalar writers should avoid requesting stride metadata where the earlier flag is dead. I’ll keep #3227 scoped to the live flag cases.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230699532 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230699532). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-28T00:10:02Z. --- @SimSalabimse your SCC-liveness classification work complements #3227. My fixture reads SCC immediately after the descriptor operations, so it exercises a genuinely live flag. Your subsequent scalar writers should avoid requesting stride metadata where the earlier flag is dead. I’ll keep #3227 scoped to the live flag cases.
Leyukaka commented 2026-11-28 00:18:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T00:18:22Z.


@Not-Saii, on where the reads come from. Measured with the 14d56502 compiler on the 882 requests of this issue:

  • In the largest cases, the unbound register is the high half of a pair that a VOP3 compare wrote in a wave64 program: v_cmp_gt_u32_e64 s10, s22, v3 then s_and_b64 exec, vcc, s[10:11], refused as "unbound numeric SGPR s11".
  • main compiles every slot 67 request with the wave32 model, where that compare writes only s10. #3006 reads the wave size from .sa (head 7e018ffe).
  • With #3006, 100 of the 156 programs leave this refusal (1,930,892 of 2,545,711 dispatches) and 27 compile. The details are in my latest comment on #3006.
  • The 56 programs that still stop at "unbound numeric SGPR" with #3006 (32 of them wave64) are outside that and fit your census.

On the output refusal, the census line carries the four descriptor words of the first refused call of each shader, which is enough to split the 25:

  • 23 shaders (1,840,666 dispatches) have the view-token marker in word 0, which is your condition 1 and the #2961 path.
  • 2 shaders (20,810) have all four words zero, so the byte count is zero and no placed buffer is looked up. That is your condition 2.
  • None of them gets as far as the state, alignment or flag checks.

Two notes from the #3006 side:

  • op_sel on VOP3 v_fma_f16 is #3233 / #3234. With #3006, two programs compile, 658,064 dispatches. One wave32 program (4,282) already reaches that refusal on main.
  • With #3006, 55 programs (1,150,184 dispatches) stop at "multi-wave64 exchange requires converged group control flow". I tried replacing main's whole-program gate with a per-branch check up to the post-dominator, and only one of the 55 then compiles. The other 54 still fail that per-branch check, which refuses a synchronizing operation (VOPC, LDS, carry-out, lane read or barrier) inside a divergent region, or a path that cannot reach the end. So the gate is not what blocks them. I am not claiming that family.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230809173 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230809173). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T00:18:22Z. --- @Not-Saii, on where the reads come from. Measured with the `14d56502` compiler on the 882 requests of this issue: - In the largest cases, the unbound register is the high half of a pair that a VOP3 compare wrote in a wave64 program: `v_cmp_gt_u32_e64 s10, s22, v3` then `s_and_b64 exec, vcc, s[10:11]`, refused as "unbound numeric SGPR s11". - `main` compiles every slot 67 request with the wave32 model, where that compare writes only `s10`. #3006 reads the wave size from `.sa` (head `7e018ffe`). - With #3006, 100 of the 156 programs leave this refusal (1,930,892 of 2,545,711 dispatches) and 27 compile. The details are in my latest comment on #3006. - The 56 programs that still stop at "unbound numeric SGPR" with #3006 (32 of them wave64) are outside that and fit your census. On the output refusal, the census line carries the four descriptor words of the first refused call of each shader, which is enough to split the 25: - 23 shaders (1,840,666 dispatches) have the view-token marker in word 0, which is your condition 1 and the #2961 path. - 2 shaders (20,810) have all four words zero, so the byte count is zero and no placed buffer is looked up. That is your condition 2. - None of them gets as far as the state, alignment or flag checks. Two notes from the #3006 side: - `op_sel` on VOP3 `v_fma_f16` is #3233 / #3234. With #3006, two programs compile, 658,064 dispatches. One wave32 program (4,282) already reaches that refusal on `main`. - With #3006, 55 programs (1,150,184 dispatches) stop at "multi-wave64 exchange requires converged group control flow". I tried replacing `main`'s whole-program gate with a per-branch check up to the post-dominator, and only one of the 55 then compiles. The other 54 still fail that per-branch check, which refuses a synchronizing operation (VOPC, LDS, carry-out, lane read or barrier) inside a divergent region, or a path that cannot reach the end. So the gate is not what blocks them. I am not claiming that family. AI-assisted.
Not-Saii commented 2026-11-28 00:19:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T00:19:26Z.


First-refusal counts for an output is not an aliased placed buffer range with unordered access, measured with the split in #3229 in one local 300 s start-up run. Build 79edac55; the translator is at ad306425, and its gfx2hlsl.py is unchanged since 2e12dd8e. Counts only.

The census keeps one reason per key, the first one that key was refused with, and counts all of its untranslated dispatches under it. These are first-refusal buckets, not counts per condition: a later dispatch of the same key can fail on another condition.

First refusal of the key Keys Untranslated dispatches of those keys
an output buffer descriptor is a view token 23 141,224
an output buffer descriptor has zero records 2 2,015
size, crossing, unplaced, copied placement, initial state, alignment, unordered-access flag 0 (no key had one of these first refusals) 0
  • In the first refused dispatch of each of the 23 keys, the token named a view created through device slot 19, the form #2961 binds.
  • In that of each of the two zero-record keys, the descriptor was all zero.
  • No key had a copied placement, the initial state, alignment or the unordered-access flag as its first refusal, so I won't open a second implementation PR for those. #3229 stays as the diagnostic.
  • In a run of the parent build with the same settings, the same 25 keys had the old reason as their first refusal: 505,473 of 5,490,863 compute dispatches. This run made 1,490,517 compute dispatches in all, so the share in these buckets is about the same (9.2% and 9.6%).

The compiler commit differs from the issue's 14d56502 counts.

Edited after review on #3229: the table is labelled as first-refusal buckets, and the zero row is qualified.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230822418 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230822418). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T00:19:26Z. --- First-refusal counts for `an output is not an aliased placed buffer range with unordered access`, measured with the split in #3229 in one local 300 s start-up run. Build `79edac55`; the translator is at `ad306425`, and its `gfx2hlsl.py` is unchanged since `2e12dd8e`. Counts only. The census keeps one reason per key, the first one that key was refused with, and counts all of its untranslated dispatches under it. These are first-refusal buckets, not counts per condition: a later dispatch of the same key can fail on another condition. | First refusal of the key | Keys | Untranslated dispatches of those keys | |---|---|---| | `an output buffer descriptor is a view token` | 23 | 141,224 | | `an output buffer descriptor has zero records` | 2 | 2,015 | | size, crossing, unplaced, copied placement, initial state, alignment, unordered-access flag | 0 (no key had one of these first refusals) | 0 | - In the first refused dispatch of each of the 23 keys, the token named a view created through device slot 19, the form #2961 binds. - In that of each of the two zero-record keys, the descriptor was all zero. - No key had a copied placement, the initial state, alignment or the unordered-access flag as its first refusal, so I won't open a second implementation PR for those. #3229 stays as the diagnostic. - In a run of the parent build with the same settings, the same 25 keys had the old reason as their first refusal: 505,473 of 5,490,863 compute dispatches. This run made 1,490,517 compute dispatches in all, so the share in these buckets is about the same (9.2% and 9.6%). The compiler commit differs from the issue's `14d56502` counts. _Edited after review on #3229: the table is labelled as first-refusal buckets, and the zero row is qualified._ AI-assisted.
Not-Saii commented 2026-11-28 00:28:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T00:28:25Z.


Follow-up to the counts above: the same 300 s start-up run with #2961 merged locally into #3229. The merge keeps #2961's token branch and drops reason 1 of the split, as #3229 describes. Build 51aef000 (local, not pushed); the translator is the same as before. Counts only, as first-refusal buckets like the table above.

What happened to the 23 keys whose first refusal was an output buffer descriptor is a view token without #2961:

With #2961 Keys Dispatches
every dispatch translated, no refusal 12 32,043
first refusal: an entry value reads the descriptor of an output named by a view token 10 9,372 untranslated
first refusal: an output buffer view range is empty, unaligned or outside its resource 1 190,397 untranslated
  • #2961 binds 12 of the 23 keys, and no device was removed in the run. Whether those keys write the right values was not checked.
  • The 10 keys in the entry-value bucket read a stride, record count or word 3 from the output descriptor, and a token has none of these. The view's own description could supply them.
  • The single key in the range bucket made the most dispatches of all 23. That #2961 reason covers three conditions, so this run doesn't show which one fails.
  • The two zero-record keys keep that first refusal (3,286 dispatches).

This run made 2,453,727 compute dispatches in all (1,490,517 without #2961), so dispatch counts are only comparable within one run.

Edited after review on #3229: rows are labelled as first-refusal buckets.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230939215 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7230939215). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T00:28:25Z. --- Follow-up to the counts above: the same 300 s start-up run with #2961 merged locally into #3229. The merge keeps #2961's token branch and drops reason 1 of the split, as #3229 describes. Build `51aef000` (local, not pushed); the translator is the same as before. Counts only, as first-refusal buckets like the table above. What happened to the 23 keys whose first refusal was `an output buffer descriptor is a view token` without #2961: | With #2961 | Keys | Dispatches | |---|---|---| | every dispatch translated, no refusal | 12 | 32,043 | | first refusal: `an entry value reads the descriptor of an output named by a view token` | 10 | 9,372 untranslated | | first refusal: `an output buffer view range is empty, unaligned or outside its resource` | 1 | 190,397 untranslated | - #2961 binds 12 of the 23 keys, and no device was removed in the run. Whether those keys write the right values was not checked. - The 10 keys in the entry-value bucket read a stride, record count or word 3 from the output descriptor, and a token has none of these. The view's own description could supply them. - The single key in the range bucket made the most dispatches of all 23. That #2961 reason covers three conditions, so this run doesn't show which one fails. - The two zero-record keys keep that first refusal (3,286 dispatches). This run made 2,453,727 compute dispatches in all (1,490,517 without #2961), so dispatch counts are only comparable within one run. _Edited after review on #3229: rows are labelled as first-refusal buckets._ AI-assisted.
Not-Saii commented 2026-11-28 00:35:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T00:35:03Z.


Census results for unbound numeric SGPR sN. Thanks @Leyukaka, your numbers reproduce on my side.

Inputs.

  • One local start-up run: 300 s, runtime built from main 2e12dd8e.
  • 878 compute shaders were dispatched with no translation (5,490,804 dispatches). I copied their slot 67 requests out of that run's shader cache.
  • Compiler: main 7fcde81f, compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests.
  • A local diagnostic patch adds the analysis symbol held in the refused register to the message. Behind a second switch, it applies #3006's wave-size rule: bit 20 of .sa dword 4 clear and more than 32 threads means wave64. Both are off by default, and the patch is not for a PR.
  • Dispatch counts are the last compute census value per key, so they are smaller than the issue's.

On main: 156 shaders stop first at this refusal, 132 of them wave64. That is the issue's count. They account for 769,918 dispatches in this run.

  • In 115 of the 132 wave64 shaders, the refused register is the odd word of an SGPR pair. Before the read, a VOP3 compare (v_cmp_*_e64 sN-1, ...) writes only the even word, and the read is a 64-bit scalar ALU op on s[N-1:N]. Most are s_and_b64, s_nor_b64 or s_or_b64.
    • In 38 of them, the odd word still holds a symbol from an earlier s_load descriptor, so it is a stale descriptor field, not unbound.
    • The other 17 wave64 shaders read a 32-bit or even register. Mostly that is s_bfe_u32 on a descriptor word.
  • Neither the entry layout nor TGID/TG_SIZE plays a part in the wave64 cases: the system SGPRs are already bound.
  • With #3006's rule applied: 100 of the 156 leave this refusal and 27 of them compile. 56 still stop here (24 wave32, 32 wave64), with 214,183 dispatches. These are the same counts as yours.
  • Among the 73 that leave the refusal but don't compile, the most common next refusal is multi-wave64 exchange requires converged group control flow (33).

So the largest cause is #3006 itself. I'm not going to duplicate it, and I'm narrowing my claim to the 56 that remain.

The 56 that remain, by the reading instruction and the symbol in the register:

Wave Symbol in the register Reader Shaders Dispatches
wave32 unbound (leftover user SGPR) s_add_u32 8 144,783
wave32 resource-heap table s_add_u32 4 17,346
wave64 unbound s_and_b64 / s_orn2_b64 / s_add_u32 19 23,185
wave64 s_load descriptor word s_bfe_u32 / s_or_b64 / v_cmpx 13 11,519
wave32 unbound s_and_b32 / s_nand_b32 6 11,037
wave32 s_load descriptor word s_bfe_u32 4 3,161
wave32 unbound s_getpc_b64 2 3,152

The first two rows, 12 shaders and 162,129 dispatches, have one shape: a waterfall loop that loads a buffer descriptor at the resource-heap base plus a lane-selected byte offset.

v_readfirstlane_b32 sI, vX
v_cmpx_eq_i32_e32   sI, vX
s_add_u32           sLo, s10, sI     ; resource-heap base + byte offset
s_add_u32           sHi, 0, src_scc
s_load_dwordx4      s[D:D+3], s[sLo:sHi], 0x0
s_bfe_u32           ..., s(D+1), ...  ; stride
s_max_u32 / s_and_b32 / s_mul_i32 on the descriptor words
  • In the 8 shaders, the root layout is two tables and four constants, with only CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED set. That leaves one user SGPR, s10, and main binds a heap only when both heap flags are set and two SGPRs are left. #3221 binds that case.
  • In the 4 shaders, both flags are set and s10 is already bound as the resource heap. The add on the table pointer is refused because the register isn't numeric.
  • With #3221, the 8 should become the same case as the 4. I haven't measured that.

Plan, revised: a PR on main that lowers this address form: the heap base plus a register byte offset (s_add_u32 lo, then s_add_u32 hi, 0, scc) followed by s_load at offset 0. It becomes the same indexed heap descriptor the compiler already builds for an SMEM register offset.

  • The other 44 keep their refusals.
  • It needs #3221 for the 8 single-flag layouts. I'll measure the 4 two-flag layouts first, and build on #3221 or wait for it rather than copy it.
  • @tedin7, if #3221 is heading for a merge, I'll rebase onto it.
  • @JB2WIN, does #3063's heap-slot path already cover an address built with s_add_u32 instead of an SMEM offset register? If so, I'll stop at the address form.
  • I'll report where these 12 stop next. I expect the stride and record-count arithmetic on the descriptor words, which is close to @RonLogic's SCC family, so I'll check with RonLogic before touching it.

Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231028754 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7231028754). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T00:35:03Z. --- Census results for `unbound numeric SGPR sN`. Thanks @Leyukaka, your numbers reproduce on my side. **Inputs.** - One local start-up run: 300 s, runtime built from `main` `2e12dd8e`. - 878 compute shaders were dispatched with no translation (5,490,804 dispatches). I copied their slot 67 requests out of that run's shader cache. - Compiler: `main` `7fcde81f`, `compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests`. - A local diagnostic patch adds the analysis symbol held in the refused register to the message. Behind a second switch, it applies #3006's wave-size rule: bit 20 of `.sa` dword 4 clear and more than 32 threads means wave64. Both are off by default, and the patch is not for a PR. - Dispatch counts are the last `compute census` value per key, so they are smaller than the issue's. **On `main`:** 156 shaders stop first at this refusal, 132 of them wave64. That is the issue's count. They account for 769,918 dispatches in this run. - In 115 of the 132 wave64 shaders, the refused register is the odd word of an SGPR pair. Before the read, a VOP3 compare (`v_cmp_*_e64 sN-1, ...`) writes only the even word, and the read is a 64-bit scalar ALU op on `s[N-1:N]`. Most are `s_and_b64`, `s_nor_b64` or `s_or_b64`. - In 38 of them, the odd word still holds a symbol from an earlier `s_load` descriptor, so it is a stale descriptor field, not unbound. - The other 17 wave64 shaders read a 32-bit or even register. Mostly that is `s_bfe_u32` on a descriptor word. - Neither the entry layout nor TGID/TG_SIZE plays a part in the wave64 cases: the system SGPRs are already bound. - **With #3006's rule applied:** 100 of the 156 leave this refusal and 27 of them compile. 56 still stop here (24 wave32, 32 wave64), with 214,183 dispatches. These are the same counts as yours. - Among the 73 that leave the refusal but don't compile, the most common next refusal is `multi-wave64 exchange requires converged group control flow` (33). So the largest cause is #3006 itself. I'm not going to duplicate it, and I'm narrowing my claim to the 56 that remain. **The 56 that remain**, by the reading instruction and the symbol in the register: | Wave | Symbol in the register | Reader | Shaders | Dispatches | |---|---|---|---:|---:| | wave32 | unbound (leftover user SGPR) | `s_add_u32` | 8 | 144,783 | | wave32 | resource-heap table | `s_add_u32` | 4 | 17,346 | | wave64 | unbound | `s_and_b64` / `s_orn2_b64` / `s_add_u32` | 19 | 23,185 | | wave64 | `s_load` descriptor word | `s_bfe_u32` / `s_or_b64` / `v_cmpx` | 13 | 11,519 | | wave32 | unbound | `s_and_b32` / `s_nand_b32` | 6 | 11,037 | | wave32 | `s_load` descriptor word | `s_bfe_u32` | 4 | 3,161 | | wave32 | unbound | `s_getpc_b64` | 2 | 3,152 | The first two rows, 12 shaders and 162,129 dispatches, have one shape: a waterfall loop that loads a buffer descriptor at the resource-heap base plus a lane-selected byte offset. ``` v_readfirstlane_b32 sI, vX v_cmpx_eq_i32_e32 sI, vX s_add_u32 sLo, s10, sI ; resource-heap base + byte offset s_add_u32 sHi, 0, src_scc s_load_dwordx4 s[D:D+3], s[sLo:sHi], 0x0 s_bfe_u32 ..., s(D+1), ... ; stride s_max_u32 / s_and_b32 / s_mul_i32 on the descriptor words ``` - In the 8 shaders, the root layout is two tables and four constants, with only `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED` set. That leaves one user SGPR, `s10`, and `main` binds a heap only when both heap flags are set and two SGPRs are left. #3221 binds that case. - In the 4 shaders, both flags are set and `s10` is already bound as the resource heap. The add on the table pointer is refused because the register isn't numeric. - With #3221, the 8 should become the same case as the 4. I haven't measured that. **Plan, revised:** a PR on `main` that lowers this address form: the heap base plus a register byte offset (`s_add_u32` lo, then `s_add_u32 hi, 0, scc`) followed by `s_load` at offset 0. It becomes the same indexed heap descriptor the compiler already builds for an SMEM register offset. - The other 44 keep their refusals. - It needs #3221 for the 8 single-flag layouts. I'll measure the 4 two-flag layouts first, and build on #3221 or wait for it rather than copy it. - @tedin7, if #3221 is heading for a merge, I'll rebase onto it. - @JB2WIN, does #3063's heap-slot path already cover an address built with `s_add_u32` instead of an SMEM offset register? If so, I'll stop at the address form. - I'll report where these 12 stop next. I expect the stride and record-count arithmetic on the descriptor words, which is close to @RonLogic's SCC family, so I'll check with RonLogic before touching it. Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP. AI-assisted.
Leyukaka commented 2026-11-28 00:52:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T00:52:02Z.


Taking two small items from the remaining first refusals. Measured with compile_dxil on the 882 requests, on #3006 plus the EXEC change I am holding until #3006 lands:

  1. Binary16 SDWA with an SGPR or inline-constant source. "SDWA binary16 source must be a VGPR" blocks 2 programs (85,776 dispatches): v_add_f16_sdwa vD, sN, vB ... src0_sel:DWORD, and one v_add_f16_sdwa vD, 1.0, 0. The v_max_f16_sdwa vD, sN, vB (2 programs, 40,350) and v_min_f16_sdwa (1, 5,821) shapes in the "unimplemented direct SDWA operand profile" bucket need the scalar min/max lowering of #3125 first. I will leave their SDWA form until that lands, unless @R0D4X prefers to take it.
  2. v_dot4c_i32_i8 (VOP2 0x0d, accumulates into the destination) with a literal or SGPR source: 6 programs, 25,692 dispatches.

Both target main, with a source-built fixture that fails on main and refusal controls.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231248978 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7231248978). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T00:52:02Z. --- Taking two small items from the remaining first refusals. Measured with `compile_dxil` on the 882 requests, on #3006 plus the EXEC change I am holding until #3006 lands: 1. Binary16 SDWA with an SGPR or inline-constant source. "SDWA binary16 source must be a VGPR" blocks 2 programs (85,776 dispatches): `v_add_f16_sdwa vD, sN, vB ... src0_sel:DWORD`, and one `v_add_f16_sdwa vD, 1.0, 0`. The `v_max_f16_sdwa vD, sN, vB` (2 programs, 40,350) and `v_min_f16_sdwa` (1, 5,821) shapes in the "unimplemented direct SDWA operand profile" bucket need the scalar min/max lowering of #3125 first. I will leave their SDWA form until that lands, unless @R0D4X prefers to take it. 2. `v_dot4c_i32_i8` (VOP2 0x0d, accumulates into the destination) with a literal or SGPR source: 6 programs, 25,692 dispatches. Both target `main`, with a source-built fixture that fails on `main` and refusal controls. AI-assisted.
R0Y00 commented 2026-11-28 01:08:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-28T01:08:11Z.


Main now includes slot-67 wave sizing (#3006, 7364e6a9), the output-buffer refusal breakdown (#3229, 8d9897fe) and VOP3 binary16 FMA half selection (#3234, 57e94668). The independent source-built GPU tests covered the wave-size and FMA paths and all nine individual output-buffer conditions. No original-executable run was used for those checks.

When refreshing the census, keep the exact compiler/runtime SHAs and report first refusal per key with untranslated dispatches for that key. The lower-level readbacks do not show which captured keys change or whether the newly translated dispatches produce the expected output. Existing claims for the remaining SDWA and dot-product slices stay with their authors.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231446657 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7231446657). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-28T01:08:11Z. --- Main now includes slot-67 wave sizing (#3006, 7364e6a9), the output-buffer refusal breakdown (#3229, 8d9897fe) and VOP3 binary16 FMA half selection (#3234, 57e94668). The independent source-built GPU tests covered the wave-size and FMA paths and all nine individual output-buffer conditions. No original-executable run was used for those checks. When refreshing the census, keep the exact compiler/runtime SHAs and report first refusal per key with untranslated dispatches for that key. The lower-level readbacks do not show which captured keys change or whether the newly translated dispatches produce the expected output. Existing claims for the remaining SDWA and dot-product slices stay with their authors.
Leyukaka commented 2026-11-28 01:09:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T01:09:40Z.


#3006 is in, so the wave64 programs now reach later refusals. Taking three more items, all measured with compile_dxil on the 882 requests of this issue:

  1. EXEC as a 64-bit scalar operand: s_bcnt1_i32_b64 sN, exec, s_ff1_i32_b64 sN, exec and s_bfm_b64 exec, ..., refused as "invalid s_bcnt1_i32_b64 source", "invalid s_ff1_i32_b64 source" and "invalid s_bfm_b64 destination". With the wave64 model, each host half holds both EXEC words, so these can read and write the pair. VCC stays refused, because nothing guarantees both of its words in wave64. On 14d56502 plus #3006 as pushed before the merge, this made 13 more programs compile (81,320 dispatches), with no regressions. I will remeasure on 7364e6a9 for the PR. The PR follows.
  2. s_andn2_wrexec_b64 in wave64 programs: "unsupported wave64 scalar operation", 13 programs, 39,275 dispatches.
  3. GLC and DLC on raw buffer_load_dword (offen or a scalar offset): "raw buffer load needs a linear byte offset and no modifiers", 7 programs, 33,959 dispatches. These cache bits do not change the loaded value. Stores, atomics and the other modifiers stay as they are.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231464266 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7231464266). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T01:09:40Z. --- #3006 is in, so the wave64 programs now reach later refusals. Taking three more items, all measured with `compile_dxil` on the 882 requests of this issue: 1. EXEC as a 64-bit scalar operand: `s_bcnt1_i32_b64 sN, exec`, `s_ff1_i32_b64 sN, exec` and `s_bfm_b64 exec, ...`, refused as "invalid s_bcnt1_i32_b64 source", "invalid s_ff1_i32_b64 source" and "invalid s_bfm_b64 destination". With the wave64 model, each host half holds both EXEC words, so these can read and write the pair. VCC stays refused, because nothing guarantees both of its words in wave64. On `14d56502` plus #3006 as pushed before the merge, this made 13 more programs compile (81,320 dispatches), with no regressions. I will remeasure on `7364e6a9` for the PR. The PR follows. 2. `s_andn2_wrexec_b64` in wave64 programs: "unsupported wave64 scalar operation", 13 programs, 39,275 dispatches. 3. GLC and DLC on raw `buffer_load_dword` (`offen` or a scalar offset): "raw buffer load needs a linear byte offset and no modifiers", 7 programs, 33,959 dispatches. These cache bits do not change the loaded value. Stores, atomics and the other modifiers stay as they are. AI-assisted.
Not-Saii commented 2026-11-28 01:18:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T01:18:19Z.


@Leyukaka, now that #3006, #3229 and #3234 are in, I can refresh this census from my side if it helps, in the format @R0Y00 described. If you're already refreshing it, I'll leave it to you and not post a second table.

What I'd run, both at the same main commit (currently 57e94668), with the compiler and runtime SHAs stated:

  1. Compiler only: compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests over the 878 slot 67 requests from my earlier 300 s start-up run (the inputs of my census comment above). The output is the first refusal per key, kept locally, posted here as a table per refusal with shader counts and untranslated dispatches, plus a diff against your 14d56502 buckets: which keys moved, to which refusal, and which now compile.
  2. Runtime: a fresh 300 s start-up run built from the same commit, for the compute census lines. That shows which of the newly compiled keys are actually dispatched translated and which then stop at a runtime binding refusal (now split into nine reasons by #3229). As R0Y00 notes, this still doesn't show whether their output is correct. I'd say so in the table rather than imply it.

Counts and instruction shapes only. No keys, hashes or title data.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231570280 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7231570280). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T01:18:19Z. --- @Leyukaka, now that #3006, #3229 and #3234 are in, I can refresh this census from my side if it helps, in the format @R0Y00 described. If you're already refreshing it, I'll leave it to you and not post a second table. What I'd run, both at the same `main` commit (currently `57e94668`), with the compiler and runtime SHAs stated: 1. **Compiler only:** `compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests` over the 878 slot 67 requests from my earlier 300 s start-up run (the inputs of my census comment above). The output is the first refusal per key, kept locally, posted here as a table per refusal with shader counts and untranslated dispatches, plus a diff against your `14d56502` buckets: which keys moved, to which refusal, and which now compile. 2. **Runtime:** a fresh 300 s start-up run built from the same commit, for the compute census lines. That shows which of the newly compiled keys are actually dispatched translated and which then stop at a runtime binding refusal (now split into nine reasons by #3229). As R0Y00 notes, this still doesn't show whether their output is correct. I'd say so in the table rather than imply it. Counts and instruction shapes only. No keys, hashes or title data. AI-assisted.
legacy-code-archaeologist commented 2026-11-28 01:25:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:25:46Z.


Claiming a first slice under Rank 8 ("direct image opcode or descriptor modifiers"): accepting MIMG GLC (0x2000, bit 13) and DLC (0x0080, bit 7) cache-policy flags on read-only image operations in DirectCompute::image_io() (image_load*, image_sample*, image_gather4*, image_getlod, image_getresinfo), while keeping image_store, image_atomic_*, R128 (0x8000), TFE (0x10000), LWE (0x20000), and reserved bits refused.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231659635 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7231659635). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T01:25:46Z. --- Claiming a first slice under Rank 8 (`"direct image opcode or descriptor modifiers"`): accepting MIMG `GLC` (`0x2000`, bit 13) and `DLC` (`0x0080`, bit 7) cache-policy flags on read-only image operations in `DirectCompute::image_io()` (`image_load*`, `image_sample*`, `image_gather4*`, `image_getlod`, `image_getresinfo`), while keeping `image_store`, `image_atomic_*`, `R128` (`0x8000`), `TFE` (`0x10000`), `LWE` (`0x20000`), and reserved bits refused. AI-assisted.
R0Y00 commented 2026-11-28 01:26:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-28T01:26:15Z.


@Not-Saii A refresh of your original 878-request cohort would help. If you have not started it, use main 8007a539 or a later pinned SHA, so it includes #3203 and #3236 as well as #3006, #3229 and #3234. Keep the 878-request comparison within that cohort. Leyukaka's 882-request measurements can remain a separate baseline. #3236 has independent desktop wave32 and split-wave64 fixture readbacks.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231665020 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7231665020). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-28T01:26:15Z. --- @Not-Saii A refresh of your original 878-request cohort would help. If you have not started it, use main 8007a539 or a later pinned SHA, so it includes #3203 and #3236 as well as #3006, #3229 and #3234. Keep the 878-request comparison within that cohort. Leyukaka's 882-request measurements can remain a separate baseline. #3236 has independent desktop wave32 and split-wave64 fixture readbacks.
legacy-code-archaeologist commented 2026-11-28 01:39:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:39:07Z.


Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3244 to accept GLC and DLC cache-policy flags on read-only image operations in DirectCompute::image_io() (Fixes #3242, Refs #3224).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231820755 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7231820755). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T01:39:07Z. --- Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3244 to accept `GLC` and `DLC` cache-policy flags on read-only image operations in `DirectCompute::image_io()` (Fixes #3242, Refs #3224). AI-assisted.
Not-Saii commented 2026-11-28 01:51:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T01:51:33Z.


Refreshed census of my 878-request cohort, as @R0Y00 asked: one first refusal per key, weighted by that key's untranslated dispatches. Everything is measured at main 8007a539, which includes #3006, #3229, #3234, #3203 and #3236. Counts and instruction shapes only. Leyukaka's 882-request numbers stay a separate baseline and aren't mixed in here.

Inputs

  • The 878 slot 67 compute requests that were dispatched with no translation in my earlier 300 s start-up run (run 70, runtime 2e12dd8e). They are the inputs of my census comment above.
  • Weights: the last compute census value per key in run 70, minus translated dispatches. That gives 4,348,550 untranslated dispatches for the cohort. Correction to my earlier comment: its 5,490,804 is run 70's untranslated total over all 985 keys, not the cohort's. The per-bucket figures there (for example, 156 shaders / 769,918 dispatches for unbound numeric SGPR sN) use the cohort weights and reproduce here.
  • Wave split: bit 20 of .sa dword 4 clear = wave64, as in the earlier census. 26 of the 343 bit-clear requests have groups of 32 threads or fewer, and the compiler keeps those on the wave32 model.

Step 1: compiler only

compile_dxil <Windows SDK 10.0.26100 x64 bin> <frontend cache> --jobs 8 gfx1013-direct-cs@36 --requests <878 requests> <output>, built from 8007a539. 878 requests: 129 compiled, 749 refused, 37 s with 8 workers.

Refusal text is normalized: PC offsets, register numbers and hex words removed.

First refusal at 8007a539 Shaders wave32 / wave64 Untranslated dispatches (run 70) Share
direct resource-heap load requires the selected GPU slot and its view type 323 319 / 4 1,519,630 34.9%
direct descriptor address outside bound table 75 45 / 30 924,130 21.3%
compiles, but no runtime manifest is published 84 25 / 59 613,844 14.1%
multi-wave64 exchange requires converged group control flow 56 0 / 56 315,714 7.3%
unbound numeric SGPR sN 56 24 / 32 214,183 4.9%
unimplemented direct SDWA operand profile 4 0 / 4 143,272 3.3%
numeric SCC from a symbolic descriptor field 4 1 / 3 110,534 2.5%
direct DXIL lowering for s_or_saveexec_b32 55 55 / 0 97,717 2.2%
compiles, runtime manifest published 45 7 / 38 92,684 2.1%
direct image opcode or descriptor modifiers 61 30 / 31 92,452 2.1%
invalid s_bfm_b64 destination 9 0 / 9 27,004 0.6%
SDWA binary16 source must be a VGPR 2 0 / 2 25,376 0.6%
unsupported scalar memory destination range 17 0 / 17 21,423 0.5%
direct global memory supports only DWORD loads with a scalar address pair 9 9 / 0 19,528 0.4%
unsupported packed 16-bit min/max encoding 1 0 / 1 17,577 0.4%
invalid s_bcnt1_i32_b64 source 10 0 / 10 16,894 0.4%
raw buffer load needs a linear byte offset and no modifiers 7 2 / 5 12,332 0.3%
unsupported wave64 scalar operation 9 0 / 9 11,069 0.3%
implicit derivatives require a pixel stage 7 1 / 6 11,035 0.3%
direct DXIL lowering for v_dot4c_i32_i8 6 6 / 0 9,456 0.2%
19 other refusals (each at most 6 shaders and 7,469 dispatches) 38 11 / 27 52,696 1.2%
Total 878 535 / 343 4,348,550 100%

"Compiles" means DXIL was produced. In --requests mode, compile_dxil writes <key>.txt only when format_compute_runtime_manifest can describe the program's bindings. Without that file the runtime can't dispatch the program translated, so the 84 without a manifest are still untranslated at run time.

Against 7fcde81f (same 878 requests, same weights): 139 shaders changed first refusal and 739 kept it.

  • Compiled: 106 → 129 (32 newly compile, 9 stop compiling).
  • With a runtime manifest: 39 → 45 (14 new, 8 lost).
First refusal at 7fcde81f Shaders that moved Dispatches First refusal at 8007a539
unbound numeric SGPR sN 100 555,735 multi-wave64 exchange 33; compiles 29 (11 with a manifest, 18 without); unsupported scalar memory destination range 10; image opcode or modifiers 8; invalid s_bcnt1_i32_b64 source 5; 12 other refusals 15
compiles, with a manifest 8 15,759 multi-wave64 exchange 8
compiles, no manifest 1 1,576 multi-wave64 exchange 1
SDWA or DPP vector operands 8 17,280 compiles with a manifest 3; image opcode or modifiers 2; unsupported wave64 scalar operation 1; invalid s_not_b64 destination 1; multi-wave64 exchange 1
invalid s_ff1_i32_b64 source 7 8,236 multi-wave64 exchange 4; scalar memory destination range 3
direct descriptor address outside bound table 4 41,809 multi-wave64 exchange 4
direct image opcode or descriptor modifiers 3 4,728 multi-wave64 exchange 3
direct resource-heap load requires ... 2 2,567 scalar memory destination range 2
invalid s_not_b64 source 2 3,155 scalar memory destination range 2
unsupported SDWA destination modifier 1 17,577 unsupported packed 16-bit min/max encoding
unsupported v_fma_f16 high-half op_sel 1 1,576 direct DXIL lowering for v_pk_fmac_f16
unsupported wave64 scalar operation 1 1,576 multi-wave64 exchange
packed image addressing 1 1,576 multi-wave64 exchange
  • The 9 that stop compiling are all wave64 programs with 256- or 512-thread groups. 7fcde81f compiled them with the wave32 model. With #3006's wave size they now stop at the multi-wave64 gate, which takes 56 shaders in all.
  • unsupported scalar memory destination range is new in this cohort: 17 wave64 shaders.
  • I didn't bisect the five merges, so this doesn't attribute each move to one PR.
  • The 7fcde81f baseline came from my earlier build with a local diagnostic patch. The patch only appended the analysis symbol to the unbound-SGPR message, and that suffix is stripped before comparing.

Step 2: runtime

A fresh 300 s start-up run (run 74), with the runtime built from 8007a539. The settings are those of my earlier runs: tools/startup/run.ps1 -Seconds 300 -MemoryGiB 24 -Render -Translate -GpuMirror -StartupBelow40 -FakeUser -ContinueAsserts 1000, A pressed every 5 s from 30 s to 300 s, X2W_SKIP_FAILED=1.

  • The 45 manifests and .cs.cso files from step 1 were copied into a copy of the shader cache passed with -ShaderCache, and those keys' .fail files were removed.
  • The Python watcher ran for graphics. gfx2hlsl.py hasn't changed since 2e12dd8e, and with --skip-failed it didn't retry the cohort.
  • Two cohort keys have gained a Python translation since run 70. Neither was dispatched in run 74, so every translated cohort dispatch below comes from a direct-compiled program.
  • All 45 manifests loaded. No "another compiler revision" refusal was logged.

Run 74 made 698,295 compute dispatches in all, far fewer than run 70 (5,490,863) or the two runs I posted above (1,490,517 and 2,453,727). I haven't investigated why. It dispatched about the same set of compute keys: 986 against run 70's 985, including 861 of the 878 in the cohort. Dispatch counts are comparable only within one run, and the table counts run 74's own. These are first-refusal buckets, as in my tables above.

First runtime outcome of the key in run 74 Of the 45 with a manifest of which newly compiling Untranslated dispatches Translated dispatches
every dispatch translated 3 1 0 450
an input is in a placed buffer that does not alias title memory 35 11 10,555 0
an input buffer view token's resource does not hold its range 2 1 997 0
an input texture entry is not the token of a shader resource view 2 0 411 0
an output texture is also an input of the dispatch 1 1 618 0
an input view token is not a buffer view of a desktop resource 1 0 10 0
#3229 reason 1: an output buffer descriptor is a view token 1 0 10 0
#3229 reasons 2-9 as first refusal 0 0 0 0
Total 45 14 12,601 450
  • Newly compiling keys: of the 32, 1 is dispatched translated (412 dispatches). 13 stop at a runtime binding refusal, all on input or texture checks. None has a #3229 output-buffer reason as its first refusal. The dispatch path checks every input before any output and stops at the first refusal, so keys that stop at an input check never reach the output checks. The 18 without a manifest stay no translation (24,809 dispatches).
  • The main runtime blocker is on the input side: 35 of the 45 stop at an input is in a placed buffer that does not alias title memory. That is the input counterpart of #3229 reason 6.
  • Whole cohort in run 74: 534,951 untranslated dispatches out of 697,777 untranslated compute dispatches in the run. 450 cohort dispatches were translated. 17 cohort keys weren't dispatched in this run.

Not measured. This doesn't show that the translated output is correct. Three keys ran translated and no device was removed, but nothing compared their results with a reference, which is @R0Y00's point above. Also not measured: why the 84 compiled programs publish no manifest, and which of the five merges moved each key.

Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, release build, D3D12 debug layer off (X2W_D3D12_DEBUG not set).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231964791 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7231964791). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T01:51:33Z. --- Refreshed census of my 878-request cohort, as @R0Y00 asked: one first refusal per key, weighted by that key's untranslated dispatches. Everything is measured at `main` `8007a539`, which includes #3006, #3229, #3234, #3203 and #3236. Counts and instruction shapes only. Leyukaka's 882-request numbers stay a separate baseline and aren't mixed in here. **Inputs** - The 878 slot 67 compute requests that were dispatched with no translation in my earlier 300 s start-up run (run 70, runtime `2e12dd8e`). They are the inputs of my census comment above. - Weights: the last `compute census` value per key in run 70, minus translated dispatches. That gives 4,348,550 untranslated dispatches for the cohort. Correction to my earlier comment: its 5,490,804 is run 70's untranslated total over all 985 keys, not the cohort's. The per-bucket figures there (for example, 156 shaders / 769,918 dispatches for `unbound numeric SGPR sN`) use the cohort weights and reproduce here. - Wave split: bit 20 of `.sa` dword 4 clear = wave64, as in the earlier census. 26 of the 343 bit-clear requests have groups of 32 threads or fewer, and the compiler keeps those on the wave32 model. ## Step 1: compiler only `compile_dxil <Windows SDK 10.0.26100 x64 bin> <frontend cache> --jobs 8 gfx1013-direct-cs@36 --requests <878 requests> <output>`, built from `8007a539`. 878 requests: 129 compiled, 749 refused, 37 s with 8 workers. Refusal text is normalized: PC offsets, register numbers and hex words removed. | First refusal at `8007a539` | Shaders | wave32 / wave64 | Untranslated dispatches (run 70) | Share | |---|---:|---:|---:|---:| | `direct resource-heap load requires the selected GPU slot and its view type` | 323 | 319 / 4 | 1,519,630 | 34.9% | | `direct descriptor address outside bound table` | 75 | 45 / 30 | 924,130 | 21.3% | | **compiles, but no runtime manifest is published** | 84 | 25 / 59 | 613,844 | 14.1% | | `multi-wave64 exchange requires converged group control flow` | 56 | 0 / 56 | 315,714 | 7.3% | | `unbound numeric SGPR sN` | 56 | 24 / 32 | 214,183 | 4.9% | | `unimplemented direct SDWA operand profile` | 4 | 0 / 4 | 143,272 | 3.3% | | `numeric SCC from a symbolic descriptor field` | 4 | 1 / 3 | 110,534 | 2.5% | | `direct DXIL lowering for s_or_saveexec_b32` | 55 | 55 / 0 | 97,717 | 2.2% | | **compiles, runtime manifest published** | 45 | 7 / 38 | 92,684 | 2.1% | | `direct image opcode or descriptor modifiers` | 61 | 30 / 31 | 92,452 | 2.1% | | `invalid s_bfm_b64 destination` | 9 | 0 / 9 | 27,004 | 0.6% | | `SDWA binary16 source must be a VGPR` | 2 | 0 / 2 | 25,376 | 0.6% | | `unsupported scalar memory destination range` | 17 | 0 / 17 | 21,423 | 0.5% | | `direct global memory supports only DWORD loads with a scalar address pair` | 9 | 9 / 0 | 19,528 | 0.4% | | `unsupported packed 16-bit min/max encoding` | 1 | 0 / 1 | 17,577 | 0.4% | | `invalid s_bcnt1_i32_b64 source` | 10 | 0 / 10 | 16,894 | 0.4% | | `raw buffer load needs a linear byte offset and no modifiers` | 7 | 2 / 5 | 12,332 | 0.3% | | `unsupported wave64 scalar operation` | 9 | 0 / 9 | 11,069 | 0.3% | | `implicit derivatives require a pixel stage` | 7 | 1 / 6 | 11,035 | 0.3% | | `direct DXIL lowering for v_dot4c_i32_i8` | 6 | 6 / 0 | 9,456 | 0.2% | | 19 other refusals (each at most 6 shaders and 7,469 dispatches) | 38 | 11 / 27 | 52,696 | 1.2% | | **Total** | 878 | 535 / 343 | 4,348,550 | 100% | "Compiles" means DXIL was produced. In `--requests` mode, `compile_dxil` writes `<key>.txt` only when `format_compute_runtime_manifest` can describe the program's bindings. Without that file the runtime can't dispatch the program translated, so the 84 without a manifest are still untranslated at run time. **Against `7fcde81f`** (same 878 requests, same weights): 139 shaders changed first refusal and 739 kept it. - Compiled: 106 → 129 (32 newly compile, 9 stop compiling). - With a runtime manifest: 39 → 45 (14 new, 8 lost). | First refusal at `7fcde81f` | Shaders that moved | Dispatches | First refusal at `8007a539` | |---|---:|---:|---| | `unbound numeric SGPR sN` | 100 | 555,735 | multi-wave64 exchange 33; **compiles** 29 (11 with a manifest, 18 without); `unsupported scalar memory destination range` 10; image opcode or modifiers 8; `invalid s_bcnt1_i32_b64 source` 5; 12 other refusals 15 | | compiles, with a manifest | 8 | 15,759 | multi-wave64 exchange 8 | | compiles, no manifest | 1 | 1,576 | multi-wave64 exchange 1 | | `SDWA or DPP vector operands` | 8 | 17,280 | **compiles with a manifest** 3; image opcode or modifiers 2; `unsupported wave64 scalar operation` 1; `invalid s_not_b64 destination` 1; multi-wave64 exchange 1 | | `invalid s_ff1_i32_b64 source` | 7 | 8,236 | multi-wave64 exchange 4; scalar memory destination range 3 | | `direct descriptor address outside bound table` | 4 | 41,809 | multi-wave64 exchange 4 | | `direct image opcode or descriptor modifiers` | 3 | 4,728 | multi-wave64 exchange 3 | | `direct resource-heap load requires ...` | 2 | 2,567 | scalar memory destination range 2 | | `invalid s_not_b64 source` | 2 | 3,155 | scalar memory destination range 2 | | `unsupported SDWA destination modifier` | 1 | 17,577 | `unsupported packed 16-bit min/max encoding` | | `unsupported v_fma_f16 high-half op_sel` | 1 | 1,576 | `direct DXIL lowering for v_pk_fmac_f16` | | `unsupported wave64 scalar operation` | 1 | 1,576 | multi-wave64 exchange | | `packed image addressing` | 1 | 1,576 | multi-wave64 exchange | - The 9 that stop compiling are all wave64 programs with 256- or 512-thread groups. `7fcde81f` compiled them with the wave32 model. With #3006's wave size they now stop at the multi-wave64 gate, which takes 56 shaders in all. - `unsupported scalar memory destination range` is new in this cohort: 17 wave64 shaders. - I didn't bisect the five merges, so this doesn't attribute each move to one PR. - The `7fcde81f` baseline came from my earlier build with a local diagnostic patch. The patch only appended the analysis symbol to the unbound-SGPR message, and that suffix is stripped before comparing. ## Step 2: runtime A fresh 300 s start-up run (run 74), with the runtime built from `8007a539`. The settings are those of my earlier runs: `tools/startup/run.ps1 -Seconds 300 -MemoryGiB 24 -Render -Translate -GpuMirror -StartupBelow40 -FakeUser -ContinueAsserts 1000`, A pressed every 5 s from 30 s to 300 s, `X2W_SKIP_FAILED=1`. - The 45 manifests and `.cs.cso` files from step 1 were copied into a copy of the shader cache passed with `-ShaderCache`, and those keys' `.fail` files were removed. - The Python watcher ran for graphics. `gfx2hlsl.py` hasn't changed since `2e12dd8e`, and with `--skip-failed` it didn't retry the cohort. - Two cohort keys have gained a Python translation since run 70. Neither was dispatched in run 74, so every translated cohort dispatch below comes from a direct-compiled program. - All 45 manifests loaded. No "another compiler revision" refusal was logged. Run 74 made 698,295 compute dispatches in all, far fewer than run 70 (5,490,863) or the two runs I posted above (1,490,517 and 2,453,727). I haven't investigated why. It dispatched about the same set of compute keys: 986 against run 70's 985, including 861 of the 878 in the cohort. Dispatch counts are comparable only within one run, and the table counts run 74's own. These are first-refusal buckets, as in my tables above. | First runtime outcome of the key in run 74 | Of the 45 with a manifest | of which newly compiling | Untranslated dispatches | Translated dispatches | |---|---:|---:|---:|---:| | every dispatch translated | 3 | 1 | 0 | 450 | | `an input is in a placed buffer that does not alias title memory` | 35 | 11 | 10,555 | 0 | | `an input buffer view token's resource does not hold its range` | 2 | 1 | 997 | 0 | | `an input texture entry is not the token of a shader resource view` | 2 | 0 | 411 | 0 | | `an output texture is also an input of the dispatch` | 1 | 1 | 618 | 0 | | `an input view token is not a buffer view of a desktop resource` | 1 | 0 | 10 | 0 | | #3229 reason 1: `an output buffer descriptor is a view token` | 1 | 0 | 10 | 0 | | #3229 reasons 2-9 as first refusal | 0 | 0 | 0 | 0 | | **Total** | 45 | 14 | 12,601 | 450 | - **Newly compiling keys:** of the 32, 1 is dispatched translated (412 dispatches). 13 stop at a runtime binding refusal, all on input or texture checks. None has a #3229 output-buffer reason as its first refusal. The dispatch path checks every input before any output and stops at the first refusal, so keys that stop at an input check never reach the output checks. The 18 without a manifest stay `no translation` (24,809 dispatches). - **The main runtime blocker** is on the input side: 35 of the 45 stop at `an input is in a placed buffer that does not alias title memory`. That is the input counterpart of #3229 reason 6. - **Whole cohort in run 74:** 534,951 untranslated dispatches out of 697,777 untranslated compute dispatches in the run. 450 cohort dispatches were translated. 17 cohort keys weren't dispatched in this run. **Not measured.** This doesn't show that the translated output is correct. Three keys ran translated and no device was removed, but nothing compared their results with a reference, which is @R0Y00's point above. Also not measured: why the 84 compiled programs publish no manifest, and which of the five merges moved each key. Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, release build, D3D12 debug layer off (`X2W_D3D12_DEBUG` not set). AI-assisted.
Leyukaka commented 2026-11-28 02:09:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T02:09:55Z.


Taking one more item: "implicit derivatives require a pixel stage", the implicit-LOD image_sample/_b/_c, image_gather4 and image_get_lod in direct compute.

Measured with compile_dxil with base and change on main 50e4f763:

  • 17 programs on a local capture of 2,689 requests stop at this refusal. With the change, 4 of them compile (507 to 511) and 13 stop later. Seven of those 13 stop at an image_store with a partial dmask (5 with 0x7, as in #3243, and 2 with 0x9).
  • The 882 requests here: no new compile, and their 7 such programs stop later.

The PR follows in a moment.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232175247 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7232175247). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T02:09:55Z. --- Taking one more item: "implicit derivatives require a pixel stage", the implicit-LOD `image_sample`/`_b`/`_c`, `image_gather4` and `image_get_lod` in direct compute. Measured with `compile_dxil` with base and change on `main` `50e4f763`: - 17 programs on a local capture of 2,689 requests stop at this refusal. With the change, 4 of them compile (507 to 511) and 13 stop later. Seven of those 13 stop at an `image_store` with a partial dmask (5 with 0x7, as in #3243, and 2 with 0x9). - The 882 requests here: no new compile, and their 7 such programs stop later. The PR follows in a moment. AI-assisted.
legacy-code-archaeologist commented 2026-11-28 02:28:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:28:42Z.


Opened PR #3259 (Fixes #3258) to address direct DXIL lowering for v_pk_fmac_f16 in the refreshed compute census (17 cases and 8 refusals verified on IR/controls/WARP/hardware-pixel in dev and release /O2; _compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232388327 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7232388327). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T02:28:42Z. --- Opened PR #3259 (Fixes #3258) to address `direct DXIL lowering for v_pk_fmac_f16` in the refreshed compute census (`17` cases and `8` refusals verified on IR/controls/WARP/hardware-pixel in `dev` and `release` `/O2`; `_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
Leyukaka commented 2026-11-28 02:30:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T02:30:36Z.


Taking one more small item: "invalid s_not_b64 source" / "destination" and "invalid s_cselect_b64 source" with VCC or EXEC operands. It is stacked on #3245. VCC is read here the way s_mov_b64 and the _b64 mask operations on main already read it.

Measured with compile_dxil against #3245 on main 7364e6a9:

  • On a local capture of 2,689 requests, 21 programs stop at these refusals. With the change, 6 of them compile (522 to 528 compile overall), and the rest stop later.
  • On the 882 requests here, 2 more compile (141 to 143), 20,902 dispatches.

The PR follows in a moment.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232409555 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7232409555). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T02:30:36Z. --- Taking one more small item: "invalid s_not_b64 source" / "destination" and "invalid s_cselect_b64 source" with VCC or EXEC operands. It is stacked on #3245. VCC is read here the way `s_mov_b64` and the `_b64` mask operations on `main` already read it. Measured with `compile_dxil` against #3245 on `main` `7364e6a9`: - On a local capture of 2,689 requests, 21 programs stop at these refusals. With the change, 6 of them compile (522 to 528 compile overall), and the rest stop later. - On the 882 requests here, 2 more compile (141 to 143), 20,902 dispatches. The PR follows in a moment. AI-assisted.
legacy-code-archaeologist commented 2026-11-28 02:37:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:37:18Z.


Opened a PR (Fixes #3261) addressing unsupported packed 16-bit min/max encoding from the refreshed census (17,577 dispatches) by supporting VOP3P neg_lo, neg_hi, and clamp on v_pk_min_f16 and v_pk_max_f16 (dev & release controls and WARP/Quadro M1000M pixel tests pass; _compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232485317 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7232485317). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T02:37:18Z. --- Opened a PR (Fixes #3261) addressing `unsupported packed 16-bit min/max encoding` from the refreshed census (17,577 dispatches) by supporting VOP3P `neg_lo`, `neg_hi`, and `clamp` on `v_pk_min_f16` and `v_pk_max_f16` (`dev` & `release` controls and WARP/Quadro M1000M pixel tests pass; `_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
Leyukaka commented 2026-11-28 02:44:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T02:44:13Z.


Taking one more item: "unsupported scalar memory destination range". In the 882 requests here, all 17 programs that stop at it are wave64 scalar loads ending at s107 (VCC). This extends #3180, which allowed it for wave32 only, to direct wave64.

Measured with compile_dxil with base and change on main f9286e7d:

  • local capture of 2,689 requests: 51 programs stop at this refusal. With the change, 3 compile (509 to 512) and the rest stop later.
  • the 882 here: no new compile, and the 17 programs stop later.

The PR follows in a moment.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232560582 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7232560582). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T02:44:13Z. --- Taking one more item: "unsupported scalar memory destination range". In the 882 requests here, all 17 programs that stop at it are wave64 scalar loads ending at s107 (VCC). This extends #3180, which allowed it for wave32 only, to direct wave64. Measured with `compile_dxil` with base and change on `main` `f9286e7d`: - local capture of 2,689 requests: 51 programs stop at this refusal. With the change, 3 compile (509 to 512) and the rest stop later. - the 882 here: no new compile, and the 17 programs stop later. The PR follows in a moment. AI-assisted.
Not-Saii commented 2026-11-28 02:52:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T02:52:27Z.


I'll take the largest unclaimed bucket in my refreshed census: compiles, but no runtime manifest is published. That is 84 shaders and 613,844 untranslated dispatches (14.1%) in the 878-request cohort at 8007a539. These programs already produce DXIL, but the runtime can't dispatch them, because format_compute_runtime_manifest (src/direct_compute_cache.cpp) returns std::nullopt and compile_dxil --requests then writes no <key>.txt.

That function has about 25 return std::nullopt exits, and none of them records why. That is the same situation #3229 fixed for the output-binding refusal.

Plan.

  1. Give each exit a named reason, with no change in what is published. --requests records it next to the DXIL (in the .fail file or an equivalent the triage tools already read) and --refusals counts it. A source-built fixture triggers each reason, and a negative control shows that with the change reverted the reasons disappear.
  2. Measure the 84 by reason, as counts and instruction shapes only, with the compiler SHA stated. Check the overlap with #2975 / #3049 (texture UAVs and table buffers in the C++ manifest) and with #3154 (static samplers) before claiming any binding kind.
  3. In its own PR, add the most common manifest line that no other PR covers, with a runtime GPU readback through the published route and a negative control.

Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232648645 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7232648645). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T02:52:27Z. --- I'll take the largest unclaimed bucket in my refreshed census: **compiles, but no runtime manifest is published**. That is 84 shaders and 613,844 untranslated dispatches (14.1%) in the 878-request cohort at `8007a539`. These programs already produce DXIL, but the runtime can't dispatch them, because `format_compute_runtime_manifest` (`src/direct_compute_cache.cpp`) returns `std::nullopt` and `compile_dxil --requests` then writes no `<key>.txt`. That function has about 25 `return std::nullopt` exits, and none of them records why. That is the same situation #3229 fixed for the output-binding refusal. **Plan.** 1. Give each exit a named reason, with no change in what is published. `--requests` records it next to the DXIL (in the `.fail` file or an equivalent the triage tools already read) and `--refusals` counts it. A source-built fixture triggers each reason, and a negative control shows that with the change reverted the reasons disappear. 2. Measure the 84 by reason, as counts and instruction shapes only, with the compiler SHA stated. Check the overlap with #2975 / #3049 (texture UAVs and table buffers in the C++ manifest) and with #3154 (static samplers) before claiming any binding kind. 3. In its own PR, add the most common manifest line that no other PR covers, with a runtime GPU readback through the published route and a negative control. Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP. AI-assisted.
Not-Saii commented 2026-11-28 03:22:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T03:22:06Z.


Step 2 of my claim above: the 84 shaders that compile but get no runtime manifest, split by reason. Counts and binding shapes only.

Setup

  • Compiler: #3268 (3ea1a79f) on main c827d8ba. #3268 changes no published file; it adds a named reason in <key>.fail next to the .cs.cso.
  • Command: compile_dxil <Windows SDK 10.0.26100 x64 bin> <frontend cache> --jobs 8 gfx1013-direct-cs@36 --requests <878 requests> <output>. These are the same 878 requests and run 70 weights (4,348,550 untranslated dispatches) as my refreshed census above.
  • This was a Debug build, which is why it took minutes instead of 37 s. The build type changes speed, not output.

The 84 by reason

All 84 still compile without a manifest at c827d8ba.

Reason (unsupported startup runtime manifest bindings: ...) Shaders wave32 / wave64 Untranslated dispatches (run 70) Share of the 84 Covered by an open PR
SRV kind typed_buffer_srv 43 18 / 25 531,322 86.6% no
SRV kind texture_srv 3d 11 1 / 10 30,973 5.0% no
UAV kind half_buffer_uav 5 1 / 4 14,188 2.3% no
UAV kind half_scalar_uav 11 1 / 10 10,395 1.7% no
SRV kind texture_srv 2d-array 3 0 / 3 9,659 1.6% no
UAV kind indexed_atomic_uav 4 0 / 4 6,304 1.0% no
UAV kind typed_buffer_uav 3 2 / 1 4,697 0.8% no
SRV kind root_buffer_srv 2 2 / 0 3,152 0.5% no
UAV kind texture_uav 3d 1 0 / 1 1,577 0.3% #2975 / #3049 (tex3d UAV)
SRV kind texture_srv 1d 1 0 / 1 1,577 0.3% no
Total 84 25 / 59 613,844 100%
  • Every one of the 84 stops at a binding kind that has no manifest line. None stops at a count limit, a register gap, a heap view or a comparison sampler.
  • Overlap. In format_compute_runtime_manifest, #2975 and #3049 add only tex3d / tex1d lines for texture_uav / half4_texture_uav, which covers 1 shader. #3049's 2D texture SRVs and #3154's static samplers are on the in-process route; they add no manifest line for these kinds. The runtime's manifest reader accepts only buf (raw) and tex2d SRV lines today.
  • typed_buffer_srv is a formatted buffer load (buffer_load_format_* / tbuffer_load_format_*), which the translator reads as Buffer<uint4>. It is 43 of the 84 and 86.6% of their dispatches, and no open PR covers it. It is my step 3 candidate: a typed buffer SRV line in the C++ manifest plus the runtime view it needs, tested by a GPU readback through compile_dxil → <key>.txt → stand-in dispatch. A published manifest can still stop at a runtime input check, such as the placed-buffer check of #2860 / #2862, which I am not taking on.

The whole cohort at c827d8ba (against 8007a539)

main moved between the two runs, so this is not attributable to #3268.

  • Compiled: 129 → 160. With a manifest: 45 → 64. Without a manifest: 84 → 96. The 12 new ones without a manifest are 7 typed_buffer_srv, 2 texture_srv 3d, 1 texture_srv 2d-array, 1 typed_buffer_uav and 1 half_scalar_uav.
  • The 45 manifests from 8007a539 are byte-identical. 19 more get one; they were refused with direct image opcode or descriptor modifiers before.
  • New at c827d8ba: 36 wave32 shaders (56,736 dispatches) now pass the translator but fail DXC validation with Flags must match usage (declared 0x180010, actual 0x188010). The missing bit 0x8000 is the "64 UAV slots" flag, so these modules bind more than 8 UAVs without declaring it. At 8007a539 they were refused earlier: 20 by direct image opcode or descriptor modifiers and 16 by direct DXIL lowering for s_or_saveexec_b32. Even with the flag fixed, their manifest would stop at more than 8 UAVs. I haven't bisected which merge exposed them.

Not measured: the runtime outcome of any of these. No start-up run was made for this comment.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7233016773 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7233016773). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T03:22:06Z. --- Step 2 of my claim above: the 84 shaders that compile but get no runtime manifest, split by reason. Counts and binding shapes only. **Setup** - Compiler: #3268 (`3ea1a79f`) on `main` `c827d8ba`. #3268 changes no published file; it adds a named reason in `<key>.fail` next to the `.cs.cso`. - Command: `compile_dxil <Windows SDK 10.0.26100 x64 bin> <frontend cache> --jobs 8 gfx1013-direct-cs@36 --requests <878 requests> <output>`. These are the same 878 requests and run 70 weights (4,348,550 untranslated dispatches) as my refreshed census above. - This was a Debug build, which is why it took minutes instead of 37 s. The build type changes speed, not output. ## The 84 by reason All 84 still compile without a manifest at `c827d8ba`. | Reason (`unsupported startup runtime manifest bindings: ...`) | Shaders | wave32 / wave64 | Untranslated dispatches (run 70) | Share of the 84 | Covered by an open PR | |---|---:|---:|---:|---:|---| | `SRV kind typed_buffer_srv` | 43 | 18 / 25 | 531,322 | 86.6% | no | | `SRV kind texture_srv 3d` | 11 | 1 / 10 | 30,973 | 5.0% | no | | `UAV kind half_buffer_uav` | 5 | 1 / 4 | 14,188 | 2.3% | no | | `UAV kind half_scalar_uav` | 11 | 1 / 10 | 10,395 | 1.7% | no | | `SRV kind texture_srv 2d-array` | 3 | 0 / 3 | 9,659 | 1.6% | no | | `UAV kind indexed_atomic_uav` | 4 | 0 / 4 | 6,304 | 1.0% | no | | `UAV kind typed_buffer_uav` | 3 | 2 / 1 | 4,697 | 0.8% | no | | `SRV kind root_buffer_srv` | 2 | 2 / 0 | 3,152 | 0.5% | no | | `UAV kind texture_uav 3d` | 1 | 0 / 1 | 1,577 | 0.3% | #2975 / #3049 (`tex3d` UAV) | | `SRV kind texture_srv 1d` | 1 | 0 / 1 | 1,577 | 0.3% | no | | **Total** | **84** | **25 / 59** | **613,844** | 100% | | - Every one of the 84 stops at a binding kind that has no manifest line. None stops at a count limit, a register gap, a heap view or a comparison sampler. - **Overlap.** In `format_compute_runtime_manifest`, #2975 and #3049 add only `tex3d` / `tex1d` lines for `texture_uav` / `half4_texture_uav`, which covers 1 shader. #3049's 2D texture SRVs and #3154's static samplers are on the in-process route; they add no manifest line for these kinds. The runtime's manifest reader accepts only `buf` (raw) and `tex2d` SRV lines today. - **`typed_buffer_srv`** is a formatted buffer load (`buffer_load_format_*` / `tbuffer_load_format_*`), which the translator reads as `Buffer<uint4>`. It is 43 of the 84 and 86.6% of their dispatches, and no open PR covers it. It is my step 3 candidate: a typed buffer SRV line in the C++ manifest plus the runtime view it needs, tested by a GPU readback through `compile_dxil` → `<key>.txt` → stand-in dispatch. A published manifest can still stop at a runtime input check, such as the placed-buffer check of #2860 / #2862, which I am not taking on. ## The whole cohort at `c827d8ba` (against `8007a539`) `main` moved between the two runs, so this is not attributable to #3268. - Compiled: 129 → 160. With a manifest: 45 → 64. Without a manifest: 84 → 96. The 12 new ones without a manifest are 7 `typed_buffer_srv`, 2 `texture_srv 3d`, 1 `texture_srv 2d-array`, 1 `typed_buffer_uav` and 1 `half_scalar_uav`. - The 45 manifests from `8007a539` are byte-identical. 19 more get one; they were refused with `direct image opcode or descriptor modifiers` before. - **New at `c827d8ba`:** 36 wave32 shaders (56,736 dispatches) now pass the translator but fail DXC validation with `Flags must match usage` (declared `0x180010`, actual `0x188010`). The missing bit `0x8000` is the "64 UAV slots" flag, so these modules bind more than 8 UAVs without declaring it. At `8007a539` they were refused earlier: 20 by `direct image opcode or descriptor modifiers` and 16 by `direct DXIL lowering for s_or_saveexec_b32`. Even with the flag fixed, their manifest would stop at `more than 8 UAVs`. I haven't bisected which merge exposed them. **Not measured:** the runtime outcome of any of these. No start-up run was made for this comment. AI-assisted.
Not-Saii commented 2026-11-28 03:34:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T03:34:06Z.


Follow-up on the 36 wave32 shaders from the step 2 census that failed DXC validation with Flags must match usage (missing bit 0x8000):

  • Cause: the direct emitter never set DXIL shader flag 0x8000. DXC sets that flag when the declared UAV ranges add up to more than 8 slots. Fix and source-built fixture (8 and 9 UAVs): https://github.com/R0Y00/Xbox2Windows/pull/3270.
  • Rerun of compile_dxil gfx1013-direct-cs@36 --requests over the same 878 requests (Release, 5b0bfdc0 on main 0fe4cebc): 216 compiled and 662 refused, against 160 / 718 at c827d8ba + 3ea1a79f. All 36 now compile, and Flags must match usage appears 0 times. No earlier compile was lost. The other 20 gains come from #3244, #3245 and #3255.
  • The 36 declare 9 (2), 10 (33) or 16 (1) UAV bindings, so the compute runtime manifest still refuses all of them (limit 8 UAVs). They now produce valid DXIL but still cannot be dispatched. Raising the manifest's UAV limit is the next step for this group.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7233180476 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7233180476). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T03:34:06Z. --- Follow-up on the 36 wave32 shaders from the step 2 census that failed DXC validation with `Flags must match usage` (missing bit `0x8000`): - Cause: the direct emitter never set DXIL shader flag `0x8000`. DXC sets that flag when the declared UAV ranges add up to more than 8 slots. Fix and source-built fixture (8 and 9 UAVs): https://github.com/R0Y00/Xbox2Windows/pull/3270. - Rerun of `compile_dxil gfx1013-direct-cs@36 --requests` over the same 878 requests (Release, `5b0bfdc0` on `main` `0fe4cebc`): 216 compiled and 662 refused, against 160 / 718 at `c827d8ba` + `3ea1a79f`. All 36 now compile, and `Flags must match usage` appears 0 times. No earlier compile was lost. The other 20 gains come from #3244, #3245 and #3255. - The 36 declare 9 (2), 10 (33) or 16 (1) UAV bindings, so the compute runtime manifest still refuses all of them (limit 8 UAVs). They now produce valid DXIL but still cannot be dispatched. Raising the manifest's UAV limit is the next step for this group. AI-assisted (Claude Code).
Leyukaka commented 2026-11-28 03:51:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T03:51:08Z.


The split of "direct descriptor address outside bound table" you asked for (by root flags and user SGPRs), on the 882 requests here. The compiler is compile_dxil at main fdba6e15, which includes #3253 and #3270. These are counts and instruction shape only.

111 programs stop first at this refusal (2,994,812 dispatches). Root flags and parameters come from the request's root signature. The user SGPR count comes from .sa dword 6 bits [5:1]. "First free SGPR" is the frontend rule: s4, then one SGPR per table and N per constants block.

Heap flags Root parameters User SGPRs First free SGPR Wave Programs Dispatches
CBV_SRV_UAV table, table 7 s6 32 47 504,098
CBV_SRV_UAV table, constants(4) 10 s9 32 33 904,466
CBV_SRV_UAV table, constants(4) 10 s9 64 18 1,359,811
CBV_SRV_UAV table, table 7 s6 64 6 13,031
CBV_SRV_UAV table, constants(2) 8 s7 64 3 180,982
CBV_SRV_UAV table, table, constants(4) 11 s10 64 2 10,354
CBV_SRV_UAV table, table, constants(2) 9 s8 64 1 22,067
sampler table, table, table 8 s7 64 1 3

In every row the enabled heap accounts for the one remaining user SGPR. That is the condition #3221 binds.

Where the refused load's base comes from: I disassembled the refused s_load and the writes to its base register before it. This is program order only and ignores control flow.

  • 79 programs, 2,857,788 dispatches: the base is that remaining heap SGPR.
    • 76 copy it with s_mov_b32 (from s9, s7 or s6) and set the high word to 0.
    • 3 use it directly (s8, s10) with the high word set to 0.
  • 32 programs, 137,024 dispatches, all "table, table" with 7 user SGPRs: the base gets a copy of a table SGPR (s5 in 31 programs, s4 in 1). The register is then written by s_or_saveexec_b32 before the load. Which value the load reads there is not determined.

By its diff, #3221 would bind that heap SGPR in all 111 programs. In 79 of them the refused base is that SGPR. I have not run #3221 on these requests, so where they stop next is not measured.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7233446969 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7233446969). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T03:51:08Z. --- The split of "direct descriptor address outside bound table" you asked for (by root flags and user SGPRs), on the 882 requests here. The compiler is `compile_dxil` at `main` `fdba6e15`, which includes #3253 and #3270. These are counts and instruction shape only. 111 programs stop first at this refusal (2,994,812 dispatches). Root flags and parameters come from the request's root signature. The user SGPR count comes from `.sa` dword 6 bits [5:1]. "First free SGPR" is the frontend rule: s4, then one SGPR per table and N per constants block. | Heap flags | Root parameters | User SGPRs | First free SGPR | Wave | Programs | Dispatches | |---|---|---|---|---|---|---| | CBV_SRV_UAV | table, table | 7 | s6 | 32 | 47 | 504,098 | | CBV_SRV_UAV | table, constants(4) | 10 | s9 | 32 | 33 | 904,466 | | CBV_SRV_UAV | table, constants(4) | 10 | s9 | 64 | 18 | 1,359,811 | | CBV_SRV_UAV | table, table | 7 | s6 | 64 | 6 | 13,031 | | CBV_SRV_UAV | table, constants(2) | 8 | s7 | 64 | 3 | 180,982 | | CBV_SRV_UAV | table, table, constants(4) | 11 | s10 | 64 | 2 | 10,354 | | CBV_SRV_UAV | table, table, constants(2) | 9 | s8 | 64 | 1 | 22,067 | | sampler | table, table, table | 8 | s7 | 64 | 1 | 3 | In every row the enabled heap accounts for the one remaining user SGPR. That is the condition #3221 binds. Where the refused load's base comes from: I disassembled the refused `s_load` and the writes to its base register before it. This is program order only and ignores control flow. - **79 programs, 2,857,788 dispatches: the base is that remaining heap SGPR.** - 76 copy it with `s_mov_b32` (from s9, s7 or s6) and set the high word to 0. - 3 use it directly (s8, s10) with the high word set to 0. - **32 programs, 137,024 dispatches**, all "table, table" with 7 user SGPRs: the base gets a copy of a table SGPR (s5 in 31 programs, s4 in 1). The register is then written by `s_or_saveexec_b32` before the load. Which value the load reads there is not determined. By its diff, #3221 would bind that heap SGPR in all 111 programs. In 79 of them the refused base is that SGPR. I have not run #3221 on these requests, so where they stop next is not measured. AI-assisted.
Leyukaka commented 2026-11-28 03:55:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T03:55:43Z.


Taking one more small item: the typed 2D image atomics that "direct image opcode or descriptor modifiers" still refuses. #3162 lowered image_atomic_cmpswap, _add and _umax. This extends the same path to the other integer operations that DXIL AtomicBinOp provides: swap, smin, umin, smax, and, or and xor. sub, inc, dec and the float atomics stay refused.

Measured with compile_dxil at main fdba6e15, on the 882 requests here: 4 programs stop first at this refusal on image_atomic_or (3) or image_atomic_umin (1), with 12,848 dispatches. The PR follows once the hardware readback passes.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7233519477 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7233519477). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T03:55:43Z. --- Taking one more small item: the typed 2D image atomics that "direct image opcode or descriptor modifiers" still refuses. #3162 lowered `image_atomic_cmpswap`, `_add` and `_umax`. This extends the same path to the other integer operations that DXIL `AtomicBinOp` provides: `swap`, `smin`, `umin`, `smax`, `and`, `or` and `xor`. `sub`, `inc`, `dec` and the float atomics stay refused. Measured with `compile_dxil` at `main` `fdba6e15`, on the 882 requests here: 4 programs stop first at this refusal on `image_atomic_or` (3) or `image_atomic_umin` (1), with 12,848 dispatches. The PR follows once the hardware readback passes. AI-assisted.
JB2WIN commented 2026-11-28 03:57:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-28T03:57:41Z.


Taking a part of the "compiles, but no runtime manifest" bucket that doesn't overlap @Not-Saii's typed_buffer_srv step: texture SRVs other than 2D, so 2D-array, 3D, 1D and cube (texture_srv with image dimension 5/2/0, cube_sample_srv).

In my cohort (2,689 slot 67 requests, compile_dxil gfx1013-direct-cs@0 --requests at main 86beae95), 282 compile without a manifest. For 64 of them a texture SRV of these kinds is the only blocker: 31 cube, 26 2D-array, 3 3D, 1 1D, and 3 with mixed kinds. I have no dispatch weights for this cohort.

Plan: add srv N tex2da|tex3d|tex1d|texcube table R B lines to format_compute_runtime_manifest, have the compute reader accept them, and create the matching SRV dimension at Dispatch. The draw path already reads these kinds. Tests: a GPU readback through compile_dxil → <key>.txt → stand-in dispatch for each kind, plus a negative control. #3049 and #2975 cover UAVs and 2D SRVs only, so I won't touch those lines.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7233550409 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7233550409). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-28T03:57:41Z. --- Taking a part of the "compiles, but no runtime manifest" bucket that doesn't overlap @Not-Saii's `typed_buffer_srv` step: **texture SRVs other than 2D**, so 2D-array, 3D, 1D and cube (`texture_srv` with image dimension 5/2/0, `cube_sample_srv`). In my cohort (2,689 slot 67 requests, `compile_dxil gfx1013-direct-cs@0 --requests` at `main` `86beae95`), 282 compile without a manifest. For 64 of them a texture SRV of these kinds is the only blocker: 31 cube, 26 2D-array, 3 3D, 1 1D, and 3 with mixed kinds. I have no dispatch weights for this cohort. Plan: add `srv N tex2da|tex3d|tex1d|texcube table R B` lines to `format_compute_runtime_manifest`, have the compute reader accept them, and create the matching SRV dimension at Dispatch. The draw path already reads these kinds. Tests: a GPU readback through `compile_dxil` → `<key>.txt` → stand-in dispatch for each kind, plus a negative control. #3049 and #2975 cover UAVs and 2D SRVs only, so I won't touch those lines. AI-assisted.
RonLogic commented 2026-11-28 06:30:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T06:30:04Z.


I’m taking the published half_buffer_uav case from the no-manifest census. This is the typed D16 buffer-store output in a slot 67 table. I’ll start with matching R16_FLOAT, R16G16_FLOAT and R16G16B16A16_FLOAT views, and use source-built Dispatch readbacks that check the view range, guards, and format/stride refusals. The existing typed SRV, texture SRV, texture UAV and UAV-count changes have separate owners or scopes.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7235333656 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7235333656). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-28T06:30:04Z. --- I’m taking the published `half_buffer_uav` case from the no-manifest census. This is the typed D16 buffer-store output in a slot 67 table. I’ll start with matching R16_FLOAT, R16G16_FLOAT and R16G16B16A16_FLOAT views, and use source-built Dispatch readbacks that check the view range, guards, and format/stride refusals. The existing typed SRV, texture SRV, texture UAV and UAV-count changes have separate owners or scopes.
RonLogic commented 2026-11-28 06:43:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T06:43:17Z.


#3302 is ready for review for half_buffer_uav. The three source-built D16 requests compiled but produced no manifest on the parent. On the new branch the runtime published and dispatched all three widths. RTX 4070 and app-local WARP each matched the full 320-word readback for each width in Debug and Release. All six invalid-view variants per width preserved the output sentinel.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7235476178 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7235476178). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-28T06:43:17Z. --- #3302 is ready for review for `half_buffer_uav`. The three source-built D16 requests compiled but produced no manifest on the parent. On the new branch the runtime published and dispatched all three widths. RTX 4070 and app-local WARP each matched the full 320-word readback for each width in Debug and Release. All six invalid-view variants per width preserved the output sentinel.
RonLogic commented 2026-11-28 06:44:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T06:44:36Z.


I’m picking up the separate half_scalar_uav publication refusal next, with the same exact-format validation for the neighboring two-channel D16 image form. This covers the published narrow half-float texture UAV and its mip/slice range. I’ll keep the four-channel and in-process texture binding work with the existing PRs.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7235489927 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7235489927). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-28T06:44:36Z. --- I’m picking up the separate `half_scalar_uav` publication refusal next, with the same exact-format validation for the neighboring two-channel D16 image form. This covers the published narrow half-float texture UAV and its mip/slice range. I’ll keep the four-channel and in-process texture binding work with the existing PRs.
RonLogic commented 2026-11-28 06:55:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T06:55:44Z.


#3305 is ready for review for one- and two-channel D16 image store manifests. The five source-built programs now reach the published Dispatch path for 1D, 2D, 2D-array and 3D views. The six view cases matched 5,664 halfwords per adapter in Debug and Release, including mip 1, a typeless resource and adjacent layers. The same-channel R32 and R32G32 controls refused with the image untouched.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7235605744 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7235605744). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-28T06:55:44Z. --- #3305 is ready for review for one- and two-channel D16 image store manifests. The five source-built programs now reach the published Dispatch path for 1D, 2D, 2D-array and 3D views. The six view cases matched 5,664 halfwords per adapter in Debug and Release, including mip 1, a typeless resource and adjacent layers. The same-channel R32 and R32G32 controls refused with the image untouched.
SimSalabimse commented 2026-11-28 08:17:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T08:17:45Z.


I'm claiming the "direct global memory supports only DWORD loads with a scalar address pair" refusal from Not-Saii's refreshed census (9 shaders, 19,528 untranslated dispatches at 8007a539).

My plan is to work out which global-memory shapes those 9 keys actually use (wider loads, stores, or a VGPR address), lower the ones the direct path can express safely, and keep a refusal with a clear reason for anything it can't. Each new shape gets a source-built fixture plus a negative control. This doesn't touch the heap slot, descriptor table, SCC, SDWA or saveexec work others have claimed.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7236490176 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7236490176). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-28T08:17:45Z. --- I'm claiming the "direct global memory supports only DWORD loads with a scalar address pair" refusal from Not-Saii's refreshed census (9 shaders, 19,528 untranslated dispatches at `8007a539`). My plan is to work out which global-memory shapes those 9 keys actually use (wider loads, stores, or a VGPR address), lower the ones the direct path can express safely, and keep a refusal with a clear reason for anything it can't. Each new shape gets a source-built fixture plus a negative control. This doesn't touch the heap slot, descriptor table, SCC, SDWA or saveexec work others have claimed. AI-Assisted
Leyukaka commented 2026-11-28 09:11:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T09:11:03Z.


I'm taking these small direct-path refusals from my measurement of the 882 requests at main 3f780716 (250 compile). Counts are programs and dispatches:

  • direct image opcode or descriptor modifiers on image_gather4_lz_o (gather at LOD 0 with an offset VGPR): 4 programs.
  • LDS instruction without allocation on ds_bpermute_b32, which reads no LDS memory: 1 program, 8,956 dispatches.
  • unsupported wave64 scalar operation on s_andn2_wrexec_b64: 2 programs. I'll first find which condition refuses it, and change it only if the lowering can be shown correct in that program's wave model.
  • unsupported packed byte dot operand modifiers on v_dot4_i32_i8 with an inline constant and op_sel_hi:[1,0,1]: 5 programs, 21,410 dispatches. I'll only change this if the semantics can be shown; otherwise I'll report what I find.

Each will be a separate PR with a source-built fixture and a negative control. I'm not touching the SDWA, heap slot, descriptor table, SCC, unbound SGPR or global memory items others have claimed.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7237071232 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7237071232). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T09:11:03Z. --- I'm taking these small direct-path refusals from my measurement of the 882 requests at `main` `3f780716` (250 compile). Counts are programs and dispatches: - `direct image opcode or descriptor modifiers` on `image_gather4_lz_o` (gather at LOD 0 with an offset VGPR): 4 programs. - `LDS instruction without allocation` on `ds_bpermute_b32`, which reads no LDS memory: 1 program, 8,956 dispatches. - `unsupported wave64 scalar operation` on `s_andn2_wrexec_b64`: 2 programs. I'll first find which condition refuses it, and change it only if the lowering can be shown correct in that program's wave model. - `unsupported packed byte dot operand modifiers` on `v_dot4_i32_i8` with an inline constant and `op_sel_hi:[1,0,1]`: 5 programs, 21,410 dispatches. I'll only change this if the semantics can be shown; otherwise I'll report what I find. Each will be a separate PR with a source-built fixture and a negative control. I'm not touching the SDWA, heap slot, descriptor table, SCC, unbound SGPR or global memory items others have claimed. AI-assisted.
Leyukaka commented 2026-11-28 09:49:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T09:49:36Z.


I'm also taking descriptor used as mask (4 programs in my 882-request set at main 3f780716). In these programs it is raised at s_mov_b64 vcc, s[18:19] where s[18:19] hold descriptor words: VCC is used as a scalar temporary, not as a mask. I'll let the words pass through s106/s107 and keep every mask or numeric use of VCC refused. PR to follow.

Update on the v_dot4_i32_i8 item from my earlier claim: I'm leaving it refused. With an inline-constant source and op_sel_hi:[1,0,1], the two models in the repository (tools/ffx_dispatch_aot.py lines 175-181 and tools/ffx_scratch_reference.py lines 106-110) read the cleared bit as replicating the low half, so 10 would become 0x000a000a, while a whole-word reading keeps 0x0000000a. tests/ffx_dispatch_aot_check.py checks that form against the Python model only. I found no hardware readback in the repository that settles which one the hardware uses, so I'm not changing it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7237491636 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7237491636). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T09:49:36Z. --- I'm also taking `descriptor used as mask` (4 programs in my 882-request set at `main` `3f780716`). In these programs it is raised at `s_mov_b64 vcc, s[18:19]` where s[18:19] hold descriptor words: VCC is used as a scalar temporary, not as a mask. I'll let the words pass through s106/s107 and keep every mask or numeric use of VCC refused. PR to follow. Update on the `v_dot4_i32_i8` item from my earlier claim: I'm leaving it refused. With an inline-constant source and `op_sel_hi:[1,0,1]`, the two models in the repository (`tools/ffx_dispatch_aot.py` lines 175-181 and `tools/ffx_scratch_reference.py` lines 106-110) read the cleared bit as replicating the low half, so 10 would become `0x000a000a`, while a whole-word reading keeps `0x0000000a`. `tests/ffx_dispatch_aot_check.py` checks that form against the Python model only. I found no hardware readback in the repository that settles which one the hardware uses, so I'm not changing it. AI-assisted.
Leyukaka commented 2026-11-28 10:04:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T10:04:00Z.


Taking unsupported local DS opcode 31 (ds_write_b16, 1 program in my 882-request set at main 3f780716). That program also needs ds_read_u16_d16, so the PR covers the sub-dword DS stores and loads together.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7237648452 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7237648452). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T10:04:00Z. --- Taking `unsupported local DS opcode 31` (`ds_write_b16`, 1 program in my 882-request set at `main` `3f780716`). That program also needs `ds_read_u16_d16`, so the PR covers the sub-dword DS stores and loads together.
Leyukaka commented 2026-11-28 10:29:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T10:29:43Z.


Taking unsupported carry mask destination and unsupported wave32 conditional mask source (1 program each in my 882-request set at main 3926a289). Both are wave32 programs that use vcc_hi as an ordinary lane mask.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7237932401 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7237932401). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T10:29:43Z. --- Taking `unsupported carry mask destination` and `unsupported wave32 conditional mask source` (1 program each in my 882-request set at `main` `3926a289`). Both are wave32 programs that use `vcc_hi` as an ordinary lane mask.
Leyukaka commented 2026-11-28 10:49:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T10:49:14Z.


Taking unsupported typed 2D image atomic operands (2 programs in my 882-request set at main 3926a289): a 3D image_atomic_add and a 2D image_atomic_umax with an NSA address.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7238143105 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7238143105). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T10:49:14Z. --- Taking `unsupported typed 2D image atomic operands` (2 programs in my 882-request set at `main` `3926a289`): a 3D `image_atomic_add` and a 2D `image_atomic_umax` with an NSA address.
Leyukaka commented 2026-11-28 14:46:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T14:46:35Z.


Ranking from a 300 s start-up run (99e3ef0e, --suspend-others 0, see #3331). The runtime census lists 873 compute shaders with no translation in that run, 887,555 dispatches. Their first refusal on main f5a6f6ba (compile_dxil gfx1013-direct-cs@36 --requests), weighted by the run's dispatches:

First refusal on f5a6f6ba Shaders Dispatches
direct resource-heap load requires the selected GPU slot and its view type 330 325,210
compiles now 290 249,212
direct descriptor address outside bound table 117 194,890
unbound numeric SGPR 73 46,314
unsupported local DS opcode 166 (ds_read_u16_d16, in #3330) 2 35,159
numeric SCC from a symbolic descriptor field 2 15,032
direct global memory supports only DWORD loads with a scalar address pair 9 4,542
unimplemented direct SDWA operand profile 3 3,758
direct image opcode or descriptor modifiers 12 2,969
14 other refusals 35 10,469
  • Of the 290 that compile now, 166 stop at unsupported startup runtime manifest bindings in the same compile_dxil output. Runtime binding on f5a6f6ba is not measured here.
  • multi-wave64 exchange requires converged group control flow no longer appears in this set.

Top three runtime refusals of shaders that have a translation, same run:

Runtime refusal Shaders Dispatches
an output buffer descriptor is a view token 47 111,773
an input buffer view token's resource does not hold its range 5 64,368
an input view token is not a buffer view of a desktop resource 14 61,646
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7240922044 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7240922044). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T14:46:35Z. --- Ranking from a 300 s start-up run (`99e3ef0e`, `--suspend-others 0`, see #3331). The runtime census lists 873 compute shaders with no translation in that run, 887,555 dispatches. Their first refusal on `main` `f5a6f6ba` (`compile_dxil gfx1013-direct-cs@36 --requests`), weighted by the run's dispatches: | First refusal on `f5a6f6ba` | Shaders | Dispatches | |---|---|---| | direct resource-heap load requires the selected GPU slot and its view type | 330 | 325,210 | | compiles now | 290 | 249,212 | | direct descriptor address outside bound table | 117 | 194,890 | | unbound numeric SGPR | 73 | 46,314 | | unsupported local DS opcode 166 (`ds_read_u16_d16`, in #3330) | 2 | 35,159 | | numeric SCC from a symbolic descriptor field | 2 | 15,032 | | direct global memory supports only DWORD loads with a scalar address pair | 9 | 4,542 | | unimplemented direct SDWA operand profile | 3 | 3,758 | | direct image opcode or descriptor modifiers | 12 | 2,969 | | 14 other refusals | 35 | 10,469 | - Of the 290 that compile now, 166 stop at `unsupported startup runtime manifest bindings` in the same `compile_dxil` output. Runtime binding on `f5a6f6ba` is not measured here. - `multi-wave64 exchange requires converged group control flow` no longer appears in this set. Top three runtime refusals of shaders that have a translation, same run: | Runtime refusal | Shaders | Dispatches | |---|---|---| | an output buffer descriptor is a view token | 47 | 111,773 | | an input buffer view token's resource does not hold its range | 5 | 64,368 | | an input view token is not a buffer view of a desktop resource | 14 | 61,646 |
Leyukaka commented 2026-11-28 15:09:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T15:09:52Z.


Taking packed image addressing (3 programs, 1,017 dispatches; one of the 14 other refusals in my census above, first refusal on main f5a6f6ba). All three are 2D image_store with unorm, a16 and 32-bit data (dmask:0xf, no d16).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7241252887 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7241252887). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T15:09:52Z. --- Taking `packed image addressing` (3 programs, 1,017 dispatches; one of the 14 other refusals in my census above, first refusal on `main` `f5a6f6ba`). All three are 2D `image_store` with `unorm`, `a16` and 32-bit data (`dmask:0xf`, no `d16`).
tedin7 commented 2026-11-28 17:23:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-28T17:23:55Z.


Claiming two small slices as Draft PRs: gfx10 buffer FORMAT 47 (BUF_FMT_10_10_10_2_SSCALED) from a hardware descriptor, and VOPC DPP16 decode plus the v_cmp quad-swap lowering in the pixel path. AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7242985324 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7242985324). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-28T17:23:55Z. --- Claiming two small slices as Draft PRs: gfx10 buffer FORMAT 47 (BUF_FMT_10_10_10_2_SSCALED) from a hardware descriptor, and VOPC DPP16 decode plus the v_cmp quad-swap lowering in the pixel path. AI-assisted; commands listed were executed locally.
SimSalabimse commented 2026-11-28 17:31:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T17:31:09Z.


Taking UAV kind unknown: compute programs that compile but publish no runtime manifest because their binding kind is packed_d16_x_uav, and the two compute view kinds that have no name in view_kind_name.

Measured weight (counts only). One 900 s local start-up run of a retail title on the Windows test PC, runtime built from main aec2e08. The runtime census listed 1,026 compute shaders dispatched, 1,527,212 of their dispatches untranslated. I copied those requests and ran compile_dxil gfx1013-direct-cs@36 --requests from the same main on them (4 workers).

  • 402 compile, 184 of those publish a manifest, 218 compile without one.
  • 23 shaders (86,436 untranslated dispatches, 5.7% of the run's untranslated dispatches) are among the 218. Their reason is printed as unsupported startup runtime manifest bindings: UAV kind unknown.
  • view_kind_name (src/direct_compute_cache.cpp) stops at float3_texture_uav, so packed_d16_x_uav and indexed_raw_srv print as unknown. The kind comes from buffer_store_format with the D16 bit and one component (gfx1013_direct_compute.inl, packed_x). format_compute_runtime_manifest has no line for it. The in-process route already binds the kind (slot.packed_d16_x, native_buffer_store_view), so only the published route is missing.
  • As far as I can see nobody holds it: it is not in the claims on this issue, #2274 or #2413, and the open PRs I checked (#3305 half_scalar_uav, #3232, #3344) do not touch packed_d16_x_uav. #3248 is a draft integration stack that only adds the two names. Please correct me if I missed a claim.

Plan.

  1. Add packed_d16_x_uav and indexed_raw_srv to view_kind_name, so the reason names the kind.
  2. Publish a manifest line for packed_d16_x_uav and read it in d3d12_compute_dispatch.inl, next to bufhalf. The view stays checked with native_buffer_store_view, so a view whose format or element size does not match the store keeps its named refusal.
  3. Fixture, no game data: a source-built buffer_store_format D16 x program shaped like tests/startup_compute_half_buffer_uav_check.py. It runs compile_dxil --requests, checks the published <key>.txt line, dispatches through the stand-in on WARP and a hardware adapter, and compares the written halfwords with an independent reference. It also has negative controls: an R32_UINT view (two halfwords per element), a wrong stride, and a view with flags set must still refuse by name, and the unpublished case stays no translation.

I will state the compiler commit with every number, and post the before and after counts on the same kind of run.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7243078501 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7243078501). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-28T17:31:09Z. --- Taking `UAV kind unknown`: compute programs that compile but publish no runtime manifest because their binding kind is `packed_d16_x_uav`, and the two compute view kinds that have no name in `view_kind_name`. **Measured weight (counts only).** One 900 s local start-up run of a retail title on the Windows test PC, runtime built from `main` `aec2e08`. The runtime census listed 1,026 compute shaders dispatched, 1,527,212 of their dispatches untranslated. I copied those requests and ran `compile_dxil gfx1013-direct-cs@36 --requests` from the same `main` on them (4 workers). - 402 compile, 184 of those publish a manifest, 218 compile without one. - 23 shaders (86,436 untranslated dispatches, 5.7% of the run's untranslated dispatches) are among the 218. Their reason is printed as `unsupported startup runtime manifest bindings: UAV kind unknown`. - `view_kind_name` (`src/direct_compute_cache.cpp`) stops at `float3_texture_uav`, so `packed_d16_x_uav` and `indexed_raw_srv` print as `unknown`. The kind comes from `buffer_store_format` with the D16 bit and one component (`gfx1013_direct_compute.inl`, `packed_x`). `format_compute_runtime_manifest` has no line for it. The in-process route already binds the kind (`slot.packed_d16_x`, `native_buffer_store_view`), so only the published route is missing. - As far as I can see nobody holds it: it is not in the claims on this issue, #2274 or #2413, and the open PRs I checked (#3305 `half_scalar_uav`, #3232, #3344) do not touch `packed_d16_x_uav`. #3248 is a draft integration stack that only adds the two names. Please correct me if I missed a claim. **Plan.** 1. Add `packed_d16_x_uav` and `indexed_raw_srv` to `view_kind_name`, so the reason names the kind. 2. Publish a manifest line for `packed_d16_x_uav` and read it in `d3d12_compute_dispatch.inl`, next to `bufhalf`. The view stays checked with `native_buffer_store_view`, so a view whose format or element size does not match the store keeps its named refusal. 3. Fixture, no game data: a source-built `buffer_store_format` D16 x program shaped like `tests/startup_compute_half_buffer_uav_check.py`. It runs `compile_dxil --requests`, checks the published `<key>.txt` line, dispatches through the stand-in on WARP and a hardware adapter, and compares the written halfwords with an independent reference. It also has negative controls: an `R32_UINT` view (two halfwords per element), a wrong stride, and a view with flags set must still refuse by name, and the unpublished case stays `no translation`. I will state the compiler commit with every number, and post the before and after counts on the same kind of run. AI-Assisted
Leyukaka commented 2026-11-28 17:33:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T17:33:22Z.


Census from a 900 s run of main aec2e084 with manual input and thread holding off (-SuspendOthers 0, #3332). It goes further than the 300 s run in my census above. Compute dispatches in the run: 136,046 translated, 2,988,346 refused at runtime, 13,532,495 with no translation (878 shaders). First refusal of those 878 on main d418f70e (compile_dxil gfx1013-direct-cs@0 --requests; the native compiler is unchanged since f5a6f6ba), weighted by the run's dispatches:

First refusal Shaders Dispatches
direct resource-heap load requires the selected GPU slot and its view type 330 4,669,755
compiles now 290 3,510,253
direct descriptor address outside bound table 122 3,472,991
unbound numeric SGPR 73 694,293
unsupported local DS opcode 166 (ds_read_u16_d16, in #3330) 2 465,841
numeric SCC from a symbolic descriptor field 2 430,886
direct global memory supports only DWORD loads with a scalar address pair 13 70,978
unimplemented direct SDWA operand profile 3 51,856
direct image opcode or descriptor modifiers 12 29,193
15 other refusals 31 136,500

Of the 290 that compile, 166 get no runtime manifest; the largest gaps by dispatches: SRV kind typed_buffer_srv 112 shaders / 2,476,192, UAV kind indexed_atomic_uav 11 / 67,400, SRV kind d16_sample_srv 2d 1 / 64,499, UAV kind half_scalar_uav 19 / 51,451, SRV kind root_buffer_srv 10 / 47,110.

Largest runtime refusals of shaders that have a translation, same run:

Runtime refusal Shaders Dispatches
an output UAV interval is unaligned, oversized or outside its buffer 1 1,146,106
an input view token is not a buffer view of a desktop resource 14 831,790
an input buffer view token's resource does not hold its range 5 547,723
an output token's backing does not uniquely alias its guest byte interval 46 356,938
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7243107242 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7243107242). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T17:33:22Z. --- Census from a 900 s run of `main` `aec2e084` with manual input and thread holding off (`-SuspendOthers 0`, #3332). It goes further than the 300 s run in my census above. Compute dispatches in the run: 136,046 translated, 2,988,346 refused at runtime, 13,532,495 with no translation (878 shaders). First refusal of those 878 on `main` `d418f70e` (`compile_dxil gfx1013-direct-cs@0 --requests`; the native compiler is unchanged since `f5a6f6ba`), weighted by the run's dispatches: | First refusal | Shaders | Dispatches | |---|---|---| | direct resource-heap load requires the selected GPU slot and its view type | 330 | 4,669,755 | | compiles now | 290 | 3,510,253 | | direct descriptor address outside bound table | 122 | 3,472,991 | | unbound numeric SGPR | 73 | 694,293 | | unsupported local DS opcode 166 (`ds_read_u16_d16`, in #3330) | 2 | 465,841 | | numeric SCC from a symbolic descriptor field | 2 | 430,886 | | direct global memory supports only DWORD loads with a scalar address pair | 13 | 70,978 | | unimplemented direct SDWA operand profile | 3 | 51,856 | | direct image opcode or descriptor modifiers | 12 | 29,193 | | 15 other refusals | 31 | 136,500 | Of the 290 that compile, 166 get no runtime manifest; the largest gaps by dispatches: `SRV kind typed_buffer_srv` 112 shaders / 2,476,192, `UAV kind indexed_atomic_uav` 11 / 67,400, `SRV kind d16_sample_srv 2d` 1 / 64,499, `UAV kind half_scalar_uav` 19 / 51,451, `SRV kind root_buffer_srv` 10 / 47,110. Largest runtime refusals of shaders that have a translation, same run: | Runtime refusal | Shaders | Dispatches | |---|---|---| | an output UAV interval is unaligned, oversized or outside its buffer | 1 | 1,146,106 | | an input view token is not a buffer view of a desktop resource | 14 | 831,790 | | an input buffer view token's resource does not hold its range | 5 | 547,723 | | an output token's backing does not uniquely alias its guest byte interval | 46 | 356,938 |
Not-Saii commented 2026-11-28 17:40:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T17:40:37Z.


I'll take the largest runtime refusal in @Leyukaka's 900 s census: an output UAV interval is unaligned, oversized or outside its buffer. That is one shader with 1,146,106 dispatches, more than any other runtime refusal in that run.

It comes from the slot-19 output-token path added in #3094 (src/startup_stubs/d3d12_compute_dispatch.inl, about line 516 on main). One message covers six conditions:

  1. the view's byte count is zero;
  2. it is not a multiple of 4;
  3. it is over the 16 MiB cap;
  4. the offset is not 16-byte aligned;
  5. the offset is past the backing buffer;
  6. the interval runs past the buffer's end.

Plan. Same approach as #3229:

  1. Give each condition its own reason, with no change in what is accepted, and add a source-built fixture that triggers each one.
  2. Find which condition this shader hits in a local start-up run (counts only).
  3. If it's a limit the runtime can lift safely (for example the 16 MiB cap, or an alignment that a typed or structured view can satisfy), lift it in its own PR with a GPU readback test and a negative control. If it isn't, report why it stays refused.

@R0Y00, the cap and the alignment rule are from your #3094. If either one is deliberate beyond the raw-view requirement, I'd like to know before step 3.

Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7243200254 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7243200254). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T17:40:37Z. --- I'll take the largest runtime refusal in @Leyukaka's 900 s census: `an output UAV interval is unaligned, oversized or outside its buffer`. That is one shader with 1,146,106 dispatches, more than any other runtime refusal in that run. It comes from the slot-19 output-token path added in #3094 (`src/startup_stubs/d3d12_compute_dispatch.inl`, about line 516 on `main`). One message covers six conditions: 1. the view's byte count is zero; 2. it is not a multiple of 4; 3. it is over the 16 MiB cap; 4. the offset is not 16-byte aligned; 5. the offset is past the backing buffer; 6. the interval runs past the buffer's end. **Plan.** Same approach as #3229: 1. Give each condition its own reason, with no change in what is accepted, and add a source-built fixture that triggers each one. 2. Find which condition this shader hits in a local start-up run (counts only). 3. If it's a limit the runtime can lift safely (for example the 16 MiB cap, or an alignment that a typed or structured view can satisfy), lift it in its own PR with a GPU readback test and a negative control. If it isn't, report why it stays refused. @R0Y00, the cap and the alignment rule are from your #3094. If either one is deliberate beyond the raw-view requirement, I'd like to know before step 3. Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP. AI-assisted.
Leyukaka commented 2026-11-28 17:58:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T17:58:44Z.


Work list from the 900 s run in my comment above, by owner. Shaders with no translation: 878, 13,532,546 dispatches; first refusal on main d418f70e with compile_dxil <dxc dir> <cache> --jobs 8 gfx1013-direct-cs@0 --requests <request dir> <out dir> (entry 0, as the runtime compiles slot 67 requests). Runtime rows are shaders with a translation whose dispatches were refused, counted separately from the 878. Owners as of 17:56 UTC. Claim here with the part you take and your environment.

No open PR

Refusal Shaders Dispatches Note
runtime: an input view token is not a buffer view of a desktop resource 14 831,790
unbound numeric SGPR 73 694,293 Not-Saii's claim delivered 12 heap-base shapes in #3253
runtime: an input buffer view token's resource does not hold its range 5 547,723
numeric SCC from a symbolic descriptor field 2 430,886 earlier claims merged as #3227, #3301
runtime: an output token's backing does not uniquely alias its guest byte interval 46 356,938 next to the output-interval refusal Not-Saii claimed (same path)
no runtime manifest: UAV kind indexed_atomic_uav 11 67,400 in Not-Saii's no-manifest bucket claim
no runtime manifest: SRV kind d16_sample_srv 2d 1 64,499
no runtime manifest: SRV kind root_buffer_srv 10 47,110 in Not-Saii's no-manifest bucket claim
no runtime manifest: UAV kind typed_buffer_uav 7 23,555
symbolic scalar memory destination overlaps wave64 VCC 4 18,140
unsupported local DS opcode 62 (ds_append) 2 9,422
partial final wave in multi-wave group 2 9,070

Owned or in an open PR

Refusal Shaders Dispatches Owner
direct resource-heap load requires the selected GPU slot and its view type 330 4,669,755 JB2WIN #3023 / #3063, RonLogic #3232
direct descriptor address outside bound table 122 3,472,991 tedin7 #3221
no runtime manifest: SRV kind typed_buffer_srv 112 2,476,192 Not-Saii (claim here)
runtime: an output UAV interval is unaligned, oversized or outside its buffer 1 1,146,106 Not-Saii (claim here)
unsupported local DS opcode 166 (ds_read_u16_d16) 2 465,841 Leyukaka #3330
direct global memory supports only DWORD loads with a scalar address pair 13 70,978 SimSalabimse #3333
unimplemented direct SDWA operand profile 3 51,856 romn4rch #3339, R0D4X #3125 (partial)
no runtime manifest: UAV kind half_scalar_uav 19 51,451 RonLogic #3305
no runtime manifest: UAV kind unknown 5 42,404 SimSalabimse (claim here)
direct image opcode or descriptor modifiers 12 29,193 Leyukaka #3319 (partial)
packed image addressing 3 14,133 Leyukaka #3372

Counts are per shader at its first refusal; a shader may stop at another refusal once this one is lifted. Rows with no runtime manifest are shaders that compile but get no runtime manifest.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7243433784 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7243433784). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T17:58:44Z. --- Work list from the 900 s run in my comment above, by owner. Shaders with no translation: 878, 13,532,546 dispatches; first refusal on `main` `d418f70e` with `compile_dxil <dxc dir> <cache> --jobs 8 gfx1013-direct-cs@0 --requests <request dir> <out dir>` (entry 0, as the runtime compiles slot 67 requests). Runtime rows are shaders with a translation whose dispatches were refused, counted separately from the 878. Owners as of 17:56 UTC. Claim here with the part you take and your environment. ### No open PR | Refusal | Shaders | Dispatches | Note | |---|---|---|---| | runtime: `an input view token is not a buffer view of a desktop resource` | 14 | 831,790 | | | `unbound numeric SGPR` | 73 | 694,293 | Not-Saii's claim delivered 12 heap-base shapes in #3253 | | runtime: `an input buffer view token's resource does not hold its range` | 5 | 547,723 | | | `numeric SCC from a symbolic descriptor field` | 2 | 430,886 | earlier claims merged as #3227, #3301 | | runtime: `an output token's backing does not uniquely alias its guest byte interval` | 46 | 356,938 | next to the output-interval refusal Not-Saii claimed (same path) | | no runtime manifest: `UAV kind indexed_atomic_uav` | 11 | 67,400 | in Not-Saii's no-manifest bucket claim | | no runtime manifest: `SRV kind d16_sample_srv 2d` | 1 | 64,499 | | | no runtime manifest: `SRV kind root_buffer_srv` | 10 | 47,110 | in Not-Saii's no-manifest bucket claim | | no runtime manifest: `UAV kind typed_buffer_uav` | 7 | 23,555 | | | `symbolic scalar memory destination overlaps wave64 VCC` | 4 | 18,140 | | | `unsupported local DS opcode 62` (`ds_append`) | 2 | 9,422 | | | `partial final wave in multi-wave group` | 2 | 9,070 | | ### Owned or in an open PR | Refusal | Shaders | Dispatches | Owner | |---|---|---|---| | `direct resource-heap load requires the selected GPU slot and its view type` | 330 | 4,669,755 | JB2WIN #3023 / #3063, RonLogic #3232 | | `direct descriptor address outside bound table` | 122 | 3,472,991 | tedin7 #3221 | | no runtime manifest: `SRV kind typed_buffer_srv` | 112 | 2,476,192 | Not-Saii (claim here) | | runtime: `an output UAV interval is unaligned, oversized or outside its buffer` | 1 | 1,146,106 | Not-Saii (claim here) | | `unsupported local DS opcode 166` (`ds_read_u16_d16`) | 2 | 465,841 | Leyukaka #3330 | | `direct global memory supports only DWORD loads with a scalar address pair` | 13 | 70,978 | SimSalabimse #3333 | | `unimplemented direct SDWA operand profile` | 3 | 51,856 | romn4rch #3339, R0D4X #3125 (partial) | | no runtime manifest: `UAV kind half_scalar_uav` | 19 | 51,451 | RonLogic #3305 | | no runtime manifest: `UAV kind unknown` | 5 | 42,404 | SimSalabimse (claim here) | | `direct image opcode or descriptor modifiers` | 12 | 29,193 | Leyukaka #3319 (partial) | | `packed image addressing` | 3 | 14,133 | Leyukaka #3372 | Counts are per shader at its first refusal; a shader may stop at another refusal once this one is lifted. Rows with no runtime manifest are shaders that compile but get no runtime manifest.
Not-Saii commented 2026-11-28 18:06:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T18:06:26Z.


Step 3 of my no-manifest claim is up as #3386: srv <i> typed table <param> <byte> bytes <n> in the C++ compute manifest. The stand-in binds it as a UINT buffer view when the title's components are 32-bit UINT, SINT or FLOAT, from either a hardware descriptor or a slot 18 typed buffer view token. Other formats are refused by name.

Correction to my step 2 comment: I described typed_buffer_srv as buffer_load_format_* / tbuffer_load_format_*. Only MUBUF buffer_load_format_x to _xyzw produce it. The direct compiler reads tbuffer_load_format_* through raw views.

How many of the 112 typed-buffer programs in Leyukaka's census have a 32-bit FORMAT is not measured yet. I'll re-measure once this is reviewed.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7243534823 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7243534823). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T18:06:26Z. --- Step 3 of my no-manifest claim is up as #3386: `srv <i> typed table <param> <byte> bytes <n>` in the C++ compute manifest. The stand-in binds it as a UINT buffer view when the title's components are 32-bit UINT, SINT or FLOAT, from either a hardware descriptor or a slot 18 typed buffer view token. Other formats are refused by name. Correction to my step 2 comment: I described `typed_buffer_srv` as `buffer_load_format_*` / `tbuffer_load_format_*`. Only MUBUF `buffer_load_format_x` to `_xyzw` produce it. The direct compiler reads `tbuffer_load_format_*` through raw views. How many of the 112 typed-buffer programs in Leyukaka's census have a 32-bit FORMAT is not measured yet. I'll re-measure once this is reviewed. AI-assisted.
Leyukaka commented 2026-11-28 18:22:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T18:22:22Z.


Taking symbolic scalar memory destination overlaps wave64 VCC from the work list above (4 shaders, 18,140 dispatches in the 900 s run): wave64 table and heap-offset descriptor loads whose destination reaches s106/s107. It reuses the VCC-as-scalar-temporary rules of #3329, so it will go into #3329.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7243740150 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7243740150). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T18:22:22Z. --- Taking `symbolic scalar memory destination overlaps wave64 VCC` from the work list above (4 shaders, 18,140 dispatches in the 900 s run): wave64 table and heap-offset descriptor loads whose destination reaches s106/s107. It reuses the VCC-as-scalar-temporary rules of #3329, so it will go into #3329.
Not-Saii commented 2026-11-28 18:30:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T18:30:27Z.


Step 2 of my output-interval claim (step 1 is #3387). The shader hits an output UAV interval is over 16 MiB, but lifting the cap alone probably won't translate it, because its backing is a copied placement.

Run. One 900 s local start-up run of #3387's build (61bdb434 on main d418f70e), Release, RTX 4090 (driver 32.0.16.1088), Windows 11 build 26300, -SuspendOthers 0. Published translations only (native compiler off). Counts only:

  • Compute dispatches: 40,713 translated, 1,976,608 refused at runtime, 8,589,139 with no translation.
  • One shader stops at an output UAV interval is over 16 MiB: 739,060 dispatches, 0 translated. It first appears about 130 s into the run. Leyukaka's 1,146,106 comes from a different run with different input, so the two counts aren't directly comparable.
  • No shader stops at the other five interval reasons.

The view (from the once-per-key x2w-draw compute UAV line, i.e. the key's first refused dispatch):

Field Value
Kind typed buffer UAV (no flags, stride 0), format 12 = R16G16B16A16_UINT, 8-byte elements
Range first element 0, 3,145,728 elements = 25,165,824 bytes (24 MiB)
Backing buffer, 25,165,824 bytes, unordered access, no counter
Fit offset 0, bytes = backing width: the view covers the whole buffer
Placement copied_buffer (the guest memory has a placed resource, but the desktop cannot alias it)

So the view passes the other five interval checks and fails only the cap.

Why the cap isn't the real limit. The stand-in binds a token output as an R32_TYPELESS raw view of bytes / 4 elements, here 6,291,456. That is well under D3D12's 2^27 buffer elements, and I found no other use of token.bytes that depends on 16 MiB. The next check, though, is the copied-placement rule (compute_token_output): a token output must alias its guest byte interval unless X2W_COPIED_OBJECT_UAV is on and the view is a whole copy. This view is a whole copy, so with the cap lifted it would most likely stop at an output token's backing does not uniquely alias its guest byte interval. That is a prediction from the code and from dispatch-uav-token-copied, not a measurement.

In the same run, 24 other shaders already stop at that reason. All 24 are whole views of copied placements: 11 raw, 8 R32_UINT, 4 structured (stride 4 or 8) and 1 R8_UINT.

Question for @R0Y00. Is the X2W_COPIED_OBJECT_UAV opt-in deliberate because a copied backing doesn't show GPU writes to the title's CPU? If whole-copy token outputs could be bound by default, this shader and those 24 would get past this point. I'd also lift the 16 MiB cap on the token path then, with a GPU readback test above 16 MiB. If the opt-in stays, I'll leave the cap as it is, since lifting it changes nothing by default.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7243841819 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7243841819). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T18:30:27Z. --- Step 2 of my output-interval claim (step 1 is #3387). The shader hits **`an output UAV interval is over 16 MiB`**, but lifting the cap alone probably won't translate it, because its backing is a copied placement. **Run.** One 900 s local start-up run of #3387's build (`61bdb434` on `main` `d418f70e`), Release, RTX 4090 (driver 32.0.16.1088), Windows 11 build 26300, `-SuspendOthers 0`. Published translations only (native compiler off). Counts only: - Compute dispatches: 40,713 translated, 1,976,608 refused at runtime, 8,589,139 with no translation. - One shader stops at `an output UAV interval is over 16 MiB`: 739,060 dispatches, 0 translated. It first appears about 130 s into the run. Leyukaka's 1,146,106 comes from a different run with different input, so the two counts aren't directly comparable. - No shader stops at the other five interval reasons. **The view** (from the once-per-key `x2w-draw compute UAV` line, i.e. the key's first refused dispatch): | Field | Value | |---|---| | Kind | typed buffer UAV (no flags, stride 0), format 12 = `R16G16B16A16_UINT`, 8-byte elements | | Range | first element 0, 3,145,728 elements = 25,165,824 bytes (24 MiB) | | Backing | buffer, 25,165,824 bytes, unordered access, no counter | | Fit | offset 0, bytes = backing width: the view covers the whole buffer | | Placement | `copied_buffer` (the guest memory has a placed resource, but the desktop cannot alias it) | So the view passes the other five interval checks and fails only the cap. **Why the cap isn't the real limit.** The stand-in binds a token output as an `R32_TYPELESS` raw view of `bytes / 4` elements, here 6,291,456. That is well under D3D12's 2^27 buffer elements, and I found no other use of `token.bytes` that depends on 16 MiB. The next check, though, is the copied-placement rule (`compute_token_output`): a token output must alias its guest byte interval unless `X2W_COPIED_OBJECT_UAV` is on and the view is a whole copy. This view is a whole copy, so with the cap lifted it would most likely stop at `an output token's backing does not uniquely alias its guest byte interval`. That is a prediction from the code and from `dispatch-uav-token-copied`, not a measurement. In the same run, 24 other shaders already stop at that reason. All 24 are whole views of copied placements: 11 raw, 8 `R32_UINT`, 4 structured (stride 4 or 8) and 1 `R8_UINT`. **Question for @R0Y00.** Is the `X2W_COPIED_OBJECT_UAV` opt-in deliberate because a copied backing doesn't show GPU writes to the title's CPU? If whole-copy token outputs could be bound by default, this shader and those 24 would get past this point. I'd also lift the 16 MiB cap on the token path then, with a GPU readback test above 16 MiB. If the opt-in stays, I'll leave the cap as it is, since lifting it changes nothing by default. AI-assisted.
SimSalabimse commented 2026-11-28 18:52:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T18:52:02Z.


I'll take the top runtime refusal under "No open PR" in @Leyukaka's work list above: an input view token is not a buffer view of a desktop resource (14 shaders, 831,790 dispatches in the 900 s run on main d418f70e).

Plan:

  1. Name the condition. For each refused input token, log once per key what the token actually resolves to: a non-buffer view, a placed or GPU-copied resource, or a token with no backing desktop resource.
  2. Bind the shape(s) that can be proven safe as a desktop buffer view. Every other shape gets a named refusal instead of the shared one.
  3. Add a source-built fixture with negative controls. No title data.

I'll run tests on a Windows test PC (RTX 4070 Ti, Windows 11 25H2). Linux checks will run on CI.

Not taking an input buffer view token's resource does not hold its range (5 shaders, 547,723) unless step 1 shows it's the same path, in which case I'll say so here first.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7244112958 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7244112958). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-28T18:52:02Z. --- I'll take the top runtime refusal under "No open PR" in @Leyukaka's work list above: `an input view token is not a buffer view of a desktop resource` (14 shaders, 831,790 dispatches in the 900 s run on `main` `d418f70e`). Plan: 1. Name the condition. For each refused input token, log once per key what the token actually resolves to: a non-buffer view, a placed or GPU-copied resource, or a token with no backing desktop resource. 2. Bind the shape(s) that can be proven safe as a desktop buffer view. Every other shape gets a named refusal instead of the shared one. 3. Add a source-built fixture with negative controls. No title data. I'll run tests on a Windows test PC (RTX 4070 Ti, Windows 11 25H2). Linux checks will run on CI. Not taking `an input buffer view token's resource does not hold its range` (5 shaders, 547,723) unless step 1 shows it's the same path, in which case I'll say so here first. AI-Assisted
Not-Saii commented 2026-11-28 18:54:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T18:54:39Z.


I ran the full Windows workflow on #3386's branch (head 4a2720e0, on main 6685de7c). Three tests failed, and all three are already on main, independent of #3386. Every commit involved is in d418f70e, and #3386 touches none of these paths.

  • startup_compute_half_buffer_uav_controls (#3302, @RonLogic): the 1-channel D16 store no longer gets a manifest, and compile_dxil prints no_manifest ... UAV kind unknown. Since #3091 (94d2803f), a single-component D16 store compiles to packed_d16_x_uav, and format_compute_runtime_manifest has no line for that kind. The 2- and 4-channel cases still publish bufhalf. This sits in the packed_d16_x_uav part of #3224 (@SimSalabimse). The word "unknown" is mine: #3268's kind-name table predates packed_d16_x_uav and indexed_raw_srv, and I'll add both names.
  • startup_compute_dispatch_output_warp (my #3229 test): the dispatch-output-texture-token case expects an output buffer descriptor is a view token. Since #3094 (71844ba0), the output-token path refuses that slot-18 texture token earlier, with an output token does not identify a slot-19 UAV. That is still a refusal of the same input, so I'd update the expectation unless the earlier message is meant to stay.
  • shader_compile_lds_request_cli_check: the runner's 8.3 temp path (RUNNER~1 against runneradmin), as already noted in #3352.

Upstream's own full run on main (f2972840, run 46174243424) was still in progress when I checked; the full runs on d418f70e and 6685de7c were cancelled before the Windows job finished. So this attribution comes from the code and commit ancestry, not from a completed main run.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7244145927 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7244145927). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T18:54:39Z. --- I ran the full Windows workflow on #3386's branch (head `4a2720e0`, on `main` `6685de7c`). Three tests failed, and all three are already on `main`, independent of #3386. Every commit involved is in `d418f70e`, and #3386 touches none of these paths. - **`startup_compute_half_buffer_uav_controls`** (#3302, @RonLogic): the 1-channel D16 store no longer gets a manifest, and `compile_dxil` prints `no_manifest ... UAV kind unknown`. Since #3091 (`94d2803f`), a single-component D16 store compiles to `packed_d16_x_uav`, and `format_compute_runtime_manifest` has no line for that kind. The 2- and 4-channel cases still publish `bufhalf`. This sits in the `packed_d16_x_uav` part of #3224 (@SimSalabimse). The word "unknown" is mine: #3268's kind-name table predates `packed_d16_x_uav` and `indexed_raw_srv`, and I'll add both names. - **`startup_compute_dispatch_output_warp`** (my #3229 test): the `dispatch-output-texture-token` case expects `an output buffer descriptor is a view token`. Since #3094 (`71844ba0`), the output-token path refuses that slot-18 texture token earlier, with `an output token does not identify a slot-19 UAV`. That is still a refusal of the same input, so I'd update the expectation unless the earlier message is meant to stay. - **`shader_compile_lds_request_cli_check`:** the runner's 8.3 temp path (`RUNNER~1` against `runneradmin`), as already noted in #3352. Upstream's own full run on `main` (`f2972840`, run 46174243424) was still in progress when I checked; the full runs on `d418f70e` and `6685de7c` were cancelled before the Windows job finished. So this attribution comes from the code and commit ancestry, not from a completed `main` run. AI-assisted.
Not-Saii commented 2026-11-28 19:18:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T19:18:54Z.


I'll take UAV kind typed_buffer_uav, the next manifest gap after #3386. In @Leyukaka's measurement of #3386 on the 900 s census requests, 32 programs and 2,001,657 dispatches move from SRV kind typed_buffer_srv to this refusal. That makes it the largest remaining "compiles, but no runtime manifest" reason.

Plan.

  1. Add a typed_buffer_uav line to format_compute_runtime_manifest (src/direct_compute_cache.cpp) and bind it in the published-route reader (src/startup_stubs/d3d12_compute_dispatch.inl) as a typed buffer UAV. The binding will:
    • check the format against the descriptor;
    • follow the existing output rules (aliased placement and the #3229 reasons);
    • reuse what #3302 does for D16 buffer stores and what #3386 does for typed SRVs, instead of adding a parallel path.
  2. Test with a source-built fixture through compile_dxil → <key>.txt → stand-in dispatch, read back on WARP and hardware, plus a negative control for a mismatched format and a revert control. The PR states whether it stacks on #3386 or targets main on its own.
  3. Re-measure these 32 programs, counts only, with the SHAs stated, and report which publish and which reach a translated Dispatch.

Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7244451588 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7244451588). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T19:18:54Z. --- I'll take `UAV kind typed_buffer_uav`, the next manifest gap after #3386. In @Leyukaka's measurement of #3386 on the 900 s census requests, 32 programs and 2,001,657 dispatches move from `SRV kind typed_buffer_srv` to this refusal. That makes it the largest remaining "compiles, but no runtime manifest" reason. **Plan.** 1. Add a `typed_buffer_uav` line to `format_compute_runtime_manifest` (`src/direct_compute_cache.cpp`) and bind it in the published-route reader (`src/startup_stubs/d3d12_compute_dispatch.inl`) as a typed buffer UAV. The binding will: - check the format against the descriptor; - follow the existing output rules (aliased placement and the #3229 reasons); - reuse what #3302 does for D16 buffer stores and what #3386 does for typed SRVs, instead of adding a parallel path. 2. Test with a source-built fixture through `compile_dxil` → `<key>.txt` → stand-in dispatch, read back on WARP and hardware, plus a negative control for a mismatched format and a revert control. The PR states whether it stacks on #3386 or targets `main` on its own. 3. Re-measure these 32 programs, counts only, with the SHAs stated, and report which publish and which reach a translated Dispatch. Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP. AI-assisted.
JB2WIN commented 2026-11-28 19:29:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-28T19:29:25Z.


Taking the runtime refusal an input buffer view token's resource does not hold its range from @Leyukaka's work list (5 shaders, 547,723 dispatches in the 900 s run on main d418f70e).

It comes from src/startup_stubs/d3d12_draw.inl (if (owner && owner != placed.owner)): the token names a resource, but placed_buffer_range resolves the same address to a different placed buffer, or to none. My unproven guess is aliased placed buffers in one heap, where the token's own resource covers the range and the index returns another one.

Plan:

  1. Split the message by case (no placed owner at the address, a different owner that also covers the range, a different owner while the token's resource does not cover it), no change in what is accepted, with a source-built fixture for each case.
  2. Count which case these shaders hit in a local start-up run (counts only).
  3. If the token's own resource holds the whole range, bind that resource instead, in its own PR with a GPU readback test and a negative control. Otherwise report why it stays refused.

Environment: Windows 11 build 26200, NVIDIA GeForce RTX 3080 (driver 32.0.16.2124), plus WARP.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7244582760 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7244582760). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-28T19:29:25Z. --- Taking the runtime refusal `an input buffer view token's resource does not hold its range` from @Leyukaka's work list (5 shaders, 547,723 dispatches in the 900 s run on `main` `d418f70e`). It comes from `src/startup_stubs/d3d12_draw.inl` (`if (owner && owner != placed.owner)`): the token names a resource, but `placed_buffer_range` resolves the same address to a different placed buffer, or to none. My unproven guess is aliased placed buffers in one heap, where the token's own resource covers the range and the index returns another one. Plan: 1. Split the message by case (no placed owner at the address, a different owner that also covers the range, a different owner while the token's resource does not cover it), no change in what is accepted, with a source-built fixture for each case. 2. Count which case these shaders hit in a local start-up run (counts only). 3. If the token's own resource holds the whole range, bind that resource instead, in its own PR with a GPU readback test and a negative control. Otherwise report why it stays refused. Environment: Windows 11 build 26200, NVIDIA GeForce RTX 3080 (driver 32.0.16.2124), plus WARP. AI-assisted.
Not-Saii commented 2026-11-28 20:09:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T20:09:32Z.


Re-measure for my typed_buffer_uav claim. #3397 is open and stacked on #3386. Counts only.

Setup

  • Inputs: the 878 compute requests of my run-70 cohort. The 112 programs at SRV kind typed_buffer_srv and their moves under #3386 match @Leyukaka's table on #3386 program for program (22 / 32 / 33 / 17 / 4 / 4), so this appears to be the same request set. The weights here are run 70's untranslated dispatches (4,348,550 for the cohort), not those of the 900 s census, so the dispatch columns don't compare with Leyukaka's.
  • Command: compile_dxil <Windows SDK 10.0.26100 x64 bin> <frontend cache> --jobs 8 gfx1013-direct-cs@36 --requests <878 requests> <output>, a Release build at each point:
    • main d418f70e;
    • #3386 at 4a2720e0, on d418f70e;
    • #3397 at 3d93cffa, which is #3386 plus 4598d597 and 3d93cffa.
  • All three give 286 compiled and 592 refused. Only manifest states differ. Reasons are read from the no_manifest lines of --requests.
Manifest state of the 286 compiled programs main #3386 #3397
manifest published 125 / 239,004 147 / 293,412 182 / 994,928
SRV kind typed_buffer_srv 112 / 857,037 0 0
UAV kind typed_buffer_uav 7 / 7,859 39 / 706,249 0
UAV kind indexed_atomic_uav 11 / 20,055 28 / 61,245 28 / 61,245
SRV kind comparison_texture_srv 2d 0 33 / 52,008 33 / 52,008
UAV kind unknown (packed_d16_x_uav, named by #3395) 5 / 14,190 9 / 20,493 12 / 23,650
UAV kind half_scalar_uav 19 / 16,301 23 / 21,039 23 / 21,039
other (d16_sample_srv 2d, root_buffer_srv, more than 8 UAVs) 7 / 27,033 7 / 27,033 8 / 28,609

Cells are programs / run-70 untranslated dispatches.

#3386 → #3397: all 39 programs at UAV kind typed_buffer_uav move:

  • 35 programs and 701,516 dispatches publish a manifest;
  • 3 programs (3,157 dispatches) stop at packed_d16_x_uav;
  • 1 program (1,576 dispatches) stops at more than 8 UAVs.

Not measured: whether the 35 bind at Dispatch, and whether any of them reach a translated Dispatch. At run time a typed output also needs a 32-bit FORMAT of the stored width and typed UAV store support, and a published manifest can still stop at an input check such as #2860 / #2862. That needs a start-up run. Nothing here checks that the output values are correct.

Environment: Windows 11 build 26300, Windows SDK 10.0.26100, MSVC Release.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7245078400 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7245078400). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T20:09:32Z. --- Re-measure for my `typed_buffer_uav` claim. #3397 is open and stacked on #3386. Counts only. **Setup** - Inputs: the 878 compute requests of my run-70 cohort. The 112 programs at `SRV kind typed_buffer_srv` and their moves under #3386 match @Leyukaka's table on #3386 program for program (22 / 32 / 33 / 17 / 4 / 4), so this appears to be the same request set. The weights here are run 70's untranslated dispatches (4,348,550 for the cohort), not those of the 900 s census, so the dispatch columns don't compare with Leyukaka's. - Command: `compile_dxil <Windows SDK 10.0.26100 x64 bin> <frontend cache> --jobs 8 gfx1013-direct-cs@36 --requests <878 requests> <output>`, a Release build at each point: - `main` `d418f70e`; - #3386 at `4a2720e0`, on `d418f70e`; - #3397 at `3d93cffa`, which is #3386 plus `4598d597` and `3d93cffa`. - All three give 286 compiled and 592 refused. Only manifest states differ. Reasons are read from the `no_manifest` lines of `--requests`. | Manifest state of the 286 compiled programs | `main` | #3386 | #3397 | |---|---:|---:|---:| | manifest published | 125 / 239,004 | 147 / 293,412 | **182 / 994,928** | | `SRV kind typed_buffer_srv` | 112 / 857,037 | 0 | 0 | | `UAV kind typed_buffer_uav` | 7 / 7,859 | 39 / 706,249 | 0 | | `UAV kind indexed_atomic_uav` | 11 / 20,055 | 28 / 61,245 | 28 / 61,245 | | `SRV kind comparison_texture_srv 2d` | 0 | 33 / 52,008 | 33 / 52,008 | | `UAV kind unknown` (`packed_d16_x_uav`, named by #3395) | 5 / 14,190 | 9 / 20,493 | 12 / 23,650 | | `UAV kind half_scalar_uav` | 19 / 16,301 | 23 / 21,039 | 23 / 21,039 | | other (`d16_sample_srv 2d`, `root_buffer_srv`, `more than 8 UAVs`) | 7 / 27,033 | 7 / 27,033 | 8 / 28,609 | Cells are programs / run-70 untranslated dispatches. **#3386 → #3397:** all 39 programs at `UAV kind typed_buffer_uav` move: - 35 programs and 701,516 dispatches publish a manifest; - 3 programs (3,157 dispatches) stop at `packed_d16_x_uav`; - 1 program (1,576 dispatches) stops at `more than 8 UAVs`. **Not measured:** whether the 35 bind at Dispatch, and whether any of them reach a translated Dispatch. At run time a typed output also needs a 32-bit FORMAT of the stored width and typed UAV store support, and a published manifest can still stop at an input check such as #2860 / #2862. That needs a start-up run. Nothing here checks that the output values are correct. Environment: Windows 11 build 26300, Windows SDK 10.0.26100, MSVC Release. AI-assisted.
SimSalabimse commented 2026-11-28 20:10:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T20:10:19Z.


@Not-Saii Heads up: #3389 already adds packed_d16_x_uav and indexed_raw_srv to the kind-name table. It also fixes startup_compute_half_buffer_uav_controls, because the one-component D16 store goes back to half_buffer_uav/bufhalf. On a Windows test PC, half_buffer_uav_*, store_d16_x_* and the new packed_d16_x_uav_* tests pass 30/30. That might save you doing the same change in #3386.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7245088137 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7245088137). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-28T20:10:19Z. --- @Not-Saii Heads up: #3389 already adds `packed_d16_x_uav` and `indexed_raw_srv` to the kind-name table. It also fixes `startup_compute_half_buffer_uav_controls`, because the one-component D16 store goes back to `half_buffer_uav`/`bufhalf`. On a Windows test PC, `half_buffer_uav_*`, `store_d16_x_*` and the new `packed_d16_x_uav_*` tests pass 30/30. That might save you doing the same change in #3386. AI-Assisted
Leyukaka commented 2026-11-28 21:19:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T21:19:17Z.


Census from a 600 s start-up run of main 8ecd30fe (scripted A presses from 120 s, -SuspendOthers 0), with one local change: the refusal an input view token is not a buffer view of a desktop resource split into one reason per case (diagnostic only, not proposed). Counts only.

Compute dispatches: 69,244 translated, 1,505,083 refused at runtime, 6,610,256 with no translation (882 shaders).

No translation, first refusal with compile_dxil --jobs 8 gfx1013-direct-cs@0 --requests on main 8ecd30fe (292 of the 882 compile; 126 get a runtime manifest), largest reasons:

Refusal Shaders Dispatches
direct resource-heap load requires the selected GPU slot and its view type 333 2,271,524
direct descriptor address outside bound table 118 1,678,327
compiled, no runtime manifest: SRV kind typed_buffer_srv 112 1,262,107
unbound numeric SGPR 76 329,738
unsupported local DS opcode 166 2 237,690
numeric SCC from a symbolic descriptor field 2 203,617
direct global memory supports only DWORD loads with a scalar address pair 13 33,569
compiled, no runtime manifest: UAV kind indexed_atomic_uav 11 31,144
compiled, no runtime manifest: SRV kind d16_sample_srv 2d 1 30,201
unimplemented direct SDWA operand profile 3 24,469
compiled, no runtime manifest: UAV kind half_scalar_uav 19 24,326

Refused at runtime (shaders with a translation):

Reason Shaders Dispatches
an output UAV interval is over 16 MiB 1 592,749
an input view token is not a buffer view of a desktop resource 14 425,964
an input buffer view token's resource does not hold its range 5 270,312
an output token's backing does not uniquely alias its guest byte interval 46 168,128

@SimSalabimse, for the input view token refusal you took: with the split, all 14 shaders stop at the same case. The token's view record is a slot 19 (unordered access) record, so a UAV token is bound where the program reads an input buffer (indirect_table_buffer, src/startup_stubs/d3d12_draw.inl:2566, the else branch).

Not comparable one to one with the 900 s census above: this run is shorter and uses scripted input instead of manual input.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7245932683 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7245932683). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T21:19:17Z. --- Census from a 600 s start-up run of `main` `8ecd30fe` (scripted A presses from 120 s, `-SuspendOthers 0`), with one local change: the refusal `an input view token is not a buffer view of a desktop resource` split into one reason per case (diagnostic only, not proposed). Counts only. Compute dispatches: 69,244 translated, 1,505,083 refused at runtime, 6,610,256 with no translation (882 shaders). **No translation**, first refusal with `compile_dxil --jobs 8 gfx1013-direct-cs@0 --requests` on `main` `8ecd30fe` (292 of the 882 compile; 126 get a runtime manifest), largest reasons: | Refusal | Shaders | Dispatches | |---|---|---| | `direct resource-heap load requires the selected GPU slot and its view type` | 333 | 2,271,524 | | `direct descriptor address outside bound table` | 118 | 1,678,327 | | compiled, no runtime manifest: `SRV kind typed_buffer_srv` | 112 | 1,262,107 | | `unbound numeric SGPR` | 76 | 329,738 | | `unsupported local DS opcode 166` | 2 | 237,690 | | `numeric SCC from a symbolic descriptor field` | 2 | 203,617 | | `direct global memory supports only DWORD loads with a scalar address pair` | 13 | 33,569 | | compiled, no runtime manifest: `UAV kind indexed_atomic_uav` | 11 | 31,144 | | compiled, no runtime manifest: `SRV kind d16_sample_srv 2d` | 1 | 30,201 | | `unimplemented direct SDWA operand profile` | 3 | 24,469 | | compiled, no runtime manifest: `UAV kind half_scalar_uav` | 19 | 24,326 | **Refused at runtime** (shaders with a translation): | Reason | Shaders | Dispatches | |---|---|---| | `an output UAV interval is over 16 MiB` | 1 | 592,749 | | `an input view token is not a buffer view of a desktop resource` | 14 | 425,964 | | `an input buffer view token's resource does not hold its range` | 5 | 270,312 | | `an output token's backing does not uniquely alias its guest byte interval` | 46 | 168,128 | @SimSalabimse, for the input view token refusal you took: with the split, all 14 shaders stop at the same case. The token's view record is a slot 19 (unordered access) record, so a UAV token is bound where the program reads an input buffer (`indirect_table_buffer`, `src/startup_stubs/d3d12_draw.inl:2566`, the `else` branch). Not comparable one to one with the 900 s census above: this run is shorter and uses scripted input instead of manual input.
JB2WIN commented 2026-11-29 14:24:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-29T14:24:57Z.


I'll take the runtime refusal an output UAV interval is over 16 MiB from the census above (1 shader, 592,749 dispatches). The slot-19 output token path binds the title's buffer directly as a raw UAV (record_translated_dispatch, the CreateUnorderedAccessView with R32_TYPELESS), with no copy, so the 16 MiB cap from the snapshot copies does not apply there. Plan: the same change #2477 made for raw input views: cap at the D3D12 raw view limit (4 << D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP bytes) with its own reason, and turn the large control of startup_compute_token_interval_check.py into a bound case. @Not-Saii, this is your interval code (89b1a3a2). If the 16 MiB has a reason I'm missing, say so and I'll drop it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7257285259 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7257285259). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-29T14:24:57Z. --- I'll take the runtime refusal `an output UAV interval is over 16 MiB` from the census above (1 shader, 592,749 dispatches). The slot-19 output token path binds the title's buffer directly as a raw UAV (`record_translated_dispatch`, the `CreateUnorderedAccessView` with `R32_TYPELESS`), with no copy, so the 16 MiB cap from the snapshot copies does not apply there. Plan: the same change #2477 made for raw input views: cap at the D3D12 raw view limit (`4 << D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP` bytes) with its own reason, and turn the `large` control of `startup_compute_token_interval_check.py` into a bound case. @Not-Saii, this is your interval code (89b1a3a2). If the 16 MiB has a reason I'm missing, say so and I'll drop it. AI-assisted.
Not-Saii commented 2026-11-29 14:47:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-29T14:47:13Z.


@JB2WIN, go ahead. The 16 MiB cap has no reason on the token path. I took it from the snapshot copies, and I found nothing that relies on it once the title's buffer is bound directly. Capping at the D3D12 raw view limit, with its own reason, is the right change.

One thing from my step 2 measurement above, so it doesn't surprise you. In my 900 s run, this shader's view covers a whole 24 MiB buffer whose placement is copied_buffer. With the cap lifted, I expect it to stop at the next check in compute_token_output, an output token's backing does not uniquely alias its guest byte interval, unless X2W_COPIED_OBJECT_UAV is on. That's a prediction from the code, not a measurement. If your run shows it reaching a translated Dispatch by default, I'm wrong about the placement, and it would be good to know.

So the dispatch count probably won't move by default until @R0Y00 answers the X2W_COPIED_OBJECT_UAV question in my step 2 comment. I'm dropping the cap part of my output-interval claim; it's yours.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7257574888 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7257574888). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-29T14:47:13Z. --- @JB2WIN, go ahead. The 16 MiB cap has no reason on the token path. I took it from the snapshot copies, and I found nothing that relies on it once the title's buffer is bound directly. Capping at the D3D12 raw view limit, with its own reason, is the right change. One thing from my step 2 measurement above, so it doesn't surprise you. In my 900 s run, this shader's view covers a whole 24 MiB buffer whose placement is `copied_buffer`. With the cap lifted, I expect it to stop at the next check in `compute_token_output`, `an output token's backing does not uniquely alias its guest byte interval`, unless `X2W_COPIED_OBJECT_UAV` is on. That's a prediction from the code, not a measurement. If your run shows it reaching a translated Dispatch by default, I'm wrong about the placement, and it would be good to know. So the dispatch count probably won't move by default until @R0Y00 answers the `X2W_COPIED_OBJECT_UAV` question in my step 2 comment. I'm dropping the cap part of my output-interval claim; it's yours. AI-assisted.
JB2WIN commented 2026-11-29 17:08:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-29T17:08:12Z.


I'll take an unbound numeric SGPR slice: s_bfe_u32 reading the width field of an image descriptor. On my local 2,689-request cohort (compile_dxil --refusals, main), 57 requests stop at s_bfe_u32 on word 1, bits 30-31, width 2, of a table image descriptor. That is width_lo of the GFX10 image resource, (width - 1) & 3, per AMD's open PAL (gfx9Device.cpp, pSrd->gfx10.width_lo = (width - 1) & 3; width_hi in word 2 bits 0-13, height - 1 in word 2 bits 14-29). It is also the next blocker of the #3023 heap texture route, where the same field read stops 461 more. Plan: a design for supplying these dimension fields from the bound texture, in the style of the existing descriptor_strides / udsrc ... stride words or via GetDimensions, with fixtures. Counts and field positions only; no shader code here.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7259450865 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7259450865). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-29T17:08:12Z. --- I'll take an `unbound numeric SGPR` slice: `s_bfe_u32` reading the width field of an image descriptor. On my local 2,689-request cohort (`compile_dxil --refusals`, main), 57 requests stop at `s_bfe_u32` on word 1, bits 30-31, width 2, of a table image descriptor. That is `width_lo` of the GFX10 image resource, `(width - 1) & 3`, per AMD's open PAL (`gfx9Device.cpp`, `pSrd->gfx10.width_lo = (width - 1) & 3`; `width_hi` in word 2 bits 0-13, `height - 1` in word 2 bits 14-29). It is also the next blocker of the #3023 heap texture route, where the same field read stops 461 more. Plan: a design for supplying these dimension fields from the bound texture, in the style of the existing `descriptor_strides` / `udsrc ... stride` words or via `GetDimensions`, with fixtures. Counts and field positions only; no shader code here. AI-assisted.
Leyukaka commented 2026-11-29 21:07:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T21:07:23Z.


Taking two parts of the native compute refusal unbound numeric SGPR sN (require_numeric, src/gfx1013_compute_native.cpp:1258 on main ff9dcef0), outside the image descriptor field reads of #3500. In one long local run of the application, most compute dispatches left without a translation come from the first.

  1. Wave size of the in-memory request copy. Wave64 programs are refused on a 64-bit mask op that reads the high half of a compare pair (v_cmp_*_e64 s[N:N+1], then s_andn2_b64 ..., s[N:N+1]). Probable cause, not yet confirmed by a test: frozen_compute_requests().put({...}) (src/startup_stubs/d3d12_draw.inl:879) builds the ComputeRequest without wave32, which defaults to true (src/shader_compute_request.h:37); only read_compute_request sets it from the request bytes (src/shader_compute_request.cpp:324). A wave64 request taken from that copy (src/startup_stubs/d3d12_compute_dispatch.inl:494) would then be analysed as wave32. Plan: carry the wave size into the copy, with a test that fails on the old default.
  2. Mask defined only inside a block s_cbranch_execz skips: s_and_b64 s[N:N+1], s[N:N+1], exec at the join, where the pair is unbound on the skipped path. This is the native counterpart of the gfx2hlsl join refusal I released in #2645. Plan: accept the form only where every read from the join on is proven, each with a native fixture and a mutation check; other forms keep the refusal.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7262622295 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7262622295). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-29T21:07:23Z. --- Taking two parts of the native compute refusal `unbound numeric SGPR sN` (`require_numeric`, `src/gfx1013_compute_native.cpp:1258` on `main` `ff9dcef0`), outside the image descriptor field reads of #3500. In one long local run of the application, most compute dispatches left without a translation come from the first. 1. Wave size of the in-memory request copy. Wave64 programs are refused on a 64-bit mask op that reads the high half of a compare pair (`v_cmp_*_e64 s[N:N+1]`, then `s_andn2_b64 ..., s[N:N+1]`). Probable cause, not yet confirmed by a test: `frozen_compute_requests().put({...})` (`src/startup_stubs/d3d12_draw.inl:879`) builds the `ComputeRequest` without `wave32`, which defaults to `true` (`src/shader_compute_request.h:37`); only `read_compute_request` sets it from the request bytes (`src/shader_compute_request.cpp:324`). A wave64 request taken from that copy (`src/startup_stubs/d3d12_compute_dispatch.inl:494`) would then be analysed as wave32. Plan: carry the wave size into the copy, with a test that fails on the old default. 2. Mask defined only inside a block `s_cbranch_execz` skips: `s_and_b64 s[N:N+1], s[N:N+1], exec` at the join, where the pair is unbound on the skipped path. This is the native counterpart of the gfx2hlsl join refusal I released in #2645. Plan: accept the form only where every read from the join on is proven, each with a native fixture and a mutation check; other forms keep the refusal.
JB2WIN commented 2026-11-29 21:59:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-29T21:59:57Z.


Taking the scalar constant folding of s_brev_b32 and s_bfe_u32 in the native compute symbol analysis (transfer, src/gfx1013_compute_native.cpp). Today both always produce an unknown symbol, even with constant operands. This does not overlap the unbound numeric SGPR work above.

Why: in my local #3023 prototype, 299 compute requests build a static sampler whose word 3 is s_brev_b32 sN, <inline constant> (0x80000000, border colour type OPAQUE_WHITE). Word 3 then counts as a GPU value and the sampler is refused. With the fold, word 3 is the constant and the sampler is literal. Next on that path, the same 299 are comparison samplers with CLAMP_BORDER on X and Y, which the comparison path does not accept yet (separate PR). On main these programs stop earlier, at the heap refusal, so this moves no request there by itself.

The s_bfe_u32 fold is only done when the width is below 32. Test: source-built requests, compile plus a hardware run.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7263320436 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7263320436). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-29T21:59:57Z. --- Taking the scalar constant folding of `s_brev_b32` and `s_bfe_u32` in the native compute symbol analysis (`transfer`, `src/gfx1013_compute_native.cpp`). Today both always produce an unknown symbol, even with constant operands. This does not overlap the `unbound numeric SGPR` work above. Why: in my local #3023 prototype, 299 compute requests build a static sampler whose word 3 is `s_brev_b32 sN, <inline constant>` (0x80000000, border colour type OPAQUE_WHITE). Word 3 then counts as a GPU value and the sampler is refused. With the fold, word 3 is the constant and the sampler is literal. Next on that path, the same 299 are comparison samplers with CLAMP_BORDER on X and Y, which the comparison path does not accept yet (separate PR). On `main` these programs stop earlier, at the heap refusal, so this moves no request there by itself. The `s_bfe_u32` fold is only done when the width is below 32. Test: source-built requests, compile plus a hardware run. AI-assisted.
timbot103 commented 2026-12-02 00:38:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T00:38:00Z.


Claiming three independent unclaimed native direct-compute slices on main (158ef794), each as its own small PR with source-built fixtures and fail-closed controls:

  1. root_buffer_uav runtime manifest & binding (src/direct_compute_cache.cpp + src/startup_stubs/d3d12_compute_dispatch.inl): the native compute translator already emits ComputeViewKind::root_buffer_uav, and #3780 covers root_buffer_srv only. I will publish uav <i> root <param> in format_compute_runtime_manifest and bind it on the published/native compute route with strict placement/alignment/aliasing checks.
  2. partial final wave in multi-wave group (src/gfx1013_compute_native.cpp / src/gfx1013_direct_compute.inl, 2 shaders / 9,070 dispatches in the census above): support non-multiple multi-wave compute threadgroup shapes safely in direct DXIL (masking/guarding tail lanes where needed and keeping unproven wave exchanges/reductions refused), complementing #3796.
  3. numeric SCC from a symbolic descriptor field (src/gfx1013_direct_compute.inl, 2 shaders / 430,886 dispatches in the 900 s census): audit uses_scc_after and prepare_descriptor_strides / symbolic descriptor-field SCC handling and lower provable descriptor-stride/UAV/overwriter cases while keeping genuinely data-dependent symbolic SCC refused.

Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 32.0.16.2140) + WARP. Source-built fixtures only.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7330783808 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7330783808). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T00:38:00Z. --- Claiming three independent unclaimed native direct-compute slices on `main` (`158ef794`), each as its own small PR with source-built fixtures and fail-closed controls: 1. **`root_buffer_uav` runtime manifest & binding** (`src/direct_compute_cache.cpp` + `src/startup_stubs/d3d12_compute_dispatch.inl`): the native compute translator already emits `ComputeViewKind::root_buffer_uav`, and #3780 covers `root_buffer_srv` only. I will publish `uav <i> root <param>` in `format_compute_runtime_manifest` and bind it on the published/native compute route with strict placement/alignment/aliasing checks. 2. **`partial final wave in multi-wave group`** (`src/gfx1013_compute_native.cpp` / `src/gfx1013_direct_compute.inl`, 2 shaders / 9,070 dispatches in the census above): support non-multiple multi-wave compute threadgroup shapes safely in direct DXIL (masking/guarding tail lanes where needed and keeping unproven wave exchanges/reductions refused), complementing #3796. 3. **`numeric SCC from a symbolic descriptor field`** (`src/gfx1013_direct_compute.inl`, 2 shaders / 430,886 dispatches in the 900 s census): audit `uses_scc_after` and `prepare_descriptor_strides` / symbolic descriptor-field SCC handling and lower provable descriptor-stride/UAV/overwriter cases while keeping genuinely data-dependent symbolic SCC refused. Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 32.0.16.2140) + WARP. Source-built fixtures only. AI-assisted.
timbot103 commented 2026-12-02 01:31:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T01:31:31Z.


All three claimed #3224 slices are up as independent PRs against main (158ef794), each verified in both Debug and Release on app-local WARP 1.0.22 and NVIDIA GeForce RTX 5080 (driver 32.0.16.2140, Windows 11 26200.9974, MSVC 19.44, Windows SDK 10.0.26100.0):

  1. **
    oot_buffer_uav manifest & runtime binding:** https://github.com/R0Y00/Xbox2Windows/pull/3811 (Debug 4/4 + Release 4/4 passed on WARP & RTX 5080; 320/320 words + 13 refusal controls)
  2. partial final wave in multi-wave group: https://github.com/R0Y00/Xbox2Windows/pull/3808 (Debug 13/13 + Release 13/13 passed on WARP & RTX 5080; 18 readback cases + full-EXEC tail control + refusal controls)
  3. **
    umeric SCC from a symbolic descriptor field:** https://github.com/R0Y00/Xbox2Windows/pull/3809 (Debug 14/14 + Release 12/12 passed on WARP & RTX 5080; fixed raw UAV stride binding, explicit stride compares, 25/25 SCC liveness mutation checks, and mesh/heap regressions)

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7331803439 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3224#issuecomment-7331803439). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T01:31:31Z. --- All three claimed #3224 slices are up as independent PRs against main (158ef794), each verified in both Debug and Release on app-local WARP 1.0.22 and NVIDIA GeForce RTX 5080 (driver 32.0.16.2140, Windows 11 26200.9974, MSVC 19.44, Windows SDK 10.0.26100.0): 1. ** oot_buffer_uav manifest & runtime binding:** https://github.com/R0Y00/Xbox2Windows/pull/3811 (Debug 4/4 + Release 4/4 passed on WARP & RTX 5080; 320/320 words + 13 refusal controls) 2. **partial final wave in multi-wave group:** https://github.com/R0Y00/Xbox2Windows/pull/3808 (Debug 13/13 + Release 13/13 passed on WARP & RTX 5080; 18 readback cases + full-EXEC tail control + refusal controls) 3. ** umeric SCC from a symbolic descriptor field:** https://github.com/R0Y00/Xbox2Windows/pull/3809 (Debug 14/14 + Release 12/12 passed on WARP & RTX 5080; fixed raw UAV stride binding, explicit stride compares, 25/25 SCC liveness mutation checks, and mesh/heap regressions) AI-assisted.
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#3224
No description provided.