shader: slot 86 mesh programs set the root SRV stride with s_bitset1_b32, then stop at a scalar loop #3703

Open
opened 2026-12-01 05:09:32 +00:00 by lukaslw-lab · 59 comments
lukaslw-lab commented 2026-12-01 05:09:32 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T05:09:32Z.


On a local start-up capture (main 1c634037, X2W_REFUSE_FIXED_MESH=1, X2W_NATIVE_MESH86=1), 24 slot 86 mesh pipelines become placeholders before they reach binding:

x2w-mesh86 slot86 native <key>: native compute +0xf0: unbound numeric SGPR s1   (18 keys; s5 in 6)

All 24 build a raw V# over root parameter 3, the 128-byte root SRV of #3639:

s_mov_b32 s1, s20 ; s_mov_b32 s0, s19        ; root SRV address
s_bitset1_b32 s1, 16                         ; byte stride 1  <- refused
s_mov_b32 s2, -1 ; s_mov_b32 s3, 0x11014fac
s_buffer_load_dword ... s[0:3], 0x4 ... 0x7c ; tbuffer_load_format / buffer_load ... s[0:3]

The translator already maps s_or_b32 <high>, 0x10000 to root_stride_one_high; s_bitset1_b32 <high>, 16 sets the same bit and is not recognised. #3702 adds it.

Offline (compile_dxil <dxc> <out> gfx1013-container-ms-texture-heap <request>.m86 <out>.cso), the next refusals with that change:

Next refusal Requests
unsupported mesh scalar branch destination: a uniform counted loop, s_add_i32 sN, sN, 1; s_cmp_ge_u32 sN, sM; s_cbranch_scc0 <back> 18
unsupported mesh instruction or EXEC state: v_mad_f32 3
raw buffer load needs offen with zero scalar offset and no modifiers (buffer_load_dword ... idxen offen offset:876) 3
  • The loop is the main wall. The C++ mesh lowerer has no backward branches today, so this needs a design before code; I'll post one here.
  • v_mad_f32 and idxen offen are small; I'll take them as separate PRs after #3702.
  • After translation these pipelines still need the runtime root SRV binding of #3639.

Counts only; request keys and bytes stay local.

Refs #3641, #3639

AI-assisted.

Main integration update

#3718 added the committed-buffer root SRV resolver and range-control fixture. #3807 added indexed raw table SRV binding to the native Mesh86 path, covering a supported record stride, wrong stride and unbacked descriptors with source-built mesh and pixel fixtures. #3764 fixed staged primitive index decoding. The remaining scene geometry stream and rasterization checks are tracked at #3763 and #3641.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6713032063 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T05:09:32Z. --- On a local start-up capture (`main` `1c634037`, `X2W_REFUSE_FIXED_MESH=1`, `X2W_NATIVE_MESH86=1`), 24 slot 86 mesh pipelines become placeholders before they reach binding: ``` x2w-mesh86 slot86 native <key>: native compute +0xf0: unbound numeric SGPR s1 (18 keys; s5 in 6) ``` All 24 build a raw V# over root parameter 3, the 128-byte root SRV of #3639: ``` s_mov_b32 s1, s20 ; s_mov_b32 s0, s19 ; root SRV address s_bitset1_b32 s1, 16 ; byte stride 1 <- refused s_mov_b32 s2, -1 ; s_mov_b32 s3, 0x11014fac s_buffer_load_dword ... s[0:3], 0x4 ... 0x7c ; tbuffer_load_format / buffer_load ... s[0:3] ``` The translator already maps `s_or_b32 <high>, 0x10000` to `root_stride_one_high`; `s_bitset1_b32 <high>, 16` sets the same bit and is not recognised. #3702 adds it. Offline (`compile_dxil <dxc> <out> gfx1013-container-ms-texture-heap <request>.m86 <out>.cso`), the next refusals with that change: | Next refusal | Requests | |---|---:| | `unsupported mesh scalar branch destination`: a uniform counted loop, `s_add_i32 sN, sN, 1; s_cmp_ge_u32 sN, sM; s_cbranch_scc0 <back>` | 18 | | `unsupported mesh instruction or EXEC state: v_mad_f32` | 3 | | `raw buffer load needs offen with zero scalar offset and no modifiers` (`buffer_load_dword ... idxen offen offset:876`) | 3 | - The loop is the main wall. The C++ mesh lowerer has no backward branches today, so this needs a design before code; I'll post one here. - `v_mad_f32` and `idxen offen` are small; I'll take them as separate PRs after #3702. - After translation these pipelines still need the runtime root SRV binding of #3639. Counts only; request keys and bytes stay local. Refs #3641, #3639 AI-assisted. ## Main integration update #3718 added the committed-buffer root SRV resolver and range-control fixture. #3807 added indexed raw table SRV binding to the native Mesh86 path, covering a supported record stride, wrong stride and unbacked descriptors with source-built mesh and pixel fixtures. #3764 fixed staged primitive index decoding. The remaining scene geometry stream and rasterization checks are tracked at #3763 and #3641.
lukaslw-lab commented 2026-12-01 05:21:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T05:21:21Z.


Offline chain for the 24 programs, on #3702 (1c634037 + 22ba8dbe). To see past a refusal, a local copy of each request replaces the refused word: the loop back edge with s_nop 0, v_cvt_i32_f32 with v_cvt_u32_f32, v_mad_f32 with v_fma_f32. This changes what the programs compute; it only measures how far they get.

Group Programs Refusals in order
L 18 scalar loop → v_cvt_i32_f32 (×2) → mesh image load lacks a remapped Texture1D heap contract
M 3 v_mad_f32 (×4) → raw buffer load needs offen with zero scalar offset and no modifiers
R 3 raw buffer load needs offen with zero scalar offset and no modifiers

What lies beyond the image load and the idxen offen load is not measured.

The loop is the same in all 18 programs apart from register numbers: one header, one back edge, 15 instructions, scalar only.

i = 0                                          ; bound n = dword 0 of root SRV 3 (#3639); n == 0 skips the loop
loop:  flags = s_buffer_load_dword(table 1 slot 0 buffer, i * 0x130 + 0x50)
       if (flags & 2)  goto found_a
       if (flags & 64) goto found_b
       i += 1 ; if (i < n) goto loop           ; s_add_i32, s_cmp_ge_u32, s_cbranch_scc0 <back>
none / found_a / found_b each set two VGPRs, then join at one block

The body has no VALU, VMEM, LDS, EXEC write or export. The loop sits inside a forward s_cbranch_execz region, and every exit branches forward into that region.

Proposed lowering, for the maintainer to accept or reject. In lower_mesh, admit a uniform scalar loop:

  • One header H and one back edge B (s_cbranch_scc0/scc1/s_branch to H).
  • [H, B] holds only SALU, SMEM, s_waitcnt and s_nop.
  • Every other branch in [H, B] goes forward past B and stays inside the enclosing EXECZ region. Nothing branches into [H, B] except at H.

Emit it as a DXIL loop:

  • A header block with a phi for each SGPR the body writes, and for SCC.
  • Exit edges carry their SGPR state into the existing forward-join merge.
  • Symbol state at H is the entry state joined with the back-edge state; every SGPR the body writes becomes numeric-unknown.

The trip count comes from guest data, the same as on the console; no cap. The graphics stages already build loops with block phis (gfx1013_direct_graphics.inl, loop_dependencies); the mesh emitter is forward-only today.

Fixture idea: a source-built mesh program with this shape that searches a small root or table buffer, with one case per outcome (none / bit 2 / bit 64) checked on WARP. Controls:

  • a VALU instruction in the body;
  • two back edges;
  • an exit into [H, B];
  • a back edge on VCC from a per-lane compare.

Work split. Comment here to claim an item, one PR each. Items 1 and 2 are independent of each other; item 3 can be done in parallel.

# Item Programs (first reached) Size Notes
1 Uniform scalar loop in lower_mesh, as above 18 large design above
2 v_cvt_i32_f32 and v_mad_f32 in the mesh VALU list (the shared ALU already lowers both, gfx1013_direct_compute.inl:3389) 21 small taking this one (said above)
3 buffer_load_dword ... idxen offen offset:N in the raw-load decoder (gfx1013_compute_native.cpp:285) 6 small–medium
4 2D image_load through a descriptor-table texture in the mesh path, plus its SRV in the slot 86 root (native_mesh86.inl). Today only the 1D heap slot map is accepted (gfx1013_direct_mesh.inl:1298). 18 (after 1, 2) medium touches runtime binding; coordinate with #3639

Related open work, none of which covers these items:

  • #3631 changes raw buffer loads in the same decoder as item 3, but explicitly keeps IDXEN refused.
  • #3500 (2D table texture fields) and #3544 (heap textures) are compute only; they may be useful reference for item 4.

Taking item 2 only. Items 1, 3 and 4 are open. The reach probe can be rerun on any branch.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7301683823 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7301683823). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T05:21:21Z. --- Offline chain for the 24 programs, on #3702 (`1c634037` + `22ba8dbe`). To see past a refusal, a local copy of each request replaces the refused word: the loop back edge with `s_nop 0`, `v_cvt_i32_f32` with `v_cvt_u32_f32`, `v_mad_f32` with `v_fma_f32`. This changes what the programs compute; it only measures how far they get. | Group | Programs | Refusals in order | |---|---:|---| | L | 18 | scalar loop → `v_cvt_i32_f32` (×2) → `mesh image load lacks a remapped Texture1D heap contract` | | M | 3 | `v_mad_f32` (×4) → `raw buffer load needs offen with zero scalar offset and no modifiers` | | R | 3 | `raw buffer load needs offen with zero scalar offset and no modifiers` | What lies beyond the image load and the `idxen offen` load is not measured. **The loop** is the same in all 18 programs apart from register numbers: one header, one back edge, 15 instructions, scalar only. ``` i = 0 ; bound n = dword 0 of root SRV 3 (#3639); n == 0 skips the loop loop: flags = s_buffer_load_dword(table 1 slot 0 buffer, i * 0x130 + 0x50) if (flags & 2) goto found_a if (flags & 64) goto found_b i += 1 ; if (i < n) goto loop ; s_add_i32, s_cmp_ge_u32, s_cbranch_scc0 <back> none / found_a / found_b each set two VGPRs, then join at one block ``` The body has no VALU, VMEM, LDS, EXEC write or export. The loop sits inside a forward `s_cbranch_execz` region, and every exit branches forward into that region. **Proposed lowering, for the maintainer to accept or reject.** In `lower_mesh`, admit a *uniform scalar loop*: - One header H and one back edge B (`s_cbranch_scc0`/`scc1`/`s_branch` to H). - `[H, B]` holds only SALU, SMEM, `s_waitcnt` and `s_nop`. - Every other branch in `[H, B]` goes forward past B and stays inside the enclosing EXECZ region. Nothing branches into `[H, B]` except at H. Emit it as a DXIL loop: - A header block with a phi for each SGPR the body writes, and for SCC. - Exit edges carry their SGPR state into the existing forward-join merge. - Symbol state at H is the entry state joined with the back-edge state; every SGPR the body writes becomes numeric-unknown. The trip count comes from guest data, the same as on the console; no cap. The graphics stages already build loops with block phis (`gfx1013_direct_graphics.inl`, `loop_dependencies`); the mesh emitter is forward-only today. Fixture idea: a source-built mesh program with this shape that searches a small root or table buffer, with one case per outcome (none / bit 2 / bit 64) checked on WARP. Controls: - a VALU instruction in the body; - two back edges; - an exit into `[H, B]`; - a back edge on VCC from a per-lane compare. **Work split.** Comment here to claim an item, one PR each. Items 1 and 2 are independent of each other; item 3 can be done in parallel. | # | Item | Programs (first reached) | Size | Notes | |---|---|---:|---|---| | 1 | Uniform scalar loop in `lower_mesh`, as above | 18 | large | design above | | 2 | `v_cvt_i32_f32` and `v_mad_f32` in the mesh VALU list (the shared ALU already lowers both, `gfx1013_direct_compute.inl:3389`) | 21 | small | **taking this one** (said above) | | 3 | `buffer_load_dword ... idxen offen offset:N` in the raw-load decoder (`gfx1013_compute_native.cpp:285`) | 6 | small–medium | | | 4 | 2D `image_load` through a descriptor-table texture in the mesh path, plus its SRV in the slot 86 root (`native_mesh86.inl`). Today only the 1D heap slot map is accepted (`gfx1013_direct_mesh.inl:1298`). | 18 (after 1, 2) | medium | touches runtime binding; coordinate with #3639 | Related open work, none of which covers these items: - #3631 changes raw buffer loads in the same decoder as item 3, but explicitly keeps IDXEN refused. - #3500 (2D table texture fields) and #3544 (heap textures) are compute only; they may be useful reference for item 4. Taking item 2 only. Items 1, 3 and 4 are open. The reach probe can be rerun on any branch. AI-assisted.
lukaslw-lab commented 2026-12-01 05:42:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T05:42:45Z.


Item 2 is in #3704 (independent of #3702). With both applied, the 3 v_mad_f32 requests reach the idxen offen load (item 3), and the 18 loop requests no longer stop at v_cvt_i32_f32 after the loop. Items 1, 3 and 4 are still open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7302056290 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7302056290). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T05:42:45Z. --- Item 2 is in #3704 (independent of #3702). With both applied, the 3 `v_mad_f32` requests reach the `idxen offen` load (item 3), and the 18 loop requests no longer stop at `v_cvt_i32_f32` after the loop. Items 1, 3 and 4 are still open.
lukaslw-lab commented 2026-12-01 05:49:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T05:49:35Z.


Taking item 3 (idxen offen raw loads through a table buffer V#, the graphics branch of the raw-load decoder). It doesn't change #3631's compute branch.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7302178780 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7302178780). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T05:49:35Z. --- Taking item 3 (`idxen offen` raw loads through a table buffer V#, the graphics branch of the raw-load decoder). It doesn't change #3631's compute branch.
lukaslw-lab commented 2026-12-01 06:39:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T06:39:16Z.


Item 3 is in #3705 (translator part). With #3702, #3704 and #3705 applied, the 6 requests pass the idxen offen load. Two follow-ups:

  • 3b, slot 86 runtime binding of indexed_raw_srv: accept the view kind in native_mesh86.inl and check the descriptor stride against the reflected one, as d3d12_draw.inl does for VS/PS. It's in the material binder that #3639 is changing, so I'll do it after #3639 lands, unless the #3639 work takes it.
  • 5 (new, open): next refusal of the same 6, a lane-mask block s_xor_b64 s[20:21], vcc, -1, then s_and_saveexec_b64, then s_cbranch_execz (an "if not VCC" region). Close to the SAVEEXEC shapes of #3668; not claimed.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7303119094 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7303119094). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T06:39:16Z. --- Item 3 is in #3705 (translator part). With #3702, #3704 and #3705 applied, the 6 requests pass the `idxen offen` load. Two follow-ups: - **3b, slot 86 runtime binding of `indexed_raw_srv`:** accept the view kind in `native_mesh86.inl` and check the descriptor stride against the reflected one, as `d3d12_draw.inl` does for VS/PS. It's in the material binder that #3639 is changing, so I'll do it after #3639 lands, unless the #3639 work takes it. - **5 (new, open):** next refusal of the same 6, a lane-mask block `s_xor_b64 s[20:21], vcc, -1`, then `s_and_saveexec_b64`, then `s_cbranch_execz` (an "if not VCC" region). Close to the SAVEEXEC shapes of #3668; not claimed. AI-assisted.
lukaslw-lab commented 2026-12-01 06:44:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T06:44:24Z.


Taking item 1 (uniform scalar loop in lower_mesh), built to the design above. Loop-carried SGPRs and SCC go through local slots, so the single forward pass stays as it is; anything outside the narrow shape keeps the refusal. PR will follow; happy to change direction if the design is rejected.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7303215380 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7303215380). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T06:44:24Z. --- Taking item 1 (uniform scalar loop in `lower_mesh`), built to the design above. Loop-carried SGPRs and SCC go through local slots, so the single forward pass stays as it is; anything outside the narrow shape keeps the refusal. PR will follow; happy to change direction if the design is rejected.
mumba17 commented 2026-12-01 06:47:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T06:47:18Z.


Taking item 5: the "if not VCC" region in the C++ mesh frontend (s_xor_b64 sX, vcc, -1, then s_and_saveexec_b64, then s_cbranch_execz). It is next to the SAVEEXEC shapes of #3668, so I'll extend that path: accept the inverted VCC mask as the region condition, keep refusing any other operand to the s_xor_b64. Source-built fixture with WARP readback plus negative controls; PR stacks on nothing, and I'll report how far the 6 requests get on top of #3702/#3704/#3705.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7303274600 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7303274600). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T06:47:18Z. --- Taking **item 5**: the "if not VCC" region in the C++ mesh frontend (`s_xor_b64 sX, vcc, -1`, then `s_and_saveexec_b64`, then `s_cbranch_execz`). It is next to the SAVEEXEC shapes of #3668, so I'll extend that path: accept the inverted VCC mask as the region condition, keep refusing any other operand to the `s_xor_b64`. Source-built fixture with WARP readback plus negative controls; PR stacks on nothing, and I'll report how far the 6 requests get on top of #3702/#3704/#3705. AI-assisted.
mumba17 commented 2026-12-01 06:56:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T06:56:02Z.


Item 5 is in #3706. s_xor_b64 sD, vcc, -1 now goes through the mesh mask-complement path, so the following SAVEEXEC (in-skip if/else, paired, or if-only) takes it as an ordinary lane-mask pair. vcc_hi and any operand other than -1 still refuse. I haven't measured the 6 requests yet; I couldn't do a Mesh86 capture run on this host today. @lukaslw-lab, if you rerun your reach probe with #3702/#3704/#3705 + #3706, I'd like to see what comes next.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7303451220 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7303451220). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T06:56:02Z. --- Item 5 is in #3706. `s_xor_b64 sD, vcc, -1` now goes through the mesh mask-complement path, so the following SAVEEXEC (in-skip if/else, paired, or if-only) takes it as an ordinary lane-mask pair. `vcc_hi` and any operand other than -1 still refuse. I haven't measured the 6 requests yet; I couldn't do a Mesh86 capture run on this host today. @lukaslw-lab, if you rerun your reach probe with #3702/#3704/#3705 + #3706, I'd like to see what comes next. AI-assisted.
lukaslw-lab commented 2026-12-01 07:05:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T07:05:48Z.


Item 6 (new, open): with #3702, #3704, #3705 and #3706 applied, the 6 idxen offen requests pass the "if not VCC" open. They stop at its first load with graphics register undefined on an incoming path: 274 / 276 / 278 (v18 / v20 / v22, the load's index VGPR). That VGPR is written under an earlier EXEC region, closed by s_mov_b64 exec, s[20:21] just before the s_xor_b64. So the join at that restore does not treat it as defined on every path. Details in #3706. Not claimed.

Status: item 1 (loop) in progress on our side; items 2/3/5 are in #3704 / #3705 / #3706; 3b waits for #3639; item 4 is open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7303640377 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7303640377). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T07:05:48Z. --- **Item 6 (new, open):** with #3702, #3704, #3705 and #3706 applied, the 6 `idxen offen` requests pass the "if not VCC" open. They stop at its first load with `graphics register undefined on an incoming path: 274 / 276 / 278` (v18 / v20 / v22, the load's index VGPR). That VGPR is written under an earlier EXEC region, closed by `s_mov_b64 exec, s[20:21]` just before the `s_xor_b64`. So the join at that restore does not treat it as defined on every path. Details in #3706. Not claimed. Status: item 1 (loop) in progress on our side; items 2/3/5 are in #3704 / #3705 / #3706; 3b waits for #3639; item 4 is open.
mumba17 commented 2026-12-01 07:11:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T07:11:44Z.


Thanks for the reach run, @lukaslw-lab. Taking item 6: the index VGPR (v18/v20/v22) written under the earlier EXEC region and read in the "if not VCC" arm after s_mov_b64 exec, s[20:21]. Same family as #3671: keep the partial write across the restore only where the reading mask is provably within the lanes that wrote it, and keep refusing every other read. Fixture with positive and negative controls; I'll stack it on #3706 and report the reach on the same 6 requests.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7303756547 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7303756547). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T07:11:44Z. --- Thanks for the reach run, @lukaslw-lab. Taking **item 6**: the index VGPR (v18/v20/v22) written under the earlier EXEC region and read in the "if not VCC" arm after `s_mov_b64 exec, s[20:21]`. Same family as #3671: keep the partial write across the restore only where the reading mask is provably within the lanes that wrote it, and keep refusing every other read. Fixture with positive and negative controls; I'll stack it on #3706 and report the reach on the same 6 requests. AI-assisted.
lukaslw-lab commented 2026-12-01 07:32:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T07:32:58Z.


Item 1 is in #3707 (independent of #3702 / #3704 / #3705 / #3706). With #3702 and #3704 applied, the 18 loop requests pass the loop without any stand-in and stop at item 4 (mesh image load lacks a remapped Texture1D heap contract). Items 4 and 3b remain; 6 is with @mumba17.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7304190186 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7304190186). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T07:32:58Z. --- Item 1 is in #3707 (independent of #3702 / #3704 / #3705 / #3706). With #3702 and #3704 applied, the 18 loop requests pass the loop without any stand-in and stop at item 4 (`mesh image load lacks a remapped Texture1D heap contract`). Items 4 and 3b remain; 6 is with @mumba17.
lukaslw-lab commented 2026-12-01 07:36:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T07:36:31Z.


Taking item 4: 2D image_load through a descriptor-table texture in the mesh frontend, routed to the shared image_io. The slot 86 runtime already binds 2D table textures (from #3638), so I expect no runtime change and nothing in the root-SRV path of #3639.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7304265105 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7304265105). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T07:36:31Z. --- Taking item 4: 2D `image_load` through a descriptor-table texture in the mesh frontend, routed to the shared `image_io`. The slot 86 runtime already binds 2D table textures (from #3638), so I expect no runtime change and nothing in the root-SRV path of #3639.
mumba17 commented 2026-12-01 07:56:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T07:56:16Z.


Census: every slot 86 program from a native Mesh86 run

This is wider than the 24 above, in case it helps choose what to do next. Counts only; request bytes stay local.

Capture. main 1c634037, run with run_preset.py --console x --gpu nvidia --set translate=false, X2W_REFUSE_FIXED_MESH=1 and X2W_NATIVE_MESH86=1, 600 s from a saved profile, RTX 3090. It recorded 2,873 .m86 requests, 1,569 of them distinct by content. Each went through compile_dxil … gfx1013-container-ms-texture-heap.

First refusal per program, on main and with #3708:

First refusal main + #3708 Owner
s_not_b32 / s_bfe_i32 / s_brev_b32 286 / 198 / 71 0 #3708 (mine)
v_rcp_iflag_f32 85 371 taking this next
unbound numeric SGPR s1 (root SRV stride bit) 174 174 #3702
indexed raw load needs a reflected table SRV 154 156 —
v_cmpx_ne_u32 83 143 — (next to @Kawiu's CMPX set in #3666)
graphics register undefined on an incoming path 37 79 item 6 (mine)
buffer_load_format_x 57 57 —
v_ashrrev_i32 16 50 —
mesh SAVEEXEC then arm depends on EXEC (nested SAVEEXEC) 29 29 —
v_mad_f32 18 27 #3704
translate fully 267 389

Taking v_rcp_iflag_f32 in the mesh frontend. The shared ALU lowering already exists; I'll check its IEEE-flag semantics against the compute path and add tests. Item 6 stays mine too, after this.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7304668592 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7304668592). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T07:56:16Z. --- ## Census: every slot 86 program from a native Mesh86 run This is wider than the 24 above, in case it helps choose what to do next. Counts only; request bytes stay local. **Capture.** `main` `1c634037`, run with `run_preset.py --console x --gpu nvidia --set translate=false`, `X2W_REFUSE_FIXED_MESH=1` and `X2W_NATIVE_MESH86=1`, 600 s from a saved profile, RTX 3090. It recorded 2,873 `.m86` requests, **1,569 of them distinct** by content. Each went through `compile_dxil … gfx1013-container-ms-texture-heap`. **First refusal per program**, on main and with #3708: | First refusal | main | + #3708 | Owner | |---|---:|---:|---| | `s_not_b32` / `s_bfe_i32` / `s_brev_b32` | 286 / 198 / 71 | 0 | #3708 (mine) | | `v_rcp_iflag_f32` | 85 | **371** | **taking this next** | | `unbound numeric SGPR s1` (root SRV stride bit) | 174 | 174 | #3702 | | `indexed raw load needs a reflected table SRV` | 154 | 156 | — | | `v_cmpx_ne_u32` | 83 | 143 | — (next to @Kawiu's CMPX set in #3666) | | `graphics register undefined on an incoming path` | 37 | 79 | item 6 (mine) | | `buffer_load_format_x` | 57 | 57 | — | | `v_ashrrev_i32` | 16 | 50 | — | | `mesh SAVEEXEC then arm depends on EXEC` (nested SAVEEXEC) | 29 | 29 | — | | `v_mad_f32` | 18 | 27 | #3704 | | **translate fully** | **267** | **389** | | Taking **`v_rcp_iflag_f32`** in the mesh frontend. The shared ALU lowering already exists; I'll check its IEEE-flag semantics against the compute path and add tests. Item 6 stays mine too, after this. AI-assisted.
mumba17 commented 2026-12-01 08:06:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T08:06:55Z.


v_rcp_iflag_f32 (371) is in #3709, together with v_ashrrev_i32 (50, same lane ALU list). Measured on top of #3708, those 421 programs now stop at v_and_or_b32 (144, already in @SimSalabimse's #3659), mesh heap slot lacks masked root constant provenance (142), s_cmp_le_u32 (85) and the offen raw-load form (51). Next for me is item 6.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7304892523 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7304892523). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T08:06:55Z. --- `v_rcp_iflag_f32` (371) is in #3709, together with `v_ashrrev_i32` (50, same lane ALU list). Measured on top of #3708, those 421 programs now stop at `v_and_or_b32` (144, already in @SimSalabimse's #3659), `mesh heap slot lacks masked root constant provenance` (142), `s_cmp_le_u32` (85) and the `offen` raw-load form (51). Next for me is item 6. AI-assisted.
mumba17 commented 2026-12-01 08:27:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T08:27:58Z.


Item 6: #3710. In my census, the undefined on an incoming path refusals come from a nested CMPX skip inside the vertex skip, where both exit to the same EXEC restore. The #3671 lane-limit tag was skipped there, so the restore erased the position VGPRs. With #3710, 32 more programs translate on main (267 → 299), and 65 more with #3706/#3708/#3709 stacked (389 → 454). No regressions.

One caveat, @lukaslw-lab: your 6 requests read v18/v20/v22 as a load index in the "if not VCC" arm, not in a count-guarded export. I can't reproduce them here because they need #3702/#3704/#3705 first. #3710 may not cover that read. If your probe still shows it with #3710 applied, I'll take that shape as a follow-up.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7305353821 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7305353821). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T08:27:58Z. --- Item 6: #3710. In my census, the `undefined on an incoming path` refusals come from a nested CMPX skip inside the vertex skip, where both exit to the same EXEC restore. The #3671 lane-limit tag was skipped there, so the restore erased the position VGPRs. With #3710, 32 more programs translate on main (267 → 299), and 65 more with #3706/#3708/#3709 stacked (389 → 454). No regressions. One caveat, @lukaslw-lab: your 6 requests read v18/v20/v22 as a load index in the "if not VCC" arm, not in a count-guarded export. I can't reproduce them here because they need #3702/#3704/#3705 first. #3710 may not cover that read. If your probe still shows it with #3710 applied, I'll take that shape as a follow-up. AI-assisted.
SimSalabimse commented 2026-12-01 08:36:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-12-01T08:36:13Z.


I'll take two of the remaining Mesh86 lowerer walls from the census here: s_cmp_le_u32 (85) and v_cmpx_ne_u32 (143 after #3708).

For v_cmpx_ne_u32 I'll follow the CMPX pattern in #3666 so it slots in beside Kawiu's eq_i32 / lt_f32 work rather than duplicating it. Source-built tests only (unsigned wrap case for the compare, EXEC narrowing and empty-EXEC cases for the CMPX). Fork first, then a PR.

Our draft #3659 also covers v_and_or_b32, which mumba17 pointed at above.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7305537687 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7305537687). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-12-01T08:36:13Z. --- I'll take two of the remaining Mesh86 lowerer walls from the census here: `s_cmp_le_u32` (85) and `v_cmpx_ne_u32` (143 after #3708). For `v_cmpx_ne_u32` I'll follow the CMPX pattern in #3666 so it slots in beside Kawiu's `eq_i32` / `lt_f32` work rather than duplicating it. Source-built tests only (unsigned wrap case for the compare, EXEC narrowing and empty-EXEC cases for the CMPX). Fork first, then a PR. Our draft #3659 also covers `v_and_or_b32`, which mumba17 pointed at above. AI-Assisted
lukaslw-lab commented 2026-12-01 08:41:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T08:41:43Z.


Item 4 is in #3712 (independent of the others). With #3702, #3704, #3707 and #3712 applied, all 18 loop requests translate to valid DXIL mesh shaders. Each binds a 2D table texture, four table buffers, root constants and the 128-byte root SRV of root parameter 3, so at draw time they wait on #3639. Their pixel halves are not checked yet.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7305655707 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7305655707). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T08:41:43Z. --- Item 4 is in #3712 (independent of the others). With #3702, #3704, #3707 and #3712 applied, **all 18 loop requests translate** to valid DXIL mesh shaders. Each binds a 2D table texture, four table buffers, root constants and the 128-byte root SRV of root parameter 3, so at draw time they wait on #3639. Their pixel halves are not checked yet.
timbot103 commented 2026-12-01 10:21:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T10:21:27Z.


Claiming four of the remaining unclaimed Mesh86 lowerer walls from @mumba17's census above (each as a small independent PR with source-built fixtures and negative controls, keeping all unrelated refusals strict):

  1. mesh heap slot lacks masked root constant provenance (142)
  2. buffer_load_format_x in the C++ mesh frontend (57)
  3. offen-only raw buffer loads in the C++ mesh frontend (51, distinct from #3705's idxen offen)
  4. Nested SAVEEXEC (mesh SAVEEXEC then arm depends on EXEC, 29)

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

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7308064293 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7308064293). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-01T10:21:27Z. --- Claiming four of the remaining unclaimed Mesh86 lowerer walls from @mumba17's census above (each as a small independent PR with source-built fixtures and negative controls, keeping all unrelated refusals strict): 1. `mesh heap slot lacks masked root constant provenance` (142) 2. `buffer_load_format_x` in the C++ mesh frontend (57) 3. `offen`-only raw buffer loads in the C++ mesh frontend (51, distinct from #3705's `idxen offen`) 4. Nested `SAVEEXEC` (`mesh SAVEEXEC then arm depends on EXEC`, 29) Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 621.40) + WARP. Source-built tests only. AI-assisted.
timbot103 commented 2026-12-01 10:53:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T10:53:57Z.


All four claimed Mesh86 lowerer PRs are up, each independent against main (a061032f) with source-built fixtures and fail-closed controls verified in both Debug and Release (Windows 11 26200, MSVC 19.44, Windows SDK 10.0.26100):

  1. mesh heap slot lacks masked root constant provenance (142): #3719 (also verified d3d12_xs.dll + native_fixed_mesh57_uint_heap_{warp,hardware} on WARP and RTX 5080, driver 32.0.16.2140)
  2. buffer_load_format_x in mesh EXECZ skips and element zero (57): #3720
  3. offen-only raw buffer loads in the mesh frontend (51): #3721
  4. Nested SAVEEXEC inside a SAVEEXEC then arm (29): #3722

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7308884674 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7308884674). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-01T10:53:57Z. --- All four claimed Mesh86 lowerer PRs are up, each independent against `main` (`a061032f`) with source-built fixtures and fail-closed controls verified in both Debug and Release (Windows 11 26200, MSVC 19.44, Windows SDK 10.0.26100): 1. `mesh heap slot lacks masked root constant provenance` (142): #3719 (also verified `d3d12_xs.dll` + `native_fixed_mesh57_uint_heap_{warp,hardware}` on WARP and RTX 5080, driver `32.0.16.2140`) 2. `buffer_load_format_x` in mesh `EXECZ` skips and element zero (57): #3720 3. `offen`-only raw buffer loads in the mesh frontend (51): #3721 4. Nested `SAVEEXEC` inside a `SAVEEXEC` `then` arm (29): #3722 AI-assisted.
mumba17 commented 2026-12-01 11:45:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T11:45:16Z.


Census update on main e1161e43 plus #3708, #3709 and #3710: 512 of 1,569 distinct Mesh86 programs from my capture now translate. Same capture and method as before (compile_dxil ... gfx1013-container-ms-texture-heap, one run per distinct request).

First refusal per program:

First refusal Programs Owner
v_cmpx_lg_f32 224 claiming (below)
mesh EXEC write inside a lane-skip block 209 —
v_and_or_b32 148 #3659
mesh heap slot lacks masked root constant provenance 143 #3719
formatted mesh load lacks an R32_UINT resource heap contract 100 —
mesh SAVEEXEC then arm depends on EXEC 57 (left after #3722)
v_cmpx_gt_u32 (not the lane-linear count form) 50 claiming (below)
unsupported mesh scalar branch destination 25 #3707?
v_cvt_f32_f16 / v_cvt_f16_f32 19 / 11 #3666
mesh image load lacks a remapped Texture1D heap contract 17 #3712?
graphics register undefined on an incoming path 21 —

Claiming: per-lane v_cmpx_lg_f32, v_cmpx_gt_u32 and v_cmpx_gt_f32 (5) in the mesh frontend. They get the same EXEC-only narrowing as v_cmpx_ne_u32 and v_cmpx_lt_u32, through the shared compare (lg is ordered fcmp one, so a NaN lane drops out). The lane-linear v_cmpx_gt_u32 count path stays first and unchanged. Float modifiers, SDWA, DPP and clamp stay refused. This does not touch v_cmpx_eq_i32, lt_f32 or le_f32 from #3666. Source-built fixtures only.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7310088730 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7310088730). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T11:45:16Z. --- Census update on `main` `e1161e43` plus #3708, #3709 and #3710: **512 of 1,569** distinct Mesh86 programs from my capture now translate. Same capture and method as before (`compile_dxil ... gfx1013-container-ms-texture-heap`, one run per distinct request). First refusal per program: | First refusal | Programs | Owner | |---|---:|---| | `v_cmpx_lg_f32` | 224 | **claiming (below)** | | `mesh EXEC write inside a lane-skip block` | 209 | — | | `v_and_or_b32` | 148 | #3659 | | `mesh heap slot lacks masked root constant provenance` | 143 | #3719 | | `formatted mesh load lacks an R32_UINT resource heap contract` | 100 | — | | `mesh SAVEEXEC then arm depends on EXEC` | 57 | (left after #3722) | | `v_cmpx_gt_u32` (not the lane-linear count form) | 50 | **claiming (below)** | | `unsupported mesh scalar branch destination` | 25 | #3707? | | `v_cvt_f32_f16` / `v_cvt_f16_f32` | 19 / 11 | #3666 | | `mesh image load lacks a remapped Texture1D heap contract` | 17 | #3712? | | `graphics register undefined on an incoming path` | 21 | — | **Claiming:** per-lane `v_cmpx_lg_f32`, `v_cmpx_gt_u32` and `v_cmpx_gt_f32` (5) in the mesh frontend. They get the same EXEC-only narrowing as `v_cmpx_ne_u32` and `v_cmpx_lt_u32`, through the shared compare (`lg` is ordered `fcmp one`, so a NaN lane drops out). The lane-linear `v_cmpx_gt_u32` count path stays first and unchanged. Float modifiers, SDWA, DPP and clamp stay refused. This does not touch `v_cmpx_eq_i32`, `lt_f32` or `le_f32` from #3666. Source-built fixtures only. AI-assisted.
mumba17 commented 2026-12-01 16:38:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T16:38:21Z.


Claiming the next wall after #3729: graphics register undefined on an incoming path in the nested v_cmpx_lg_f32 skips (about 250 of the 279 programs #3729 moves).

A register written under the vertex-count mask becomes partial. The lg skips inside that region then accumulate into it, but because it is already partial those writes are not merged with the old value, and the restore to the count mask drops it. The fix tracks the lane mask a partial value is valid for, so the restore keeps it when that mask matches. Same area as #3710, source-built tests only.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7317941201 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7317941201). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T16:38:21Z. --- Claiming the next wall after #3729: `graphics register undefined on an incoming path` in the nested `v_cmpx_lg_f32` skips (about 250 of the 279 programs #3729 moves). A register written under the vertex-count mask becomes partial. The `lg` skips inside that region then accumulate into it, but because it is already partial those writes are not merged with the old value, and the restore to the count mask drops it. The fix tracks the lane mask a partial value is valid for, so the restore keeps it when that mask matches. Same area as #3710, source-built tests only. AI-assisted.
mumba17 commented 2026-12-01 16:59:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T16:59:56Z.


Item: #3760 is up for the nested-skip wall (749 of 1,569 on the combined stack, no regressions).

Claiming the next one: mesh EXEC write inside a lane-skip block (209 programs on that stack). All 209 have the same shape inside the vertex skip: save EXEC, one v_cmpx_ne_u32 with no EXECZ branch, straight-line VALU work under the narrowed mask, then restore the saved vertex mask. I'll merge writes in that region per lane with the old value so the restore can keep them, and keep everything else refused. Independent of #3710/#3760, source-built tests only.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7318583111 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7318583111). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T16:59:56Z. --- Item: #3760 is up for the nested-skip wall (749 of 1,569 on the combined stack, no regressions). Claiming the next one: `mesh EXEC write inside a lane-skip block` (209 programs on that stack). All 209 have the same shape inside the vertex skip: save EXEC, one `v_cmpx_ne_u32` with no EXECZ branch, straight-line VALU work under the narrowed mask, then restore the saved vertex mask. I'll merge writes in that region per lane with the old value so the restore can keep them, and keep everything else refused. Independent of #3710/#3760, source-built tests only. AI-assisted.
mumba17 commented 2026-12-01 17:38:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T17:38:22Z.


#3765 is up for the lane-skip EXEC wall (837 of 1,569 on the combined stack, no regressions).

Claiming formatted mesh load lacks an R32_UINT resource heap contract (108 on that stack). All 108 are buffer_load_format_x ... idxen whose V# is read whole from a bound descriptor table, not from the resource heap. This needs two halves, and I'll do both in one PR:

  • Translator: send that load through the shared typed-buffer SRV path the vertex/pixel frontend already uses.
  • Runtime (native_mesh86.inl): bind the resulting typed_buffer_srv as an R32_UINT buffer view only when the table's V# is a 32-bit format with a 4-byte stride. Anything else stays refused.

@timbot103, this turns your typed-table-in-skip control from #3720 into a positive case. I'll keep the table route fail-closed in the runtime instead. Shout if that control was guarding something else.

@lambirou, heads-up since native_mesh86.inl is your area. I'll keep the change to the view-kind check and the buffer view creation.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7319615150 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7319615150). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T17:38:22Z. --- #3765 is up for the lane-skip EXEC wall (837 of 1,569 on the combined stack, no regressions). Claiming `formatted mesh load lacks an R32_UINT resource heap contract` (108 on that stack). All 108 are `buffer_load_format_x ... idxen` whose V# is read whole from a bound descriptor table, not from the resource heap. This needs two halves, and I'll do both in one PR: - **Translator:** send that load through the shared typed-buffer SRV path the vertex/pixel frontend already uses. - **Runtime (`native_mesh86.inl`):** bind the resulting `typed_buffer_srv` as an R32_UINT buffer view only when the table's V# is a 32-bit format with a 4-byte stride. Anything else stays refused. @timbot103, this turns your `typed-table-in-skip` control from #3720 into a positive case. I'll keep the table route fail-closed in the runtime instead. Shout if that control was guarding something else. @lambirou, heads-up since `native_mesh86.inl` is your area. I'll keep the change to the view-kind check and the buffer view creation. AI-assisted.
lukaslw-lab commented 2026-12-01 20:05:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T20:05:08Z.


Re the caveat in https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7305353821 about our 6 idxen offen requests: #3760 covers them. #3710 alone does not.

All runs are on main 158ef794, which already has our #3702/#3704/#3705 and your #3706:

Tree 6 requests stop at
main +0x55c/+0x56c: graphics register undefined on an incoming path (v18, v20, v22)
main + #3710 (a7d98042) same
main + #3760 (c4ee8a14, contains #3710) +0x82c–+0x844: unsupported mesh instruction or EXEC state: v_cvt_f16_f32

Their shape: inside the vertex skip, a load index is written under the saved mask. Then a nested v_cmpx_eq_u32 skip closes at its own s_mov_b64 exec, s[20:21], and a SAVEEXEC else arm (s_xor_b64 vcc, -1) reads the index. #3760's carry through a nested skip that closes at a restore handles it.

The next wall, v_cvt_f16_f32, is already in #3666 (and #3743), so nothing new to claim from these 6.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7324010963 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7324010963). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T20:05:08Z. --- Re the caveat in https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7305353821 about our 6 `idxen offen` requests: **#3760 covers them.** #3710 alone does not. All runs are on `main` `158ef794`, which already has our #3702/#3704/#3705 and your #3706: | Tree | 6 requests stop at | |---|---| | `main` | `+0x55c`/`+0x56c`: `graphics register undefined on an incoming path` (v18, v20, v22) | | `main` + #3710 (`a7d98042`) | same | | `main` + #3760 (`c4ee8a14`, contains #3710) | `+0x82c`–`+0x844`: `unsupported mesh instruction or EXEC state: v_cvt_f16_f32` | Their shape: inside the vertex skip, a load index is written under the saved mask. Then a nested `v_cmpx_eq_u32` skip closes at its own `s_mov_b64 exec, s[20:21]`, and a SAVEEXEC else arm (`s_xor_b64 vcc, -1`) reads the index. #3760's carry through a nested skip that closes at a restore handles it. The next wall, `v_cvt_f16_f32`, is already in #3666 (and #3743), so nothing new to claim from these 6.
mumba17 commented 2026-12-01 21:05:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T21:05:21Z.


Taking the biggest wall left on our combined stack: mesh SAVEEXEC then arm depends on EXEC (215 of 1,569 after #3722 merged).

158 of the 215 have the same shape inside the SAVEEXEC then arm: s_mov_b64 sX, exec, some vector work, one v_cmpx, s_cbranch_execz L, and s_mov_b64 exec, sX at L. Each lane runs the work, then the skipped part only if the compare holds. That is the if-only region s_and_saveexec_b64 would open on the compare, so the frontend can lower it through the existing nested SAVEEXEC diamond. PR follows in a few minutes.

Not covered:

  • the form whose EXECZ jumps to the outer arm's end instead of a local restore;
  • the 57 s_and_b64 vcc, exec, sN + s_cbranch_vccnz uniform branches.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7325725142 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7325725142). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T21:05:21Z. --- Taking the biggest wall left on our combined stack: `mesh SAVEEXEC then arm depends on EXEC` (215 of 1,569 after #3722 merged). 158 of the 215 have the same shape inside the SAVEEXEC then arm: `s_mov_b64 sX, exec`, some vector work, one `v_cmpx`, `s_cbranch_execz L`, and `s_mov_b64 exec, sX` at L. Each lane runs the work, then the skipped part only if the compare holds. That is the if-only region `s_and_saveexec_b64` would open on the compare, so the frontend can lower it through the existing nested SAVEEXEC diamond. PR follows in a few minutes. Not covered: - the form whose EXECZ jumps to the outer arm's end instead of a local restore; - the 57 `s_and_b64 vcc, exec, sN` + `s_cbranch_vccnz` uniform branches. AI-assisted.
mumba17 commented 2026-12-01 22:02:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T22:02:27Z.


Update on the SAVEEXEC wall:

  • #3782 now also covers the chain form, where the EXECZ after the CMPX skips to the end of an if-only arm. Census on the stack: 975 of 1,569.
  • #3785 fixes the 13 unproven mesh mask operand programs. The then-arm scan counted every 32-bit SALU write as a register pair, so a lane mask in the neighbouring SGPR was cleared at the join. Census on the stack with both: 988.

The 57 left at then arm depends on EXEC (s_and_b64 vcc, exec, sN + s_cbranch_vccnz on a uniform compare) are bigger than they look. The arms also hold loops (backward s_cbranch_scc0), nested SAVEEXECs sharing one EXECZ target, and CMPX copies restored far away. I have a local start on the uniform VCC test but am not claiming that family; anyone is welcome to it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7327181254 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7327181254). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T22:02:27Z. --- Update on the SAVEEXEC wall: - #3782 now also covers the chain form, where the EXECZ after the CMPX skips to the end of an if-only arm. Census on the stack: 975 of 1,569. - #3785 fixes the 13 `unproven mesh mask operand` programs. The then-arm scan counted every 32-bit SALU write as a register pair, so a lane mask in the neighbouring SGPR was cleared at the join. Census on the stack with both: 988. The 57 left at `then arm depends on EXEC` (`s_and_b64 vcc, exec, sN` + `s_cbranch_vccnz` on a uniform compare) are bigger than they look. The arms also hold loops (backward `s_cbranch_scc0`), nested SAVEEXECs sharing one EXECZ target, and CMPX copies restored far away. I have a local start on the uniform VCC test but am not claiming that family; anyone is welcome to it. AI-assisted.
mumba17 commented 2026-12-01 22:37:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T22:37:53Z.


#3790 is up for v_readfirstlane_b32 (27 programs on the stack), stacked on #3770. 26 of them read the first lane of a buffer load at a uniform address; it now marks those loads uniform, as the heap typed load already did.

On our stack it gains nothing yet: 18 move on to v_and_or_b32 (#3659 / #3743) and 8 to v_cmpx_lt_f32 (#3666), so the gain shows once those land.

I'm pausing new walls here; I'll keep answering reviews on our open PRs.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7328120851 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7328120851). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-01T22:37:53Z. --- #3790 is up for `v_readfirstlane_b32` (27 programs on the stack), stacked on #3770. 26 of them read the first lane of a buffer load at a uniform address; it now marks those loads uniform, as the heap typed load already did. On our stack it gains nothing yet: 18 move on to `v_and_or_b32` (#3659 / #3743) and 8 to `v_cmpx_lt_f32` (#3666), so the gain shows once those land. I'm pausing new walls here; I'll keep answering reviews on our open PRs. AI-assisted.
timbot103 commented 2026-12-01 22:43:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T22:43:45Z.


@mumba17 Yes — turning typed-table-in-skip into a positive case in #3770 while keeping descriptor-table format/stride validation fail-closed in native_mesh86.inl looks completely right to me; that control was only guarding against unvalidated table loads bypassing the heap contract.

Claiming the first slice of the remaining 57-program mesh SAVEEXEC then arm depends on EXEC family opened above: uniform s_and_b64 vcc, exec, sN (and symmetric operand order) + s_cbranch_vccnz / s_cbranch_vccz inside a SAVEEXEC then arm (plus shared-target nested SAVEEXEC where clean), leaving backward loops and unproven EXEC mutations strictly refused. Source-built fixtures only, independent against main.

Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 621.40) + WARP.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7328251774 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7328251774). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-01T22:43:45Z. --- @mumba17 Yes — turning `typed-table-in-skip` into a positive case in #3770 while keeping descriptor-table format/stride validation fail-closed in `native_mesh86.inl` looks completely right to me; that control was only guarding against unvalidated table loads bypassing the heap contract. **Claiming** the first slice of the remaining 57-program `mesh SAVEEXEC then arm depends on EXEC` family opened above: uniform `s_and_b64 vcc, exec, sN` (and symmetric operand order) + `s_cbranch_vccnz` / `s_cbranch_vccz` inside a `SAVEEXEC` `then` arm (plus shared-target nested `SAVEEXEC` where clean), leaving backward loops and unproven EXEC mutations strictly refused. Source-built fixtures only, independent against `main`. Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 621.40) + WARP. AI-assisted.
timbot103 commented 2026-12-01 23:04:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T23:04:01Z.


PR #3797 is up for the claimed uniform s_and_b64 vcc, exec, sN + s_cbranch_vccnz/vccz and shared-exit nested SAVEEXEC slice (independent against main 158ef794, Debug + Release 2/2 passed with DXC validation, stale-VCC clobber control, and non-uniform / inverse-else / backward-branch negative controls).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7328744884 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7328744884). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-01T23:04:01Z. --- PR #3797 is up for the claimed uniform `s_and_b64 vcc, exec, sN` + `s_cbranch_vccnz`/`vccz` and shared-exit nested `SAVEEXEC` slice (independent against `main` `158ef794`, Debug + Release 2/2 passed with DXC validation, stale-VCC clobber control, and non-uniform / inverse-else / backward-branch negative controls). AI-assisted.
timbot103 commented 2026-12-02 00:38:02 +00:00 (Migrated from github.com)
Author
Contributor

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


Claiming item 3b (indexed_raw_srv runtime binding in src/startup_stubs/native_mesh86.inl, now that #3718 / #3639's committed root SRV is merged on main 158ef794).

Plan: accept ComputeViewKind::indexed_raw_srv in make_native_mesh86_root and bind_native_mesh86, validate the guest descriptor's stride against source.required_bytes (matching the VS/PS check in d3d12_draw.inl), and add positive and wrong-stride refusal fixtures on WARP and RTX 5080. Keeps clear of #3770 (typed_buffer_srv).

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:7330784358 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7330784358). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T00:38:02Z. --- Claiming **item 3b** (`indexed_raw_srv` runtime binding in `src/startup_stubs/native_mesh86.inl`, now that #3718 / #3639's committed root SRV is merged on `main` `158ef794`). Plan: accept `ComputeViewKind::indexed_raw_srv` in `make_native_mesh86_root` and `bind_native_mesh86`, validate the guest descriptor's stride against `source.required_bytes` (matching the VS/PS check in `d3d12_draw.inl`), and add positive and wrong-stride refusal fixtures on WARP and RTX 5080. Keeps clear of #3770 (`typed_buffer_srv`). 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 00:56:10 +00:00 (Migrated from github.com)
Author
Contributor

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


PR https://github.com/R0Y00/Xbox2Windows/pull/3807 is up for item 3b (indexed_raw_srv runtime binding in
ative_mesh86.inl, independent against main 158ef794). Verified 55/55 Mesh86 tests in both Debug and Release on WARP and RTX 5080 (native V# and structured view tokens paint 8/8 green pixels; mesh/pixel stride mismatch, raw 0-stride, and unbacked controls paint 0/8 with expected binding refusals).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7331124731 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7331124731). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T00:56:10Z. --- PR https://github.com/R0Y00/Xbox2Windows/pull/3807 is up for **item 3b** (indexed_raw_srv runtime binding in ative_mesh86.inl, independent against main 158ef794). Verified 55/55 Mesh86 tests in both Debug and Release on WARP and RTX 5080 (native V# and structured view tokens paint 8/8 green pixels; mesh/pixel stride mismatch, raw 0-stride, and unbacked controls paint 0/8 with expected binding refusals). AI-assisted.
lukaslw-lab commented 2026-12-02 02:40:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T02:40:00Z.


The pixel halves of these pipelines have their own walls: #3814 lists the first refusal of every captured slot 86 pixel stage. #3815 lowers the largest shape, a flat two-armed CMPX if/else, and 322 of the 3,370 stages at graphics branch on a wave mask move on. The 24 pixel stages of the Mesh86 draws above now pass every CMPX region. They stop next at an interpolation after a branch in a looping shader (18) and at a readfirstlane (6).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7333072023 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7333072023). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-02T02:40:00Z. --- The pixel halves of these pipelines have their own walls: #3814 lists the first refusal of every captured slot 86 pixel stage. #3815 lowers the largest shape, a flat two-armed CMPX if/else, and 322 of the 3,370 stages at `graphics branch on a wave mask` move on. The 24 pixel stages of the Mesh86 draws above now pass every CMPX region. They stop next at an interpolation after a branch in a looping shader (18) and at a readfirstlane (6). AI-assisted.
lukaslw-lab commented 2026-12-02 04:48:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T04:48:43Z.


Earlier census and claims, main 0dd65da1

Latest counts: main 25f8ebec5, 1,890 translate, next refusal buckets.

This is a fresh first-refusal count after today's merges (#3743, #3770, #3782, #3797, #3721, #3807, #3664). The capture is not mumba17's. It comes from one arm-B run of the local case-study package (the one behind #3814): 6,685 distinct .m86 programs (24,817 requests), each run once through compile_dxil … gfx1013-container-ms-texture-heap. Counts only; request bytes stay local.

  • main: 1,036 translate (3,775 requests).
  • main + #3707 + #3712: 1,061. #3707 clears all 25 unsupported mesh scalar branch destination (the loops). #3712 clears 6 Texture1D-contract programs, which then stop at v_readfirstlane_b32.
First refusal Programs Owner
graphics register undefined on an incoming path 1,259 part #3710/#3760 (both merged); v_cvt_f16_f32 part: mumba17, #3862 (merged); rest open
v_readfirstlane_b32 813 part #3790 (merged); narrowed-skip and active-lane broadcast: timbot103, #3842 (draft)
unsupported image dimension or D16 609 timbot103, #3836 (draft)
v_cvt_f32_f16 573 #3666 (needs a rebase)
mesh heap slot lacks masked root constant provenance 544 timbot103, #3835 (draft; shapes #3719 does not cover)
mesh vertex outputs do not share the position mask 308 timbot103, #3832 (draft)
mesh image load lacks a remapped Texture1D heap contract 193 part us, #3712 (merged); rest timbot103, #3844 (draft)
v_cmpx_lt_f32 164 #3666
unsupported v_pack_b32_f16 constant source 132 timbot103, #3827 (merged)
mesh SAVEEXEC then arm depends on EXEC 84 timbot103, #3843 (draft)
mesh SAVEEXEC VCC test requires an immediate VCC branch 77 timbot103, #3843 (draft)
mesh scalar memory needs a verified guest root mapping: s_load_dwordx4 77 timbot103, #3835 (draft)
unproven mesh entry register N (about 25 registers) 392 timbot103, #3838 (draft: s3 wave index only); rest claimed
small ALU: v_cmpx_eq_f32 63, s_cmpk_gt_u32 52, v_cmpx_neq_f32 45, v_min_f32 38, s_bcnt1_i32_b32 19, s_cmpk_eq_i32 16, v_bfi_b32 13, … 261 timbot103, #3827 (merged; the forms listed)
Validation failed. 3 us, #3825 (merged; fixes #3824)
other: packed signature rows 59, VCC branch without a whole-wave mask 35, scalar branch destination 25 (#3707), … 160 packed rows + VCC branch: timbot103, #3841 (merged); scalar branch: us, #3707 (merged)
  • #3666 and #3659 currently conflict with main.
  • First refusal only: clearing one refusal shows the next.
  • Owners updated 2 Dec from the claims below.
  • Local stack check, 2 Dec: f365f125 + #3825 translates 1,039. With #3707, #3712, #3710/#3760, #3790, #3806 and #3827 stacked as well: 1,876, none lost, no validation failures. The next walls are unproven pair of packed mesh signature rows (264) and buffer_load_format_xyzw (164; timbot103, #3846 draft).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7335284838 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7335284838). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-02T04:48:43Z. --- ## Earlier census and claims, main `0dd65da1` Latest counts: main `25f8ebec5`, 1,890 translate, [next refusal buckets](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7360936489). This is a fresh first-refusal count after today's merges (#3743, #3770, #3782, #3797, #3721, #3807, #3664). The capture is not mumba17's. It comes from one arm-B run of the local case-study package (the one behind #3814): **6,685 distinct `.m86` programs** (24,817 requests), each run once through `compile_dxil … gfx1013-container-ms-texture-heap`. Counts only; request bytes stay local. - **main: 1,036 translate** (3,775 requests). - **main + #3707 + #3712: 1,061.** #3707 clears all 25 `unsupported mesh scalar branch destination` (the loops). #3712 clears 6 Texture1D-contract programs, which then stop at `v_readfirstlane_b32`. | First refusal | Programs | Owner | |---|---:|---| | `graphics register undefined on an incoming path` | 1,259 | part #3710/#3760 (both merged); `v_cvt_f16_f32` part: mumba17, #3862 (merged); rest open | | `v_readfirstlane_b32` | 813 | part #3790 (merged); narrowed-skip and active-lane broadcast: timbot103, #3842 (draft) | | `unsupported image dimension or D16` | 609 | timbot103, #3836 (draft) | | `v_cvt_f32_f16` | 573 | #3666 (needs a rebase) | | `mesh heap slot lacks masked root constant provenance` | 544 | timbot103, #3835 (draft; shapes #3719 does not cover) | | `mesh vertex outputs do not share the position mask` | 308 | timbot103, #3832 (draft) | | `mesh image load lacks a remapped Texture1D heap contract` | 193 | part us, #3712 (merged); rest timbot103, #3844 (draft) | | `v_cmpx_lt_f32` | 164 | #3666 | | `unsupported v_pack_b32_f16 constant source` | 132 | timbot103, #3827 (merged) | | `mesh SAVEEXEC then arm depends on EXEC` | 84 | timbot103, #3843 (draft) | | `mesh SAVEEXEC VCC test requires an immediate VCC branch` | 77 | timbot103, #3843 (draft) | | `mesh scalar memory needs a verified guest root mapping: s_load_dwordx4` | 77 | timbot103, #3835 (draft) | | `unproven mesh entry register N` (about 25 registers) | 392 | timbot103, #3838 (draft: `s3` wave index only); rest claimed | | small ALU: `v_cmpx_eq_f32` 63, `s_cmpk_gt_u32` 52, `v_cmpx_neq_f32` 45, `v_min_f32` 38, `s_bcnt1_i32_b32` 19, `s_cmpk_eq_i32` 16, `v_bfi_b32` 13, … | 261 | timbot103, #3827 (merged; the forms listed) | | `Validation failed.` | 3 | us, #3825 (merged; fixes #3824) | | other: packed signature rows 59, VCC branch without a whole-wave mask 35, scalar branch destination 25 (#3707), … | 160 | packed rows + VCC branch: timbot103, #3841 (merged); scalar branch: us, #3707 (merged) | - #3666 and #3659 currently conflict with main. - First refusal only: clearing one refusal shows the next. - Owners updated 2 Dec from the claims below. - Local stack check, 2 Dec: `f365f125` + #3825 translates 1,039. With #3707, #3712, #3710/#3760, #3790, #3806 and #3827 stacked as well: **1,876**, none lost, no validation failures. The next walls are `unproven pair of packed mesh signature rows` (264) and `buffer_load_format_xyzw` (164; timbot103, #3846 draft). AI-assisted.
lukaslw-lab commented 2026-12-02 06:14:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T06:14:58Z.


The 3 Validation failed. mesh programs from the census above: cause and fix in #3824 / #3825. The census row moves from 1,036 to 1,039 translated; no other program changes outcome.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7336799900 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7336799900). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-02T06:14:58Z. --- The 3 `Validation failed.` mesh programs from the census above: cause and fix in #3824 / #3825. The census row moves from 1,036 to 1,039 translated; no other program changes outcome.
timbot103 commented 2026-12-02 06:42:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T06:42:19Z.


Claiming two small, self-contained mesh items from the 0dd65da1 census (combined into one small focused PR):

  1. unsupported v_pack_b32_f16 constant source (132 programs): RDNA2 binary16 inline/literal constant operands in v_pack_b32_f16 (preserving op_sel, abs, neg, and fail-closed refusals).
  2. Small ALU cluster (261 programs): v_cmpx_eq_f32, v_cmpx_neq_f32, s_cmpk_* (s_cmpk_gt_u32, s_cmpk_eq_i32, etc.), v_min_f32 / v_max_f32, s_bcnt1_i32_b32, and v_bfi_b32 in the mesh frontend.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7337313432 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7337313432). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T06:42:19Z. --- Claiming two small, self-contained mesh items from the `0dd65da1` census (combined into one small focused PR): 1. **`unsupported v_pack_b32_f16 constant source`** (132 programs): RDNA2 binary16 inline/literal constant operands in `v_pack_b32_f16` (preserving `op_sel`, `abs`, `neg`, and fail-closed refusals). 2. **Small ALU cluster** (261 programs): `v_cmpx_eq_f32`, `v_cmpx_neq_f32`, `s_cmpk_*` (`s_cmpk_gt_u32`, `s_cmpk_eq_i32`, etc.), `v_min_f32` / `v_max_f32`, `s_bcnt1_i32_b32`, and `v_bfi_b32` in the mesh frontend.
timbot103 commented 2026-12-02 07:27:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T07:27:49Z.


Opened #3827 for the claimed mesh small ALU cluster (v_cmpx_<p>_f32, s_cmpk_*, s_bcnt0/1_i32_b32, v_min_f32, v_bfi_b32) + v_pack_b32_f16 constant sources.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7338212869 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7338212869). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T07:27:49Z. --- Opened #3827 for the claimed mesh small ALU cluster (`v_cmpx_<p>_f32`, `s_cmpk_*`, `s_bcnt0/1_i32_b32`, `v_min_f32`, `v_bfi_b32`) + `v_pack_b32_f16` constant sources.
timbot103 commented 2026-12-02 07:46:00 +00:00 (Migrated from github.com)
Author
Contributor

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


Claiming three disjoint #3703 mesh slices from the 0dd65da1 census (will stage as Draft PRs per #3514 until our active review slots open, each with source-built DXIL + verification fixtures):

  1. unsupported image dimension or D16 (609 programs): D16 image_load (and direct image dimension/D16 forms) in decode and lowering.
  2. mesh vertex outputs do not share the position mask (308 programs): mesh vertex export mask matching when POS0 and PARAM exports have sound masks.
  3. mesh heap slot lacks masked root constant provenance (544 programs, shapes beyond #3719) + mesh scalar memory needs a verified guest root mapping: s_load_dwordx4 (77 programs).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7338582772 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7338582772). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T07:46:00Z. --- Claiming three disjoint `#3703` mesh slices from the `0dd65da1` census (will stage as Draft PRs per #3514 until our active review slots open, each with source-built DXIL + verification fixtures): 1. **`unsupported image dimension or D16`** (609 programs): `D16` `image_load` (and direct image dimension/D16 forms) in decode and lowering. 2. **`mesh vertex outputs do not share the position mask`** (308 programs): mesh vertex export mask matching when `POS0` and `PARAM` exports have sound masks. 3. **`mesh heap slot lacks masked root constant provenance`** (544 programs, shapes beyond #3719) + **`mesh scalar memory needs a verified guest root mapping: s_load_dwordx4`** (77 programs).
timbot103 commented 2026-12-02 08:04:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:04:57Z.


Wave 1 Draft PR opened & claiming next disjoint #3703 slice (staged as Draft per #3514):

  • Opened Draft: #3832 (mesh vertex outputs do not share the position mask, 308 programs).
  • Claiming next: unproven mesh entry register N (392 programs): safe mesh entry ABI registers / system SGPR & VGPR handling in src/gfx1013_direct_mesh.inl.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7338979347 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7338979347). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T08:04:57Z. --- Wave 1 Draft PR opened & claiming next disjoint `#3703` slice (staged as Draft per #3514): - Opened Draft: #3832 (`mesh vertex outputs do not share the position mask`, 308 programs). - Claiming next: **`unproven mesh entry register N`** (392 programs): safe mesh entry ABI registers / system SGPR & VGPR handling in `src/gfx1013_direct_mesh.inl`.
timbot103 commented 2026-12-02 08:11:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:11:34Z.


Wave 1 Draft PRs opened & claiming 3 more disjoint #3703 mesh slices (staged as Drafts per #3514):

  • Opened Drafts: #3832 (output position mask), #3835 (heap provenance + s_load_dwordx4), plus mesh-image-load-d16 finishing final build verification.
  • Claiming next:
    1. v_readfirstlane_b32 inside narrowed exec_skip / active-lane broadcast (unclaimed part of 813 programs, extending #3793).
    2. mesh SAVEEXEC then arm depends on EXEC (84) + mesh SAVEEXEC VCC test requires an immediate VCC branch (77) (161 programs).
    3. Packed mesh signature rows (59) + VCC branch without a whole-wave mask (35) (94 programs).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7339121748 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7339121748). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T08:11:34Z. --- Wave 1 Draft PRs opened & claiming 3 more disjoint `#3703` mesh slices (staged as Drafts per #3514): - Opened Drafts: #3832 (output position mask), #3835 (heap provenance + `s_load_dwordx4`), plus `mesh-image-load-d16` finishing final build verification. - Claiming next: 1. **`v_readfirstlane_b32` inside narrowed `exec_skip` / active-lane broadcast** (unclaimed part of 813 programs, extending #3793). 2. **`mesh SAVEEXEC then arm depends on EXEC` (84) + `mesh SAVEEXEC VCC test requires an immediate VCC branch` (77)** (161 programs). 3. **Packed mesh signature rows (59) + `VCC branch without a whole-wave mask` (35)** (94 programs).
timbot103 commented 2026-12-02 08:18:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:18:42Z.


Draft PR opened & claiming next #3703 mesh slice (staged as Draft per #3514):

  • Opened Drafts: #3836 (direct D16 image_load / image_load_mip), #3838 (entry WaveInSubgroup s3[27:24] projections + FSSM range/width checks).
  • Claiming next: mesh image load lacks a remapped Texture1D heap contract (193 programs — non-D16 dmask / dim / bound-table / image_load_mip mesh image loads).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7339277399 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7339277399). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T08:18:42Z. --- Draft PR opened & claiming next `#3703` mesh slice (staged as Draft per #3514): - Opened Drafts: #3836 (direct `D16` `image_load` / `image_load_mip`), #3838 (entry `WaveInSubgroup` `s3[27:24]` projections + FSSM range/width checks). - Claiming next: **`mesh image load lacks a remapped Texture1D heap contract`** (193 programs — non-`D16` `dmask` / `dim` / bound-table / `image_load_mip` mesh image loads).
timbot103 commented 2026-12-02 08:35:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:35:08Z.


Claiming the next unclaimed wall noted in the 2 Dec stack check (staged as Draft per #3514):

  • buffer_load_format_xyzw (164 programs in the stacked mesh census; plus multi-component buffer_load_format_xy/xyz/xyzw in src/gfx1013_direct_mesh.inl).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7339649569 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7339649569). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T08:35:08Z. --- Claiming the next unclaimed wall noted in the 2 Dec stack check (staged as Draft per #3514): - **`buffer_load_format_xyzw`** (164 programs in the stacked mesh census; plus multi-component `buffer_load_format_xy`/`xyz`/`xyzw` in `src/gfx1013_direct_mesh.inl`).
timbot103 commented 2026-12-02 08:44:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:44:13Z.


Wave 2 + early Wave 3 Draft PRs opened (staged as Drafts per #3514):

  • #3841 (shader/mesh-packed-rows-vcc-branch): packed mesh signature rows (1–4 reflected FP16 rows, targeting the 264-program stacked wall) + whole-wave VCC branches (35 programs).
  • #3842 (shader/mesh-readfirstlane-skip): active-lane v_readfirstlane_b32 broadcast under narrowed EXEC & whole-wave skips (part of 813 programs; 48 WARP + RTX 5080 draws).
  • #3843 (shader/mesh-saveexec-exec-vcc): mesh SAVEEXEC THEN-arm EXEC handling (84) + scheduled/SCC VCC tests (77).
  • #3844 (shader/mesh-image-load-contract): mesh image_load & image_load_mip dmask/bound-table/Texture1D contracts (193 programs).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7339857569 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7339857569). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T08:44:13Z. --- Wave 2 + early Wave 3 Draft PRs opened (staged as Drafts per #3514): - #3841 (`shader/mesh-packed-rows-vcc-branch`): packed mesh signature rows (1–4 reflected FP16 rows, targeting the 264-program stacked wall) + whole-wave VCC branches (35 programs). - #3842 (`shader/mesh-readfirstlane-skip`): active-lane `v_readfirstlane_b32` broadcast under narrowed EXEC & whole-wave skips (part of 813 programs; 48 WARP + RTX 5080 draws). - #3843 (`shader/mesh-saveexec-exec-vcc`): mesh `SAVEEXEC` THEN-arm EXEC handling (84) + scheduled/SCC VCC tests (77). - #3844 (`shader/mesh-image-load-contract`): mesh `image_load` & `image_load_mip` `dmask`/bound-table/Texture1D contracts (193 programs).
timbot103 commented 2026-12-02 08:48:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:48:46Z.


Opened Draft PR for buffer_load_format_x/_xy/_xyz/_xyzw (164-program stacked mesh wall, staged as Draft per #3514):

  • #3846 (shader/mesh-buffer-load-format-xyzw — 46 validated DXIL modules + 26 refusals).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7339959695 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7339959695). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-02T08:48:46Z. --- Opened Draft PR for `buffer_load_format_x`/`_xy`/`_xyz`/`_xyzw` (164-program stacked mesh wall, staged as Draft per #3514): - #3846 (`shader/mesh-buffer-load-format-xyzw` — 46 validated DXIL modules + 26 refusals).
mumba17 commented 2026-12-02 14:45:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-02T14:45:33Z.


Claiming the v_cvt_f16_f32 part of the remaining graphics register undefined on an incoming path wall.

Census. A fresh native Mesh86 capture on main 5770f14e, RTX 3090, 600 s: 6,685 distinct .m86 programs. On main + #3710 + #3760 + #3790 (with #3851 and #3852 applied so it builds), 1,786 translate. 96 still stop at undefined on an incoming path. In 82 of them the failing instruction is v_cvt_f16_f32, and the undefined register is its destination. On gfx10 the conversion keeps the destination's high half, so the shared ALU reads the whole old register (read(i.dst)), which has no value on one incoming path. The other 14 are v_fmac_f32 (8) and v_mul_legacy_f32 (6), a different shape that I'm not claiming.

Change. Under graphics_half_writes (mesh), use the same partial-bits rule v_fma_mixlo_f16 already uses: keep the high half only where it is defined, and record the result as defined in bits 0xffff (plus whatever high bits were defined). A later read that needs the high half is still refused with graphics register read includes undefined bits.

Counts only; request bytes stay local.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7349088746 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7349088746). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-02T14:45:33Z. --- Claiming the `v_cvt_f16_f32` part of the remaining `graphics register undefined on an incoming path` wall. **Census.** A fresh native Mesh86 capture on `main` `5770f14e`, RTX 3090, 600 s: 6,685 distinct `.m86` programs. On `main` + #3710 + #3760 + #3790 (with #3851 and #3852 applied so it builds), 1,786 translate. 96 still stop at `undefined on an incoming path`. In 82 of them the failing instruction is `v_cvt_f16_f32`, and the undefined register is its *destination*. On gfx10 the conversion keeps the destination's high half, so the shared ALU reads the whole old register (`read(i.dst)`), which has no value on one incoming path. The other 14 are `v_fmac_f32` (8) and `v_mul_legacy_f32` (6), a different shape that I'm not claiming. **Change.** Under `graphics_half_writes` (mesh), use the same partial-bits rule `v_fma_mixlo_f16` already uses: keep the high half only where it is defined, and record the result as defined in bits `0xffff` (plus whatever high bits were defined). A later read that needs the high half is still refused with `graphics register read includes undefined bits`. Counts only; request bytes stay local. AI-assisted (Claude Code).
R0Y00 commented 2026-12-02 20:54:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T20:54:00Z.


Main now includes #3710, #3760 and #3790. The first two carry the proven lane set through nested CMPX skips and the matching EXEC restore. #3790 gives uniform-address mesh loads a direct read-first-lane path. I independently ran ctest --preset dev --no-tests=error -j 1 --output-on-failure -R '^native_direct_mesh$' on all three and on the final #3760 integration tree; each run passed. This verifies the source-built LLVM/DXIL and refusal fixtures. @mumba17, your remaining half-write slice stays with you. If you rerun the census on this main, please record the exact commit and the next refusal buckets here.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7358494917 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7358494917). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T20:54:00Z. --- Main now includes #3710, #3760 and #3790. The first two carry the proven lane set through nested CMPX skips and the matching EXEC restore. #3790 gives uniform-address mesh loads a direct read-first-lane path. I independently ran `ctest --preset dev --no-tests=error -j 1 --output-on-failure -R '^native_direct_mesh$'` on all three and on the final #3760 integration tree; each run passed. This verifies the source-built LLVM/DXIL and refusal fixtures. @mumba17, your remaining half-write slice stays with you. If you rerun the census on this main, please record the exact commit and the next refusal buckets here.
lukaslw-lab commented 2026-12-02 22:37:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T22:37:09Z.


Mesh census on main 25f8ebec5

Rerun after #3710, #3760, #3790 and #3712 merged. Same capture and method as our board: 6,685 distinct mesh programs, one first refusal each. 1,890 translate (1,036 on 0dd65da1).

A regression from my #3707 (#3892) hid the first refusal of 257 programs. The second column is 25f8ebec5 plus the fix that has since merged as #3893 (67862ee46); it changes no translated program. Use that column for the next buckets.

First refusal 25f8ebec5 25f8ebec5 + #3893
v_cvt_f32_f16 849 849
unsupported image dimension or D16 771 774
v_readfirstlane_b32 590 701
mesh heap slot lacks masked root constant provenance 467 555
mesh vertex outputs do not share the position mask 458 458
unproven packed mesh signature rows 292 292
mesh image load lacks a remapped Texture1D heap contract 227 227
mesh scalar memory needs a verified guest root mapping: s_load_dwordx4 204 214
buffer_load_format_xyzw 178 178
mesh SAVEEXEC VCC test requires an immediate VCC branch 127 127
mesh SAVEEXEC then arm depends on EXEC 84 84
mesh EXEC write inside a lane-skip block 81 81
indexed raw load outside a verified dword-aligned record 57 57
unbound numeric SGPR sN 55 55
VCC branch without a whole-wave mask 8 36
graphics register undefined on an incoming path 24 24
other 66 83
unknown gfx1013 opcode (#3892) 257 0

Owners stay on the board. First refusal only: clearing one shows the next.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7360936489 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7360936489). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-02T22:37:09Z. --- ## Mesh census on main `25f8ebec5` Rerun after #3710, #3760, #3790 and #3712 merged. Same capture and method as [our board](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7335284838): 6,685 distinct mesh programs, one first refusal each. **1,890 translate** (1,036 on `0dd65da1`). A regression from my #3707 (#3892) hid the first refusal of 257 programs. The second column is `25f8ebec5` plus the fix that has since merged as #3893 (`67862ee46`); it changes no translated program. Use that column for the next buckets. | First refusal | `25f8ebec5` | `25f8ebec5` + #3893 | |---|---:|---:| | `v_cvt_f32_f16` | 849 | 849 | | `unsupported image dimension or D16` | 771 | 774 | | `v_readfirstlane_b32` | 590 | 701 | | `mesh heap slot lacks masked root constant provenance` | 467 | 555 | | `mesh vertex outputs do not share the position mask` | 458 | 458 | | `unproven packed mesh signature rows` | 292 | 292 | | `mesh image load lacks a remapped Texture1D heap contract` | 227 | 227 | | `mesh scalar memory needs a verified guest root mapping: s_load_dwordx4` | 204 | 214 | | `buffer_load_format_xyzw` | 178 | 178 | | `mesh SAVEEXEC VCC test requires an immediate VCC branch` | 127 | 127 | | `mesh SAVEEXEC then arm depends on EXEC` | 84 | 84 | | `mesh EXEC write inside a lane-skip block` | 81 | 81 | | `indexed raw load outside a verified dword-aligned record` | 57 | 57 | | `unbound numeric SGPR sN` | 55 | 55 | | `VCC branch without a whole-wave mask` | 8 | 36 | | `graphics register undefined on an incoming path` | 24 | 24 | | other | 66 | 83 | | `unknown gfx1013 opcode` (#3892) | 257 | 0 | Owners stay on the board. First refusal only: clearing one shows the next. AI-assisted.
lukaslw-lab commented 2026-12-03 00:16:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-03T00:16:39Z.


Work split on main 72cc7c7f4

Same capture and method as the board above: 6,685 distinct mesh programs, one first refusal each. 1,890 translate, unchanged by #3894. #3894 moved 565 of the 701 v_readfirstlane_b32 programs to later refusals (none translate yet), so several rows below grew. Shapes come from offline disassembly of the refusing programs, classified by the instruction at the refusal and the two before it.

Item First refusal / shape Programs Owner
C1 v_cvt_f32_f16 852 Leyukaka, #3886 (carries #3666)
I1 unsupported image dimension or D16: Texture1D image_load … d16 841 timbot103, #3836 (merged)
I2 mesh image load lacks a remapped Texture1D heap contract 241 timbot103, #3844 (merged)
H1 mesh heap slot lacks masked root constant provenance 555 timbot103, #3835 (merged)
H2 mesh scalar memory needs a verified guest root mapping: s_load_dwordx4 234 timbot103, #3835 (merged)
P1 mesh vertex outputs do not share the position mask 460 timbot103, #3832 (merged)
P2 unproven packed mesh signature rows: exp param0 after higher params, or under a SAVEEXEC skip 292 open (#3841 covered other forms)
U1 graphics register undefined on an incoming path: SAVEEXEC + s_cbranch_execz to exp pos0 (157 of 186) 186 open
E1 mesh EXEC write inside a lane-skip block: an s_andn2_b64 exec, sN, exec else-arm inside a lane skip (149 of 152) 152 open (#3765 covered the CMPX-only form)
E2 mesh SAVEEXEC VCC test requires an immediate VCC branch (127), mesh SAVEEXEC then arm depends on EXEC (84) 211 timbot103, #3843 (merged)
E3 VCC branch without a whole-wave mask 93 open
B1 buffer_load_format_xyzw (178) and _xy (38) 216 timbot103, #3846 (merged)
R1 v_readfirstlane_b32 left after #3894 136 timbot103, #3842 (merged): narrowed-EXEC part
A1 small ALU: v_xad_u32 66, v_log_f32 37, ds_swizzle_b32 17 120 lambirou (claim), #3903 (merged): v_xad_u32, v_log_f32; ds_swizzle_b32 open
— indexed raw load outside a verified dword-aligned record 57 open
— other 149 open
  • New since the earlier board: U1, E1 and E3 grew because #3894 moved programs into them; v_xad_u32 appeared for the same reason.
  • Claim a row here, as on the board above; owners there are unchanged.
  • Owners updated 3 Dec 04:29 UTC (#3832, #3835, #3836, #3838, #3842, #3844, #3843, #3846, #3903 merged). Counts are still from 72cc7c7f4; a new census follows.
  • First refusal only: clearing one shows the next.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7363003461 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7363003461). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-03T00:16:39Z. --- ## Work split on main `72cc7c7f4` Same capture and method as [the board above](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7335284838): 6,685 distinct mesh programs, one first refusal each. **1,890 translate**, unchanged by #3894. #3894 moved 565 of the 701 `v_readfirstlane_b32` programs to later refusals (none translate yet), so several rows below grew. Shapes come from offline disassembly of the refusing programs, classified by the instruction at the refusal and the two before it. | Item | First refusal / shape | Programs | Owner | |---|---|---:|---| | C1 | `v_cvt_f32_f16` | 852 | Leyukaka, #3886 (carries #3666) | | I1 | `unsupported image dimension or D16`: Texture1D `image_load … d16` | 841 | timbot103, #3836 (merged) | | I2 | `mesh image load lacks a remapped Texture1D heap contract` | 241 | timbot103, #3844 (merged) | | H1 | `mesh heap slot lacks masked root constant provenance` | 555 | timbot103, #3835 (merged) | | H2 | `mesh scalar memory needs a verified guest root mapping: s_load_dwordx4` | 234 | timbot103, #3835 (merged) | | P1 | `mesh vertex outputs do not share the position mask` | 460 | timbot103, #3832 (merged) | | P2 | `unproven packed mesh signature rows`: `exp param0` after higher params, or under a SAVEEXEC skip | 292 | open (#3841 covered other forms) | | U1 | `graphics register undefined on an incoming path`: SAVEEXEC + `s_cbranch_execz` to `exp pos0` (157 of 186) | 186 | open | | E1 | `mesh EXEC write inside a lane-skip block`: an `s_andn2_b64 exec, sN, exec` else-arm inside a lane skip (149 of 152) | 152 | open (#3765 covered the CMPX-only form) | | E2 | `mesh SAVEEXEC VCC test requires an immediate VCC branch` (127), `mesh SAVEEXEC then arm depends on EXEC` (84) | 211 | timbot103, #3843 (merged) | | E3 | `VCC branch without a whole-wave mask` | 93 | open | | B1 | `buffer_load_format_xyzw` (178) and `_xy` (38) | 216 | timbot103, #3846 (merged) | | R1 | `v_readfirstlane_b32` left after #3894 | 136 | timbot103, #3842 (merged): narrowed-EXEC part | | A1 | small ALU: `v_xad_u32` 66, `v_log_f32` 37, `ds_swizzle_b32` 17 | 120 | lambirou ([claim](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7363201174)), #3903 (merged): `v_xad_u32`, `v_log_f32`; `ds_swizzle_b32` open | | — | `indexed raw load outside a verified dword-aligned record` | 57 | open | | — | other | 149 | open | - New since the earlier board: U1, E1 and E3 grew because #3894 moved programs into them; `v_xad_u32` appeared for the same reason. - Claim a row here, as on the board above; owners there are unchanged. - Owners updated 3 Dec 04:29 UTC (#3832, #3835, #3836, #3838, #3842, #3844, #3843, #3846, #3903 merged). Counts are still from `72cc7c7f4`; a new census follows. - First refusal only: clearing one shows the next. AI-assisted.
lambirou commented 2026-12-03 00:26:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T00:26:52Z.


Claiming A1 (small ALU) on main 0b83a346: v_xad_u32 (66), v_log_f32 (37) and ds_swizzle_b32 (17).

I will start with v_xad_u32 and v_log_f32 in the native mesh lowerer. Both have an established semantic already used by the compute path: v_xad_u32 is (S0 ^ S1) + S2, and v_log_f32 is the shared log2 rule. I will then look at the 17 ds_swizzle_b32 programs separately, because the native mesh path has no lane-swizzle exchange yet and that part may need its own design.

PR to follow. Counts are from your capture; I will report the first-refusal delta on the same method.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7363201174 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7363201174). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-03T00:26:52Z. --- Claiming **A1 (small ALU)** on `main` `0b83a346`: `v_xad_u32` (66), `v_log_f32` (37) and `ds_swizzle_b32` (17). I will start with `v_xad_u32` and `v_log_f32` in the native mesh lowerer. Both have an established semantic already used by the compute path: `v_xad_u32` is `(S0 ^ S1) + S2`, and `v_log_f32` is the shared `log2` rule. I will then look at the 17 `ds_swizzle_b32` programs separately, because the native mesh path has no lane-swizzle exchange yet and that part may need its own design. PR to follow. Counts are from your capture; I will report the first-refusal delta on the same method.
lambirou commented 2026-12-03 00:36:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T00:36:26Z.


PR #3903 is open for the first part of A1: v_xad_u32 and v_log_f32 in the native mesh frontend.

  • v_xad_u32 (VOP3 0x345) now takes the shared three-source path and lowers to (S0 ^ S1) + S2, matching compute.
  • v_log_f32 (VOP1 0x27) now emits DXIL Log (dx.op.unary.f32 opcode 23).
  • ds_swizzle_b32 (17) stays refused; a lane-swizzle exchange is a separate design.

Local verification: release compile_dxil built, tests/native_direct_mesh_check.py exited 0 with source-built v_xad_u32 and v_log_f32 programs plus the unbound-source control, and tests/docs_links_check.py passed (258 files, 969 links). CI is running.

On your census this should move 103 of the 120 A1 programs to their next refusal; the 17 ds_swizzle ones stay. I have not rerun the full capture locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7363383597 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7363383597). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-03T00:36:26Z. --- PR [#3903](https://github.com/R0Y00/Xbox2Windows/pull/3903) is open for the first part of A1: `v_xad_u32` and `v_log_f32` in the native mesh frontend. - `v_xad_u32` (VOP3 `0x345`) now takes the shared three-source path and lowers to `(S0 ^ S1) + S2`, matching compute. - `v_log_f32` (VOP1 `0x27`) now emits DXIL Log (`dx.op.unary.f32` opcode 23). - `ds_swizzle_b32` (17) stays refused; a lane-swizzle exchange is a separate design. Local verification: release `compile_dxil` built, `tests/native_direct_mesh_check.py` exited 0 with source-built `v_xad_u32` and `v_log_f32` programs plus the unbound-source control, and `tests/docs_links_check.py` passed (258 files, 969 links). CI is running. On your census this should move 103 of the 120 A1 programs to their next refusal; the 17 `ds_swizzle` ones stay. I have not rerun the full capture locally.
R0Y00 commented 2026-12-03 04:21:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T04:21:47Z.


Main now includes #3842 (43055293) and #3846 (0bb85d8f). The first-active-lane broadcast matched the source-built wave32 and wave64 readbacks on WARP and RTX 4060 Laptop. The typed-load fixture validated 46 DXIL modules and 26 expected refusals, including refusal of wider loads on the single-component resource-heap path. These are fixture results. The 6,685-program census has not been rerun on this integrated main, so the board's measured counts still belong to its stated commits.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7367555981 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7367555981). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T04:21:47Z. --- Main now includes #3842 (`43055293`) and #3846 (`0bb85d8f`). The first-active-lane broadcast matched the source-built wave32 and wave64 readbacks on WARP and RTX 4060 Laptop. The typed-load fixture validated 46 DXIL modules and 26 expected refusals, including refusal of wider loads on the single-component resource-heap path. These are fixture results. The 6,685-program census has not been rerun on this integrated main, so the board's measured counts still belong to its stated commits.
lukaslw-lab commented 2026-12-03 04:53:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-03T04:53:36Z.


Mesh census on main 368a045df

Same capture and method as the work split: 6,685 distinct mesh programs, one first refusal each. Rerun after the 3 Dec merges (#3832, #3835, #3836, #3838, #3842, #3843, #3844, #3846, #3903). #3904, merged since, changes pixel stages only.

2,063 translate (1,890 on 72cc7c7f4). The new passes come from #3844 (Texture1D contract) and #3832 (position mask). Most other merges moved programs to a later refusal, so some rows grew.

Item First refusal Programs on 72cc7c7f4 Owner
C1 v_cvt_f32_f16 852 852 Leyukaka, #3886 (open)
P2 unproven packed mesh signature rows 740 292 open
H2 mesh scalar memory needs a verified guest root mapping: s_load_dwordx4 585 234 open (#3835 merged covered other forms)
H1 mesh heap slot lacks masked root constant provenance 561 555 open (#3835 merged covered other forms)
P3 unsupported packed vertex export (new: 403 moved here by #3832, 61 by #3844) 467 3 open
E2 mesh SAVEEXEC then arm depends on EXEC (127 moved here by #3843) 277 84 open (#3843 merged covered the VCC-test form)
U1 graphics register undefined on an incoming path 199 186 open
X1 v_cmpx_lt_u32 (new) 178 0 open
E1 mesh EXEC write inside a lane-skip block 155 152 open
E3 VCC branch without a whole-wave mask 152 93 open
R1 v_readfirstlane_b32 143 136 open (#3842 merged covered the narrowed-EXEC part)
— unbound numeric SGPR sN (all registers) 102 open
A2 small ALU: v_med3_f32 67, v_exp_f32 23 (both new, 37 of them moved here by #3903) 90 0 open
— indexed raw load outside a verified dword-aligned record 57 57 open
A1 ds_swizzle_b32 17 17 open
— other 47 open
  • The I1 (D16) and B1 (typed buffer loads) rows are gone: #3836 and #3846 moved all of them on.
  • Claim a row here. Earlier boards keep their owners; rows already merged there are not repeated.
  • First refusal only: clearing one shows the next.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7368154618 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7368154618). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-03T04:53:36Z. --- ## Mesh census on main `368a045df` Same capture and method as [the work split](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7363003461): 6,685 distinct mesh programs, one first refusal each. Rerun after the 3 Dec merges (#3832, #3835, #3836, #3838, #3842, #3843, #3844, #3846, #3903). #3904, merged since, changes pixel stages only. **2,063 translate** (1,890 on `72cc7c7f4`). The new passes come from #3844 (Texture1D contract) and #3832 (position mask). Most other merges moved programs to a later refusal, so some rows grew. | Item | First refusal | Programs | on `72cc7c7f4` | Owner | |---|---|---:|---:|---| | C1 | `v_cvt_f32_f16` | 852 | 852 | Leyukaka, #3886 (open) | | P2 | `unproven packed mesh signature rows` | 740 | 292 | open | | H2 | `mesh scalar memory needs a verified guest root mapping: s_load_dwordx4` | 585 | 234 | open (#3835 merged covered other forms) | | H1 | `mesh heap slot lacks masked root constant provenance` | 561 | 555 | open (#3835 merged covered other forms) | | P3 | `unsupported packed vertex export` (new: 403 moved here by #3832, 61 by #3844) | 467 | 3 | open | | E2 | `mesh SAVEEXEC then arm depends on EXEC` (127 moved here by #3843) | 277 | 84 | open (#3843 merged covered the VCC-test form) | | U1 | `graphics register undefined on an incoming path` | 199 | 186 | open | | X1 | `v_cmpx_lt_u32` (new) | 178 | 0 | open | | E1 | `mesh EXEC write inside a lane-skip block` | 155 | 152 | open | | E3 | `VCC branch without a whole-wave mask` | 152 | 93 | open | | R1 | `v_readfirstlane_b32` | 143 | 136 | open (#3842 merged covered the narrowed-EXEC part) | | — | `unbound numeric SGPR sN` (all registers) | 102 | | open | | A2 | small ALU: `v_med3_f32` 67, `v_exp_f32` 23 (both new, 37 of them moved here by #3903) | 90 | 0 | open | | — | `indexed raw load outside a verified dword-aligned record` | 57 | 57 | open | | A1 | `ds_swizzle_b32` | 17 | 17 | open | | — | other | 47 | | open | - The I1 (D16) and B1 (typed buffer loads) rows are gone: #3836 and #3846 moved all of them on. - Claim a row here. Earlier boards keep their owners; rows already merged there are not repeated. - First refusal only: clearing one shows the next. AI-assisted.
timbot103 commented 2026-12-03 10:05:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:05:57Z.


Claiming these rows from the census on 368a045df:

  • P2, unproven packed mesh signature rows (740), together with P3, unsupported packed vertex export (467). Most of P3 moved there from our #3832 and #3844, and both rows sit in the same export path.
  • H2, s_load_dwordx4 root mapping (585), together with H1, heap slot root provenance (561). These follow on from #3835.
  • E2, mesh SAVEEXEC then arm depends on EXEC (277). This follows on from #3843.

All fixtures will be source-built, with Windows Debug and Release runs on WARP and the RTX 5080. Normalized shapes for these rows, like the ones you posted for G1 and W1–W7 on #3814, would help a lot. Fewer than 10 per row is enough to make sure we target the forms the capture actually contains.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7374732004 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7374732004). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-03T10:05:57Z. --- Claiming these rows from the census on `368a045df`: - **P2**, `unproven packed mesh signature rows` (740), together with **P3**, `unsupported packed vertex export` (467). Most of P3 moved there from our #3832 and #3844, and both rows sit in the same export path. - **H2**, `s_load_dwordx4` root mapping (585), together with **H1**, heap slot root provenance (561). These follow on from #3835. - **E2**, `mesh SAVEEXEC then arm depends on EXEC` (277). This follows on from #3843. All fixtures will be source-built, with Windows Debug and Release runs on WARP and the RTX 5080. Normalized shapes for these rows, like the ones you posted for G1 and W1–W7 on #3814, would help a lot. Fewer than 10 per row is enough to make sure we target the forms the capture actually contains.
timbot103 commented 2026-12-03 10:20:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:20:35Z.


Update to the claim above: H2 and H1 are on hold until normalized shapes are available. The census and work split do not show the base-SGPR or heap-offset definitions, so a fixture would only be guessing at the form. Meanwhile I am also taking X1 (v_cmpx_lt_u32, 178) and A2 (v_med3_f32 67, v_exp_f32 23). @lambirou, if you are continuing A2 from #3903, say so and I will drop it.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7375093769 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7375093769). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-03T10:20:35Z. --- Update to the claim above: H2 and H1 are on hold until normalized shapes are available. The census and work split do not show the base-SGPR or heap-offset definitions, so a fixture would only be guessing at the form. Meanwhile I am also taking **X1** (`v_cmpx_lt_u32`, 178) and **A2** (`v_med3_f32` 67, `v_exp_f32` 23). @lambirou, if you are continuing A2 from #3903, say so and I will drop it.
timbot103 commented 2026-12-03 10:21:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:21:29Z.


E2 is up as #3917. It handles the local-restore case of the distant CMPX restores from the work split, and the census delta is still to be measured. I am also taking two rows with concrete shapes: E1 (the s_andn2_b64 exec, sN, exec else-arm inside a lane skip, 149 of 152) and U1 (SAVEEXEC plus s_cbranch_execz to exp pos0, 157 of 186).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7375115242 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7375115242). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-03T10:21:29Z. --- E2 is up as #3917. It handles the local-restore case of the distant CMPX restores from the work split, and the census delta is still to be measured. I am also taking two rows with concrete shapes: **E1** (the `s_andn2_b64 exec, sN, exec` else-arm inside a lane skip, 149 of 152) and **U1** (SAVEEXEC plus `s_cbranch_execz` to `exp pos0`, 157 of 186).
timbot103 commented 2026-12-03 10:45:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:45:45Z.


Wave update on the claims above. PRs are up for E2 (#3917), A2 (#3921), X1 (#3922), E1 (#3923), P2 (#3924) and P3 (#3925, stacked on #3924). Census deltas still need a rerun.

U1 is on hold. I could not reproduce graphics register undefined on an incoming path from the description "SAVEEXEC + s_cbranch_execz to exp pos0" on d2e6a4ed, after 252 source-built variants:

  • Every variant where EXECZ targets exp pos0 directly stops earlier, at unsupported mesh export mask or allocation.
  • The only variant that produced the U1 message had POS0 on the fall-through. In that variant, an earlier skip wrote the source VGPR for thread 0 only, and the later SAVEEXEC selected that same thread.

If one or two normalized U1 programs are available, especially the instructions between the SAVEEXEC and exp pos0 and where the undefined register was last written, I can target the real form. H1/H2 are still on hold for the same reason.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7375730524 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7375730524). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-03T10:45:45Z. --- Wave update on the claims above. PRs are up for **E2** (#3917), **A2** (#3921), **X1** (#3922), **E1** (#3923), **P2** (#3924) and **P3** (#3925, stacked on #3924). Census deltas still need a rerun. **U1 is on hold.** I could not reproduce `graphics register undefined on an incoming path` from the description "SAVEEXEC + `s_cbranch_execz` to `exp pos0`" on `d2e6a4ed`, after 252 source-built variants: - Every variant where EXECZ targets `exp pos0` directly stops earlier, at `unsupported mesh export mask or allocation`. - The only variant that produced the U1 message had POS0 on the **fall-through**. In that variant, an earlier skip wrote the source VGPR for thread 0 only, and the later SAVEEXEC selected that same thread. If one or two normalized U1 programs are available, especially the instructions between the SAVEEXEC and `exp pos0` and where the undefined register was last written, I can target the real form. **H1/H2** are still on hold for the same reason.
mumba17 commented 2026-12-03 15:19:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T15:19:22Z.


Mesh census on main adfc0d94

As asked in https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7358494917. Our native Mesh86 capture (RTX 3090, 600 s): 6,685 distinct .m86 programs, each run once through compile_dxil … gfx1013-container-ms-texture-heap, one first refusal each. 2,161 translate.

First refusal Programs
v_cvt_f32_f16 852
unproven packed mesh signature rows 677
mesh scalar memory needs a verified guest root mapping: s_load_dwordx4 585
mesh heap slot lacks masked root constant provenance 561
unsupported packed vertex export 489
mesh SAVEEXEC then arm depends on EXEC 277
graphics register undefined on an incoming path 204
v_cmpx_lt_u32 178
mesh EXEC write inside a lane-skip block 169
v_readfirstlane_b32 157
VCC branch without a whole-wave mask 152
unbound numeric SGPR sN (all registers) 102
indexed raw load outside a verified dword-aligned record 57
ds_swizzle_b32 17
other 47

Half-write slice. None of the 204 undefined on an incoming path programs stop at a half write any more: 175 stop at an export (168 of them exp pos0, the U1 form timbot103 holds) and 29 at a whole-register ALU read of a value written on one path only. The half-write cases that were left are 5 programs at graphics register read includes undefined bits: an SDWA WORD_1 UNUSED_PRESERVE conversion over a register whose low half alone was written. #3941 fixes them: 2 translate and 3 move to the packed-row/packed-export rows, 0 lost. With that, the slice is done; I am not claiming the 29 ALU-read forms.

Counts only; request bytes stay local.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7382944223 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7382944223). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-03T15:19:22Z. --- ## Mesh census on main `adfc0d94` As asked in https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7358494917. Our native Mesh86 capture (RTX 3090, 600 s): 6,685 distinct `.m86` programs, each run once through `compile_dxil … gfx1013-container-ms-texture-heap`, one first refusal each. **2,161 translate.** | First refusal | Programs | |---|---:| | `v_cvt_f32_f16` | 852 | | `unproven packed mesh signature rows` | 677 | | `mesh scalar memory needs a verified guest root mapping: s_load_dwordx4` | 585 | | `mesh heap slot lacks masked root constant provenance` | 561 | | `unsupported packed vertex export` | 489 | | `mesh SAVEEXEC then arm depends on EXEC` | 277 | | `graphics register undefined on an incoming path` | 204 | | `v_cmpx_lt_u32` | 178 | | `mesh EXEC write inside a lane-skip block` | 169 | | `v_readfirstlane_b32` | 157 | | `VCC branch without a whole-wave mask` | 152 | | `unbound numeric SGPR sN` (all registers) | 102 | | `indexed raw load outside a verified dword-aligned record` | 57 | | `ds_swizzle_b32` | 17 | | other | 47 | **Half-write slice.** None of the 204 `undefined on an incoming path` programs stop at a half write any more: 175 stop at an export (168 of them `exp pos0`, the U1 form timbot103 holds) and 29 at a whole-register ALU read of a value written on one path only. The half-write cases that were left are 5 programs at `graphics register read includes undefined bits`: an SDWA WORD_1 `UNUSED_PRESERVE` conversion over a register whose low half alone was written. #3941 fixes them: 2 translate and 3 move to the packed-row/packed-export rows, 0 lost. With that, the slice is done; I am not claiming the 29 ALU-read forms. Counts only; request bytes stay local. AI-assisted (Claude Code).
mumba17 commented 2026-12-03 15:47:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T15:47:30Z.


Claiming E3, VCC branch without a whole-wave mask (152 on b78e10df in our census of the same 6,685 programs; 2,161 translate there).

All 152 refuse at s_cbranch_vccnz. In 134 of them the mask comes from a VOP3 float compare of an SGPR against 0, ANDed with EXEC into VCC, and the SGPR is a s_buffer_load_dword/_dwordx4 issued inside an entered EXECZ lane skip. The frontend records scalar loads as uniform only under whole-wave execution, so that compare never gets its wave-uniform proof. The fix also accepts the load inside an entered skip (the skip guard is the current EXEC), with the same address, branch and pending-edge conditions as before.

Local delta: 119 of the 152 move on, 0 translations lost, and no program outside E3 changes its first refusal. Most of them now stop at v_readfirstlane_b32 (74) and the s_load_dwordx4 root mapping (29). The 33 left in E3 are 18 programs whose VCC combines per-lane compares (that needs a cross-lane vote, not part of this) and 15 where the load sits under an open scalar branch. PR with source-built fixtures follows.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7383738427 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7383738427). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-03T15:47:30Z. --- Claiming **E3**, `VCC branch without a whole-wave mask` (152 on `b78e10df` in our census of the same 6,685 programs; 2,161 translate there). All 152 refuse at `s_cbranch_vccnz`. In 134 of them the mask comes from a VOP3 float compare of an SGPR against 0, ANDed with EXEC into VCC, and the SGPR is a `s_buffer_load_dword`/`_dwordx4` issued inside an entered EXECZ lane skip. The frontend records scalar loads as uniform only under whole-wave execution, so that compare never gets its wave-uniform proof. The fix also accepts the load inside an entered skip (the skip guard is the current EXEC), with the same address, branch and pending-edge conditions as before. Local delta: 119 of the 152 move on, 0 translations lost, and no program outside E3 changes its first refusal. Most of them now stop at `v_readfirstlane_b32` (74) and the `s_load_dwordx4` root mapping (29). The 33 left in E3 are 18 programs whose VCC combines per-lane compares (that needs a cross-lane vote, not part of this) and 15 where the load sits under an open scalar branch. PR with source-built fixtures follows. AI-assisted (Claude Code).
mumba17 commented 2026-12-03 16:11:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T16:11:15Z.


Claiming the part of R1 (v_readfirstlane_b32) where the read source is a v_cndmask_b32 of uniform values on a uniform lane mask (an EXEC-or-zero s_cselect_b64 or a uniform compare), with the select inside a per-lane CMPX skip nested under the mask's lanes. The mask proof was only accepted for the exact lane set it was made under. PR to follow.

On our capture (6,685 programs, main c6a0b036): 160 stop at v_readfirstlane_b32; this moves 99 of them, 0 lost. The other 61 read, inside a per-lane skip, values the frontend does not prove uniform (58), or stop in a loop body (3), and stay open.

Counts only; request bytes stay local.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7384414865 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7384414865). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-03T16:11:15Z. --- Claiming the part of **R1** (`v_readfirstlane_b32`) where the read source is a `v_cndmask_b32` of uniform values on a uniform lane mask (an EXEC-or-zero `s_cselect_b64` or a uniform compare), with the select inside a per-lane CMPX skip nested under the mask's lanes. The mask proof was only accepted for the exact lane set it was made under. PR to follow. On our capture (6,685 programs, main `c6a0b036`): 160 stop at `v_readfirstlane_b32`; this moves 99 of them, 0 lost. The other 61 read, inside a per-lane skip, values the frontend does not prove uniform (58), or stop in a loop body (3), and stay open. Counts only; request bytes stay local. AI-assisted (Claude Code).
mumba17 commented 2026-12-03 16:18:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T16:18:23Z.


@timbot103, a note on X1 (v_cmpx_lt_u32): the 99 programs #3946 moves all stop next at the SDWA form, v_cmpx_lt_u32_sdwa with src0_sel:WORD_0 followed by s_cbranch_execz. #3922 keeps SDWA refused, and the CMPX paths in #3886/#3666 also skip subword. Unless you are already on the SDWA form, I'll take just that slice and leave the rest of X1 with you.

Counts on our capture (6,685 programs, main c6a0b036 + #3946): 99 stop at it, and they still stop there with #3922 stacked.

Counts only; request bytes stay local.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7384615850 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7384615850). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-03T16:18:23Z. --- @timbot103, a note on **X1** (`v_cmpx_lt_u32`): the 99 programs #3946 moves all stop next at the **SDWA** form, `v_cmpx_lt_u32_sdwa` with `src0_sel:WORD_0` followed by `s_cbranch_execz`. #3922 keeps SDWA refused, and the CMPX paths in #3886/#3666 also skip `subword`. Unless you are already on the SDWA form, I'll take just that slice and leave the rest of X1 with you. Counts on our capture (6,685 programs, main `c6a0b036` + #3946): 99 stop at it, and they still stop there with #3922 stacked. Counts only; request bytes stay local. AI-assisted (Claude Code).
mumba17 commented 2026-12-03 16:49:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T16:49:50Z.


Claiming group 1 of unbound numeric SGPR sN: 48 of the 102 programs in that row (our census of the same 6,685 programs on main ac81f34e, 2,163 translate there).

In these 48, the read is reachable only on the path that defined the register: the other path joins with a constant flag that decides the VCC branch right after the join. The change threads that edge to the branch target in the mesh frontend's join handling. Local delta: 2,163 -> 2,186 translate, 0 lost; all 48 move (18 translate, 30 to the packed-row/export rows). 15 programs from graphics register undefined on an incoming path with the same join also move (5 translate). PR follows.

Not claimed:

  • Group 2 (41): numeric fields of an image descriptor loaded from a descriptor table. These need the runtime to supply the descriptor words, a runtime contract like the heap remap record (cf. #3801), so I'm leaving them.
  • Group 3 (13): the remaining forms.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7385516376 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7385516376). Originally posted by [mumba17](https://github.com/mumba17) on 2026-12-03T16:49:50Z. --- Claiming **group 1 of `unbound numeric SGPR sN`**: 48 of the 102 programs in that row (our census of the same 6,685 programs on main `ac81f34e`, 2,163 translate there). In these 48, the read is reachable only on the path that defined the register: the other path joins with a constant flag that decides the VCC branch right after the join. The change threads that edge to the branch target in the mesh frontend's join handling. Local delta: 2,163 -> 2,186 translate, 0 lost; all 48 move (18 translate, 30 to the packed-row/export rows). 15 programs from `graphics register undefined on an incoming path` with the same join also move (5 translate). PR follows. Not claimed: - Group 2 (41): numeric fields of an image descriptor loaded from a descriptor table. These need the runtime to supply the descriptor words, a runtime contract like the heap remap record (cf. #3801), so I'm leaving them. - Group 3 (13): the remaining forms. AI-assisted (Claude Code).
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#3703
No description provided.