GFX10 shader refusals: remaining shapes (tracking) #4

Open
opened 2026-11-26 06:57:22 +00:00 by LakshanSivakumar · 35 comments
LakshanSivakumar commented 2026-11-26 06:57:22 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T06:57:22Z.


Listed in docs/ROADMAP.md section 3. Each is testable without the game using hand-assembled GFX10 code (crates/victory-shader/src/emit/gfx_refusal_tests.rs).

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6621294246 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T06:57:22Z. --- Listed in docs/ROADMAP.md section 3. Each is testable without the game using hand-assembled GFX10 code (crates/victory-shader/src/emit/gfx_refusal_tests.rs).
LakshanSivakumar commented 2026-11-26 10:53:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T10:53:32Z.


Progress update: three shader PRs have merged to main covering related GFX10 shapes with hand-assembled synthetic tests:

  • #27 — recognize bit-field extraction (s_bfe_u32) in pixel primitive masks
  • #29 — lower computed pixel-buffer byte and halfword loads (buffer_load_{u,s}{byte,short})
  • #30 — lower v_permlane16_b32 and v_permlanex16_b32

Keeping #4 open until we verify which of the seven refused title shaders now translate cleanly on a live run.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7189976699 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7189976699). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T10:53:32Z. --- Progress update: three shader PRs have merged to `main` covering related GFX10 shapes with hand-assembled synthetic tests: - #27 — recognize bit-field extraction (`s_bfe_u32`) in pixel primitive masks - #29 — lower computed pixel-buffer byte and halfword loads (`buffer_load_{u,s}{byte,short}`) - #30 — lower `v_permlane16_b32` and `v_permlanex16_b32` Keeping #4 open until we verify which of the seven refused title shaders now translate cleanly on a live run.
LakshanSivakumar commented 2026-11-26 15:56:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T15:56:52Z.


Status: three of the seven shapes landed (#27, #29, #30), and #92, #84 and #56 added related lowering. #94 and #49 are open with changes requested. Open until a run shows which refused title shaders remain.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7196967902 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7196967902). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T15:56:52Z. --- Status: three of the seven shapes landed (#27, #29, #30), and #92, #84 and #56 added related lowering. #94 and #49 are open with changes requested. Open until a run shows which refused title shaders remain.
Olima34 commented 2026-11-26 16:40:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-26T16:40:24Z.


Data point for the refusals, since #85 names the root type: in #110 (current main, Series S), 52 of the 103 refusals listed are "FSPX metadata resource of root type 0: root constants in a compute shader". None are root type 5 or 6 (descriptor heaps), so I've dropped my heap change.

Compute root constants were turned off on purpose in a0b0990 ("Root constants in FSPX metadata only for graphics"). Before I touch it: what made you exclude compute? If it's the SGPR count, a guess per record seems risky to me, since a shader would read wrong values instead of being refused. A safer source may be Num32BitValues in the root signature that compute pipeline 0x218 passes (the pure-Rust reader from #83 decodes it). Would you take that approach, or is there a reason compute constants can't be lowered yet?

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7197949676 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7197949676). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-26T16:40:24Z. --- Data point for the refusals, since #85 names the root type: in #110 (current `main`, Series S), 52 of the 103 refusals listed are "FSPX metadata resource of root type 0: root constants in a compute shader". None are root type 5 or 6 (descriptor heaps), so I've dropped my heap change. Compute root constants were turned off on purpose in a0b0990 ("Root constants in FSPX metadata only for graphics"). Before I touch it: what made you exclude compute? If it's the SGPR count, a guess per record seems risky to me, since a shader would read wrong values instead of being refused. A safer source may be `Num32BitValues` in the root signature that compute pipeline 0x218 passes (the pure-Rust reader from #83 decodes it). Would you take that approach, or is there a reason compute constants can't be lowered yet?
Olima34 commented 2026-11-26 17:07:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-26T17:07:50Z.


Opened #114: compute root constants now take Num32BitValues from the root signature passed to 0x218. d02869f's guess stays as the fallback when no readable root signature is available, and a count that disagrees with the program is refused rather than read wrong.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7198542993 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7198542993). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-26T17:07:50Z. --- Opened #114: compute root constants now take `Num32BitValues` from the root signature passed to 0x218. d02869f's guess stays as the fallback when no readable root signature is available, and a count that disagrees with the program is refused rather than read wrong.
LakshanSivakumar commented 2026-11-26 17:13:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T17:13:42Z.


Update: today's fixes took the story load from 526 refused shaders to 149 unique ones. A further batch is on fix/shader-refusals-2 and being tested in game now:

  • the "hardware SGPR" reads, which turned out to be trailing compute root constants;
  • samplers built from constant bit masks;
  • the thread-group info SGPR;
  • LDS and cross-lane ops behind uniform branches or early exits.

Offline, 29 of the 146 remaining refused shaders translate fully with it. @Olima34, #114 is next in review. It complements the span guess with the real Num32BitValues.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7198682069 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7198682069). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T17:13:42Z. --- Update: today's fixes took the story load from 526 refused shaders to 149 unique ones. A further batch is on `fix/shader-refusals-2` and being tested in game now: - the "hardware SGPR" reads, which turned out to be trailing compute root constants; - samplers built from constant bit masks; - the thread-group info SGPR; - LDS and cross-lane ops behind uniform branches or early exits. Offline, 29 of the 146 remaining refused shaders translate fully with it. @Olima34, #114 is next in review. It complements the span guess with the real `Num32BitValues`.
LakshanSivakumar commented 2026-11-26 17:16:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T17:16:11Z.


@Olima34, assigning this to you. Please start from the shapes nobody here is working on:

  • lane-mask join of an untracked mask (14);
  • whole-wave section step (7);
  • lane mask or descriptor address read as data (4 + 3);
  • the v_pk_fmac_f16 constant (2).

We're keeping the cross-lane/LDS-in-divergent-code shapes and the bindless "descriptor outside the heaps" (host side). As before, one shape per PR with a gfx_refusal test.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7198746683 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7198746683). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T17:16:11Z. --- @Olima34, assigning this to you. Please start from the shapes nobody here is working on: - lane-mask join of an untracked mask (14); - whole-wave section step (7); - lane mask or descriptor address read as data (4 + 3); - the `v_pk_fmac_f16` constant (2). We're keeping the cross-lane/LDS-in-divergent-code shapes and the bindless "descriptor outside the heaps" (host side). As before, one shape per PR with a gfx_refusal test.
LakshanSivakumar commented 2026-11-26 18:10:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T18:10:29Z.


Thanks @Olima34. #117 (v_pk_fmac_f16 constants), #120 (wave64 lane-mask joins) and #128 (s_absdiff_i32) are merged and lower those shapes. #118, #121 and #122 are merged too: they name the cause in the lane-mask, whole-wave-section and descriptor-dword refusals, so the next tester log will show which forms remain.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7200139867 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7200139867). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T18:10:29Z. --- Thanks @Olima34. #117 (`v_pk_fmac_f16` constants), #120 (wave64 lane-mask joins) and #128 (`s_absdiff_i32`) are merged and lower those shapes. #118, #121 and #122 are merged too: they name the cause in the lane-mask, whole-wave-section and descriptor-dword refusals, so the next tester log will show which forms remain.
umutbcomak commented 2026-11-26 21:29:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by umutbcomak on 2026-11-26T21:29:52Z.


The Windows forks that run on NVIDIA have the same 32-lane problem as Apple GPUs, so they had to solve some of the shapes you're keeping (cross-lane and LDS in divergent code). Three of their fixes may be worth porting. None of them is on main here: I checked at 3009640b, and there is no wave-uniformity proof (lane_uniform) and no loose-LDS fallback. I haven't tested any of this on Metal, so treat it as a lead, not a result.

1. First-lane reads of a value that is the same in every lane of a console wave, inside a loop whose exit differs between console waves.
If every lane of the console wave holds the same value, each 32-lane half can read its own first lane, and the two halves never need to meet at a barrier. A fixed-point uniformity proof in lower.rs decides when that holds.

  • Origin: justrealyme and ryotdev in fxceless/victory-fork#497, narrowed by gomeaw in avatarmanz/VIctory-7900XTX#142.
  • It fixed the BVH builder's three prefix-scan programs: 39321a95223001ed, 77360df21e12ea43 and 9fc111d3be79364f. Together with avatarmanz#66 (counted partial workgroups), the builder reached 53 of 53 pipelines on an RTX 5070 Ti.
  • Commits in TaynanGT/Vice-Tay: 431cab5d (the main change), then the follow-ups abbbd6b0, 7bf91de4, 7348b80a and 368293ec. Each one tightens the proof and has its own test.

2. Loose-LDS fallback, a last resort for wave64 programs that read and write LDS inside one lane-branch region.
The two host waves are ordered only where the region is entered and left. It is approximate and can be turned off with VICTORY_WAVE_LDS_LOOSE=0.

  • Origin: fork PR #799 by Massive-Adrian. Vice-Tay 90143cef.

3. The BVH builder runs all or none.
On those forks the builder is opt-in (VICTORY_BVH_BUILDER=1).

  • It runs only once all 53 of its stages have a host pipeline.
  • If a stage is dropped mid-frame, the builder rests for that frame and the next.
  • Even with all 53 stages built, the title still crashed within seconds of the builder running on NVIDIA, so it stays off by default there.
  • Code: builder_runs / builder_rests in pipeline.rs.

Here a refused stage is skipped on its own while the others run. You already withhold the builder's writes after a missed list (memory::withholding), but an all-or-none gate might be a cheap experiment against the empty-AABB pointers, if they come back.

Caveats: the translators have diverged since 24 November, so 1 and 2 would be ports, not cherry-picks. The NVIDIA results say nothing yet about Metal Shader Converter.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7203782508 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7203782508). Originally posted by [umutbcomak](https://github.com/umutbcomak) on 2026-11-26T21:29:52Z. --- The Windows forks that run on NVIDIA have the same 32-lane problem as Apple GPUs, so they had to solve some of the shapes you're keeping (cross-lane and LDS in divergent code). Three of their fixes may be worth porting. None of them is on main here: I checked at `3009640b`, and there is no wave-uniformity proof (`lane_uniform`) and no loose-LDS fallback. I haven't tested any of this on Metal, so treat it as a lead, not a result. **1. First-lane reads of a value that is the same in every lane of a console wave, inside a loop whose exit differs between console waves.** If every lane of the console wave holds the same value, each 32-lane half can read its own first lane, and the two halves never need to meet at a barrier. A fixed-point uniformity proof in `lower.rs` decides when that holds. - Origin: justrealyme and ryotdev in fxceless/victory-fork#497, narrowed by gomeaw in avatarmanz/VIctory-7900XTX#142. - It fixed the BVH builder's three prefix-scan programs: `39321a95223001ed`, `77360df21e12ea43` and `9fc111d3be79364f`. Together with avatarmanz#66 (counted partial workgroups), the builder reached 53 of 53 pipelines on an RTX 5070 Ti. - Commits in TaynanGT/Vice-Tay: [431cab5d](https://github.com/TaynanGT/Vice-Tay/commit/431cab5d946a089e300bdff4d20b9bbc293cd655) (the main change), then the follow-ups abbbd6b0, 7bf91de4, 7348b80a and 368293ec. Each one tightens the proof and has its own test. **2. Loose-LDS fallback, a last resort for wave64 programs that read and write LDS inside one lane-branch region.** The two host waves are ordered only where the region is entered and left. It is approximate and can be turned off with `VICTORY_WAVE_LDS_LOOSE=0`. - Origin: fork PR #799 by Massive-Adrian. Vice-Tay [90143cef](https://github.com/TaynanGT/Vice-Tay/commit/90143cef2b4be7679c000e115c70135721139fdf). **3. The BVH builder runs all or none.** On those forks the builder is opt-in (`VICTORY_BVH_BUILDER=1`). - It runs only once all 53 of its stages have a host pipeline. - If a stage is dropped mid-frame, the builder rests for that frame and the next. - Even with all 53 stages built, the title still crashed within seconds of the builder running on NVIDIA, so it stays off by default there. - Code: [`builder_runs` / `builder_rests` in pipeline.rs](https://github.com/TaynanGT/Vice-Tay/blob/cdb1b4df4e8d32f0f16f1c23669a096bd907b227/crates/victory-gpu/src/pipeline.rs#L313-L360). Here a refused stage is skipped on its own while the others run. You already withhold the builder's writes after a missed list (`memory::withholding`), but an all-or-none gate might be a cheap experiment against the empty-AABB pointers, if they come back. Caveats: the translators have diverged since 24 November, so 1 and 2 would be ports, not cherry-picks. The NVIDIA results say nothing yet about Metal Shader Converter.
m0rff commented 2026-11-26 22:04:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-26T22:04:25Z.


@LakshanSivakumar, before I write any code: may I port the first of umutbcomak's three leads above? It's the first-lane read of a value that is the same in every lane of a console wave, inside a loop whose exit differs between console waves. You said you'd keep the cross-lane shapes, so I'll leave it alone if it's already on your branch or you'd rather do it yourself.

What I'd do, at 561e783:

  • Today split_scc in lower.rs counts every v_readfirstlane_b32 result as one that can differ between the two host waves. I'd add a fixed-point proof that the value read is the same in every lane of the console wave: scalar inputs, results of the uniform reads themselves, and VALU work on those only. Where the proof holds, each 32-lane half reads its own first lane and the result stays out of split_scc. Anything the proof can't show stays refused as now.
  • It would be a port, not a cherry-pick, of Vice-Tay 431cab5d plus its follow-ups (abbbd6b0, 7bf91de4, 7348b80a, 368293ec). I'd also bring over each follow-up's case as a test.
  • One shape, one PR, with a hand-assembled gfx_refusal test: it fails on main and lowers with the change. I'd add a second test where one lane differs, which must stay refused.
  • I don't have the game files yet, so I can't confirm the three BVH-builder prefix-scan programs live. A tester log would have to do that.

If yes, should it be its own PR against main, or would you rather it go onto your cross-lane branch?

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7204332483 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7204332483). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-26T22:04:25Z. --- @LakshanSivakumar, before I write any code: may I port the first of umutbcomak's three leads above? It's the first-lane read of a value that is the same in every lane of a console wave, inside a loop whose exit differs between console waves. You said you'd keep the cross-lane shapes, so I'll leave it alone if it's already on your branch or you'd rather do it yourself. What I'd do, at `561e783`: - Today `split_scc` in `lower.rs` counts every `v_readfirstlane_b32` result as one that can differ between the two host waves. I'd add a fixed-point proof that the value read is the same in every lane of the console wave: scalar inputs, results of the uniform reads themselves, and VALU work on those only. Where the proof holds, each 32-lane half reads its own first lane and the result stays out of `split_scc`. Anything the proof can't show stays refused as now. - It would be a port, not a cherry-pick, of Vice-Tay [431cab5d](https://github.com/TaynanGT/Vice-Tay/commit/431cab5d946a089e300bdff4d20b9bbc293cd655) plus its follow-ups (abbbd6b0, 7bf91de4, 7348b80a, 368293ec). I'd also bring over each follow-up's case as a test. - One shape, one PR, with a hand-assembled `gfx_refusal` test: it fails on main and lowers with the change. I'd add a second test where one lane differs, which must stay refused. - I don't have the game files yet, so I can't confirm the three BVH-builder prefix-scan programs live. A tester log would have to do that. If yes, should it be its own PR against `main`, or would you rather it go onto your cross-lane branch?
m0rff commented 2026-11-26 22:13:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-26T22:13:56Z.


Refusals by cause in the newest public log, the M5 Ultra run in #147 (57b7ebd, 639 refused, 636 distinct shaders). I grouped the title shader refused lines by their reason, without the code address.

# compute graphics cause who / status
204 204 0 a descriptor changed after loading: dword 1 masked or merged @Olima34, #157 (stride cleared, 0xc000ffff)
127 0 127 a cross-lane operation outside compute unclaimed: taking it. #158 names the op and stage first
74 74 0 a descriptor outside the heaps maintainer (host bindless)
52 16 36 a lane-mask join of an untracked mask: data, on the host's lanes @Olima34
43 0 43 a descriptor changed after loading: dword 0 computed otherwise same family as #131/#157
32 32 0 a cross-lane operation between host waves in divergent code maintainer
11 0 11 indexes the descriptor heap itself lowered on main since (bb6e8f1)
10 10 0 LDS shared in a wave the host splits, in divergent code maintainer
10 0 10 a lane mask read as data partly lowered since (mesh, 898208d)
9 9 0 a lane mask holding lanes elsewhere read as data: a scalar operation not modelled @Olima34
9 1 8 a compare with DPP lowered on main since (37f9cb5)
7 7 0 a whole-wave section step: a value that is no reduction or prefix @Olima34 (#155 is a related form)
7 7 0 a descriptor changed after loading: dword 0 masked or merged #131 family
6 6 0 a lane-mask join of an untracked mask: data, at a join of several edges @Olima34
4 4 0 a hardware SGPR input
34 18 smaller causes, 1 to 3 each

Compared with the earlier logs in #110: "a sampler built from computed words" was the top cause on b6f15be (145) and is 0 here. "Cross-lane outside compute" was 1 there and is 127 here, so it is probably the next refusal in the same pixel programs. Lowering it may uncover another refusal behind it.

On the prologue crash (#15). The BVH and AABB data the title reads back comes from compute shaders, and the 127 "outside compute" refusals are all graphics, so that group is unlikely to cause the empty-node read. The three BVH builder prefix-scan programs umutbcomak named above (39321a95223001ed, 77360df21e12ea43, 9fc111d3be79364f) do not appear in this log at all, neither refused nor translated. Either this build does not use them, or they are not logged when they translate cleanly. The candidates for an empty compute output stay the compute-only groups: 32 cross-lane and 10 LDS in divergent code. ROADMAP already ties the row-pitch assertion to one of those.

#158 splits "a cross-lane operation outside compute" by operation and stage, for example ...: ds_bpermute_b32 in a pixel program or ...: DPP row_shl, row_shr or row_ror in a pixel program. It lowers nothing. With it merged, one more tester log tells us which form to lower.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7204485674 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7204485674). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-26T22:13:56Z. --- Refusals by cause in the newest public log, the M5 Ultra run in #147 (57b7ebd, 639 refused, 636 distinct shaders). I grouped the `title shader refused` lines by their reason, without the code address. | # | compute | graphics | cause | who / status | |---|---|---|---|---| | 204 | 204 | 0 | a descriptor changed after loading: dword 1 masked or merged | @Olima34, #157 (stride cleared, `0xc000ffff`) | | 127 | 0 | 127 | a cross-lane operation outside compute | **unclaimed: taking it.** #158 names the op and stage first | | 74 | 74 | 0 | a descriptor outside the heaps | maintainer (host bindless) | | 52 | 16 | 36 | a lane-mask join of an untracked mask: data, on the host's lanes | @Olima34 | | 43 | 0 | 43 | a descriptor changed after loading: dword 0 computed otherwise | same family as #131/#157 | | 32 | 32 | 0 | a cross-lane operation between host waves in divergent code | maintainer | | 11 | 0 | 11 | indexes the descriptor heap itself | lowered on main since (bb6e8f1) | | 10 | 10 | 0 | LDS shared in a wave the host splits, in divergent code | maintainer | | 10 | 0 | 10 | a lane mask read as data | partly lowered since (mesh, 898208d) | | 9 | 9 | 0 | a lane mask holding lanes elsewhere read as data: a scalar operation not modelled | @Olima34 | | 9 | 1 | 8 | a compare with DPP | lowered on main since (37f9cb5) | | 7 | 7 | 0 | a whole-wave section step: a value that is no reduction or prefix | @Olima34 (#155 is a related form) | | 7 | 7 | 0 | a descriptor changed after loading: dword 0 masked or merged | #131 family | | 6 | 6 | 0 | a lane-mask join of an untracked mask: data, at a join of several edges | @Olima34 | | 4 | 4 | 0 | a hardware SGPR input | | | 34 | | | 18 smaller causes, 1 to 3 each | | Compared with the earlier logs in #110: "a sampler built from computed words" was the top cause on b6f15be (145) and is 0 here. "Cross-lane outside compute" was 1 there and is 127 here, so it is probably the next refusal in the same pixel programs. Lowering it may uncover another refusal behind it. **On the prologue crash (#15).** The BVH and AABB data the title reads back comes from compute shaders, and the 127 "outside compute" refusals are all graphics, so that group is unlikely to cause the empty-node read. The three BVH builder prefix-scan programs umutbcomak named above (`39321a95223001ed`, `77360df21e12ea43`, `9fc111d3be79364f`) do not appear in this log at all, neither refused nor translated. Either this build does not use them, or they are not logged when they translate cleanly. The candidates for an empty compute output stay the compute-only groups: 32 cross-lane and 10 LDS in divergent code. ROADMAP already ties the row-pitch assertion to one of those. **#158** splits "a cross-lane operation outside compute" by operation and stage, for example `...: ds_bpermute_b32 in a pixel program` or `...: DPP row_shl, row_shr or row_ror in a pixel program`. It lowers nothing. With it merged, one more tester log tells us which form to lower.
LakshanSivakumar commented 2026-11-26 22:52:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T22:52:54Z.


@m0rff Yes please. Make it its own PR against main, with the two tests you describe. "A cross-lane operation outside compute" is yours too.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7205064736 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7205064736). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T22:52:54Z. --- @m0rff Yes please. Make it its own PR against main, with the two tests you describe. "A cross-lane operation outside compute" is yours too.
LakshanSivakumar commented 2026-11-26 23:15:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T23:15:29Z.


A general route for the split-wave refusals in compute

Many compute refusals come from one thing. A console wave64 runs as two 32-lane host waves, and every cross-lane step then needs its own proof. Being built now on our side, as a fallback that only refused shaders take:

  • Lockstep: for compute groups of up to 64 lanes, all 64 host threads follow the console wave's single program counter. EXEC becomes a predicate rather than a branch, and masks are exchanged through the existing xchg.
  • Why that's sound: console branches are on SCC, VCCZ or EXECZ, which are the same for the whole wave. So every barrier is reached by all 64 threads the same number of times, and lane-mask joins, masks read as data, split LDS and whole-wave sections need no per-shape proof.
  • What it covers: the lighting compute 5f8b2e3b (#182) and the 10 G-buffer compute dispatches.
  • What it doesn't: groups of several console waves, which are not covered yet. Shaders that translate today keep their current path.

So, to avoid duplicate work:

  • per-shape compute rules for "a lane-mask join of an untracked mask" (on our side for the shaders in #182);
  • "a descriptor changed after loading", the forms not yet claimed (on our side);
  • pixel-shader cross-lane, which stays with @m0rff (#158).

@Olima34, if you're on more of the masked-or-merged forms, say which, and we'll leave them to you.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7205388308 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7205388308). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T23:15:29Z. --- **A general route for the split-wave refusals in compute** Many compute refusals come from one thing. A console wave64 runs as two 32-lane host waves, and every cross-lane step then needs its own proof. Being built now on our side, as a fallback that only refused shaders take: - **Lockstep:** for compute groups of up to 64 lanes, all 64 host threads follow the console wave's single program counter. EXEC becomes a predicate rather than a branch, and masks are exchanged through the existing `xchg`. - **Why that's sound:** console branches are on SCC, VCCZ or EXECZ, which are the same for the whole wave. So every barrier is reached by all 64 threads the same number of times, and lane-mask joins, masks read as data, split LDS and whole-wave sections need no per-shape proof. - **What it covers:** the lighting compute `5f8b2e3b` (#182) and the 10 G-buffer compute dispatches. - **What it doesn't:** groups of several console waves, which are not covered yet. Shaders that translate today keep their current path. So, to avoid duplicate work: - per-shape compute rules for "a lane-mask join of an untracked mask" (on our side for the shaders in #182); - "a descriptor changed after loading", the forms not yet claimed (on our side); - pixel-shader cross-lane, which stays with @m0rff (#158). @Olima34, if you're on more of the masked-or-merged forms, say which, and we'll leave them to you.
LakshanSivakumar commented 2026-11-27 00:24:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T00:24:50Z.


The lockstep fallback is on main (f8336377). A wave64 compute program refused on Apple's 32-lane host, with a group of 64 lanes or fewer, is retried with all 64 host threads following the console wave's one program counter: EXEC branches become uniform compares on the wide mask, v_readfirstlane reads the wide EXEC's first lane, LDS writes get group barriers either side, and whole-wave sections run literally. Shaders the fast path translates are untouched.

Offline, over 1,765 unique refused compute dumps from our runs: 189 → 285 translate (+96: 35 cross-lane/LDS after the split, 34 lane-mask joins, 27 whole-wave code). A warm 300 s run had no fault and no GPU errors. VICTORY_NO_LOCKSTEP=1 turns it off.

Still refused in lockstep: masks that would need to be carried as real 64-bit values (about 100 one-wave shaders, next), groups of several waves (74), and the descriptor families. If a tester sees a GPU hang or timeout in a compute pass on current main, a rerun with VICTORY_NO_LOCKSTEP=1 tells us whether it is this.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7206439460 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7206439460). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-27T00:24:50Z. --- The lockstep fallback is on main (f8336377). A wave64 compute program refused on Apple's 32-lane host, with a group of 64 lanes or fewer, is retried with all 64 host threads following the console wave's one program counter: EXEC branches become uniform compares on the wide mask, `v_readfirstlane` reads the wide EXEC's first lane, LDS writes get group barriers either side, and whole-wave sections run literally. Shaders the fast path translates are untouched. Offline, over 1,765 unique refused compute dumps from our runs: 189 → 285 translate (+96: 35 cross-lane/LDS after the split, 34 lane-mask joins, 27 whole-wave code). A warm 300 s run had no fault and no GPU errors. `VICTORY_NO_LOCKSTEP=1` turns it off. Still refused in lockstep: masks that would need to be carried as real 64-bit values (about 100 one-wave shaders, next), groups of several waves (74), and the descriptor families. If a tester sees a GPU hang or timeout in a compute pass on current main, a rerun with `VICTORY_NO_LOCKSTEP=1` tells us whether it is this.
lautarocherro commented 2026-11-27 02:31:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by lautarocherro on 2026-11-27T02:31:59Z.


Heads-up on the split-wave refusals (cross-lane ops and LDS in divergent code, about 48 shaders in the #140 log): the Windows fork Belobug/VIctory-Belobug-AMD has a retry chain for exactly this on 32-lane GPUs. When a wave64 shader gets stuck, it translates it again without early exits, without skipped blocks, and with each half-wave on its own where that's exact. It's all IR work, nothing D3D12-specific. The entry point is emit/mod.rs:488.

One warning: they turned off their "wide" variant because it put barriers inside branches and hung the GPU. Their other large groups of refusals are the same as ours, so this looks like the one piece worth borrowing. Happy to help port it if you want.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7208209850 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7208209850). Originally posted by [lautarocherro](https://github.com/lautarocherro) on 2026-11-27T02:31:59Z. --- Heads-up on the split-wave refusals (cross-lane ops and LDS in divergent code, about 48 shaders in the #140 log): the Windows fork [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD) has a retry chain for exactly this on 32-lane GPUs. When a wave64 shader gets stuck, it translates it again without early exits, without skipped blocks, and with each half-wave on its own where that's exact. It's all IR work, nothing D3D12-specific. The entry point is [emit/mod.rs:488](https://github.com/Belobug/VIctory-Belobug-AMD/blob/cd8dfc06ace7ccb91a19431e74bc2d0de2a10145/crates/victory-shader/src/emit/mod.rs#L488). One warning: they turned off their "wide" variant because it put barriers inside branches and hung the GPU. Their other large groups of refusals are the same as ours, so this looks like the one piece worth borrowing. Happy to help port it if you want.
m0rff commented 2026-11-27 08:57:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T08:57:46Z.


/claim

Only the pixel/graphics cross-lane shape: "a cross-lane operation outside compute" (127 graphics shaders in the #147 log). Not the rest of #4. Branch m0rff/cross-lane-outside-compute; first PR lowers the most common op/stage pair, one shape per PR.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214120372 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214120372). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T08:57:46Z. --- /claim Only the pixel/graphics cross-lane shape: "a cross-lane operation outside compute" (127 graphics shaders in the #147 log). Not the rest of #4. Branch `m0rff/cross-lane-outside-compute`; first PR lowers the most common op/stage pair, one shape per PR.
m0rff commented 2026-11-27 08:57:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T08:57:50Z.


@LakshanSivakumar, I'm dropping the first-lane port you approved above. On current main (c1b9587) it would change nothing. Hand-assembled checks, run through emit_with with wave32_host, lockstep on and off (VICTORY_NO_LOCKSTEP=1):

program 64 lanes 128 256
Vice-Tay 431cab5d's own test program: prefix of wave totals, a v_readfirstlane per iteration of a loop with a lane exit (store changed to global_store_dword) translates, either way translates, either way translates, either way
v_readfirstlane of v_mov v6, s4 + 1, s_cmp, SCC branch over a v_readlane … 40 that is stored fast path refuses, lockstep translates refused (DIVERGENT_EXCHANGE), either way —

Why the proof has nowhere to act:

  • Here, v_readfirstlane on split waves is never refused by itself: each half reads its own first lane (waveReadLaneFirst). On Vice-Tay it was refused ("a first-lane read where not every lane runs"), and that refusal was what their proof lifted. So their BVH case already translates on main.
  • split_scc has two callers. One is wave_blocks, and through it split_wave_barriers; both are only for groups of one console wave, and lockstep retries every refusal there. The other is the mesh lane-mask join, which is a different shape.
  • In groups of several waves, once comes from once_blocks, which ignores split_scc. A branch that is the same across one console wave can still differ between console waves, so a group barrier behind it can't be reached by every wave. Proving the value is the same across one console wave can't lift that refusal. Only a scheme for several waves could.

The uniformity proof that is still live is marcus-4's Lower::wave_uniform in #254, which picks between the per-half read and the exchange. Further work on that belongs there, so I'm not opening a second one. I haven't checked the 32 DIVERGENT_EXCHANGE compute refusals from #147 by group size. If most of them are groups of several waves, that is where the work is.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214121563 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214121563). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T08:57:50Z. --- @LakshanSivakumar, I'm dropping the first-lane port you approved above. On current main (`c1b9587`) it would change nothing. Hand-assembled checks, run through `emit_with` with `wave32_host`, lockstep on and off (`VICTORY_NO_LOCKSTEP=1`): | program | 64 lanes | 128 | 256 | |---|---|---|---| | Vice-Tay 431cab5d's own test program: prefix of wave totals, a `v_readfirstlane` per iteration of a loop with a lane exit (store changed to `global_store_dword`) | translates, either way | translates, either way | translates, either way | | `v_readfirstlane` of `v_mov v6, s4` + 1, `s_cmp`, SCC branch over a `v_readlane … 40` that is stored | fast path refuses, **lockstep translates** | refused (`DIVERGENT_EXCHANGE`), either way | — | Why the proof has nowhere to act: - Here, `v_readfirstlane` on split waves is never refused by itself: each half reads its own first lane (`waveReadLaneFirst`). On Vice-Tay it was refused ("a first-lane read where not every lane runs"), and that refusal was what their proof lifted. So their BVH case already translates on main. - `split_scc` has two callers. One is `wave_blocks`, and through it `split_wave_barriers`; both are only for groups of one console wave, and lockstep retries every refusal there. The other is the mesh lane-mask join, which is a different shape. - In groups of several waves, `once` comes from `once_blocks`, which ignores `split_scc`. A branch that is the same across one console wave can still differ between console waves, so a group barrier behind it can't be reached by every wave. Proving the value is the same across one console wave can't lift that refusal. Only a scheme for several waves could. The uniformity proof that is still live is marcus-4's `Lower::wave_uniform` in #254, which picks between the per-half read and the exchange. Further work on that belongs there, so I'm not opening a second one. I haven't checked the 32 `DIVERGENT_EXCHANGE` compute refusals from #147 by group size. If most of them are groups of several waves, that is where the work is.
github-actions[bot] commented 2026-11-27 08:57:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T08:57:59Z.


@m0rff this is already claimed by @Olima34. Pick another issue, or ask them here.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214124251 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214124251). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T08:57:59Z. --- @m0rff this is already claimed by @Olima34. Pick another issue, or ask them here.
Olima34 commented 2026-11-27 09:04:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T09:04:32Z.


/release

@m0rff it's yours. We aren't working on the cross-lane-outside-compute shape, and our assignment on this tracking issue was a leftover from earlier work, not a live claim. Our current work is on #258 (#253, #267).

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214250185 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214250185). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-27T09:04:32Z. --- /release @m0rff it's yours. We aren't working on the cross-lane-outside-compute shape, and our assignment on this tracking issue was a leftover from earlier work, not a live claim. Our current work is on #258 (#253, #267).
github-actions[bot] commented 2026-11-27 09:04:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T09:04:42Z.


Released. This issue is free to claim.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214253324 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214253324). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T09:04:42Z. --- Released. This issue is free to claim.
m0rff commented 2026-11-27 09:11:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T09:11:36Z.


/claim

Only the graphics cross-lane shape, "a cross-lane operation outside compute" (127 shaders in the #147 log). Not the rest of #4.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214388167 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214388167). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T09:11:36Z. --- /claim Only the graphics cross-lane shape, "a cross-lane operation outside compute" (127 shaders in the #147 log). Not the rest of #4.
github-actions[bot] commented 2026-11-27 09:11:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T09:11:46Z.


Claimed by @m0rff. Open a draft pull request with Refs #4 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214391512 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214391512). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T09:11:46Z. --- Claimed by @m0rff. Open a draft pull request with `Refs #4` in its description within 24 hours, or the claim expires.
m0rff commented 2026-11-27 09:15:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T09:15:40Z.


@LakshanSivakumar @Olima34: for the graphics cross-lane shape, could one of you run the pixel "a cross-lane operation outside compute: ..." refusals on current main through sort | uniq -c? Counts and op names only, no shader bytes. At 57b7ebd a constant-lane v_readlane of a spill counted under this cause, so part of the 127 may already translate; the tally says which op to lower first. I will stay off constant-lane section reads (#262).

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214470030 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214470030). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T09:15:40Z. --- @LakshanSivakumar @Olima34: for the graphics cross-lane shape, could one of you run the pixel "a cross-lane operation outside compute: ..." refusals on current main through `sort | uniq -c`? Counts and op names only, no shader bytes. At 57b7ebd a constant-lane v_readlane of a spill counted under this cause, so part of the 127 may already translate; the tally says which op to lower first. I will stay off constant-lane section reads (#262).
Olima34 commented 2026-11-27 09:17:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T09:17:19Z.


@m0rff here are counts from our two runs today, on c1b95875 + #253 + #267 + #264 (M5 Pro, Series S, windowed; one cold run, one warm run that reached frame 2560). Pixel "a cross-lane operation outside compute" lines: 0 in both. The only cross-lane refusals were 10 "a cross-lane operation between host waves in divergent code", all compute. One caveat: we haven't checked whether a refusal served from a warm shader cache is logged again, so the cold run is the safer number. It's 0 too. Neither run is plain main, but none of those PRs touch graphics cross-lane lowering.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214502118 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214502118). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-27T09:17:19Z. --- @m0rff here are counts from our two runs today, on c1b95875 + #253 + #267 + #264 (M5 Pro, Series S, windowed; one cold run, one warm run that reached frame 2560). Pixel "a cross-lane operation outside compute" lines: **0** in both. The only cross-lane refusals were 10 "a cross-lane operation between host waves in divergent code", all compute. One caveat: we haven't checked whether a refusal served from a warm shader cache is logged again, so the cold run is the safer number. It's 0 too. Neither run is plain main, but none of those PRs touch graphics cross-lane lowering.
m0rff commented 2026-11-27 09:24:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T09:24:16Z.


Thanks @Olima34 for the count. With 0 pixel "a cross-lane operation outside compute" refusals on current main, there is nothing in this shape to lower. #297 pins today's pixel behaviour: a spill read back after a join translates, and DPP8 is still refused under its name. I'm releasing the claim. If a tester log from plain main shows pixel refusals of this cause again, the shape can be claimed again.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214639569 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214639569). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T09:24:16Z. --- Thanks @Olima34 for the count. With 0 pixel "a cross-lane operation outside compute" refusals on current main, there is nothing in this shape to lower. #297 pins today's pixel behaviour: a spill read back after a join translates, and DPP8 is still refused under its name. I'm releasing the claim. If a tester log from plain main shows pixel refusals of this cause again, the shape can be claimed again.
m0rff commented 2026-11-27 09:24:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T09:24:17Z.


/release

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214640051 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214640051). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T09:24:17Z. --- /release
github-actions[bot] commented 2026-11-27 09:24:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T09:24:38Z.


Released. This issue is free to claim.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7214647266 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7214647266). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T09:24:38Z. --- Released. This issue is free to claim.
Olima34 commented 2026-11-27 10:11:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T10:11:17Z.


/claim

This claim covers one compute shape only: "a lane mask holding lanes elsewhere read as data: a program input". It's in 9e5a12054881a74d (80x45 groups), the only writer of a 1280x720 R11G11B10 target in the lighting chain. Because that shader is refused, the host never writes the target ("draws 0 clears 0"), so the target keeps title memory, NaN included (#258). Not the rest of #4. A draft PR will follow with Refs #4.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7215579796 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7215579796). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-27T10:11:17Z. --- /claim This claim covers one compute shape only: "a lane mask holding lanes elsewhere read as data: a program input". It's in `9e5a12054881a74d` (80x45 groups), the only writer of a 1280x720 R11G11B10 target in the lighting chain. Because that shader is refused, the host never writes the target ("draws 0 clears 0"), so the target keeps title memory, NaN included (#258). Not the rest of #4. A draft PR will follow with `Refs #4`.
github-actions[bot] commented 2026-11-27 10:11:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T10:11:30Z.


Claimed by @Olima34. Open a draft pull request with Refs #4 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7215584159 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7215584159). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T10:11:30Z. --- Claimed by @Olima34. Open a draft pull request with `Refs #4` in its description within 24 hours, or the claim expires.
Olima34 commented 2026-11-27 10:23:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T10:23:36Z.


Widening our claim a little. Behind the first refusal in 9e5a12054881a74d there is a second one: "a lane-mask join of an untracked mask: data whose high dword is not known". It's a loop's break accumulator (s = 0 before the loop, s |= exec at break exits, then read back through copies as a mask). We're taking that shape only, for this shader's chain.

On the first refusal: the "program input" label is misleading. It's a loop phi of EXEC copies (s_andn2_wrexec), not an input. All 15 "program input" cases in our dumps are such phis. That fix will come as its own PR.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7215830672 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7215830672). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-27T10:23:36Z. --- Widening our claim a little. Behind the first refusal in `9e5a12054881a74d` there is a second one: "a lane-mask join of an untracked mask: data whose high dword is not known". It's a loop's break accumulator (`s = 0` before the loop, `s |= exec` at break exits, then read back through copies as a mask). We're taking that shape only, for this shader's chain. On the first refusal: the "program input" label is misleading. It's a loop phi of EXEC copies (`s_andn2_wrexec`), not an input. All 15 "program input" cases in our dumps are such phis. That fix will come as its own PR.
derz92 commented 2026-11-27 15:35:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by derz92 on 2026-11-27T15:35:03Z.


An updated refusal table from a world run on current main, since the cause names have been refined since the table above (the two biggest causes here don't appear in it).

Run: Apple M5 Max, 36 GB, macOS 26.5, --console series-s, main 728845d1 plus #335, #341, #342 and #358 (none of them touch the translator), VICTORY_METAL_RESIDENCY_SETS=heap. It ran about 4 minutes in the world, at 1–2 fps, with no GPU errors, and 434 distinct shaders were refused. Distinct shader (or shader pair) per cause, code addresses left out:

distinct compute graphics cause
177 168 9 a descriptor read only as data
106 105 1 a descriptor neither loaded nor built
30 26 4 a lane mask read as data
26 24 2 a descriptor built around a table in the code
18 1 17 a lane-mask join of an untracked mask: data, on the host's lanes
12 12 0 a cross-lane operation between host waves in divergent code
10 7 3 a lane-mask join of an untracked mask: a value the translation could not make
9 9 0 a lane mask holding lanes elsewhere read as data: written by a scalar instruction of the other width
8 0 8 the first half of an interpolation
6 0 6 barycentrics read directly
3 0 3 reads title memory through the page table in a graphics pipeline
3 3 0 a descriptor's address or format read as data: an image's dwords 5 to 7
3 3 0 a descriptor's address or format read as data: a dword outside the descriptor
3 3 0 a lane-mask join of an untracked mask: data, at a join of several edges
3 3 0 ds_append or ds_consume in a console wave the host splits
3 3 0 integer output modifiers
14 10 smaller causes, 1 to 2 each

Two questions, so nobody's work is duplicated:

  • Are "a descriptor read only as data" (177, almost all compute) and "a descriptor neither loaded nor built" (106) owned? They look like the refined names of the "descriptor changed after loading" family above, which is @Olima34's.
  • If one of the remaining causes is free, I'm happy to take it. For example, "a lane mask read as data" (30) or "a descriptor built around a table in the code" (26). I'd claim it here first and check it on a full corpus sweep.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7222234176 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7222234176). Originally posted by [derz92](https://github.com/derz92) on 2026-11-27T15:35:03Z. --- An updated refusal table from a world run on current main, since the cause names have been refined since the table above (the two biggest causes here don't appear in it). **Run:** Apple M5 Max, 36 GB, macOS 26.5, `--console series-s`, main 728845d1 plus #335, #341, #342 and #358 (none of them touch the translator), `VICTORY_METAL_RESIDENCY_SETS=heap`. It ran about 4 minutes in the world, at 1–2 fps, with no GPU errors, and 434 distinct shaders were refused. Distinct shader (or shader pair) per cause, code addresses left out: | distinct | compute | graphics | cause | |---|---|---|---| | 177 | 168 | 9 | a descriptor read only as data | | 106 | 105 | 1 | a descriptor neither loaded nor built | | 30 | 26 | 4 | a lane mask read as data | | 26 | 24 | 2 | a descriptor built around a table in the code | | 18 | 1 | 17 | a lane-mask join of an untracked mask: data, on the host's lanes | | 12 | 12 | 0 | a cross-lane operation between host waves in divergent code | | 10 | 7 | 3 | a lane-mask join of an untracked mask: a value the translation could not make | | 9 | 9 | 0 | a lane mask holding lanes elsewhere read as data: written by a scalar instruction of the other width | | 8 | 0 | 8 | the first half of an interpolation | | 6 | 0 | 6 | barycentrics read directly | | 3 | 0 | 3 | reads title memory through the page table in a graphics pipeline | | 3 | 3 | 0 | a descriptor's address or format read as data: an image's dwords 5 to 7 | | 3 | 3 | 0 | a descriptor's address or format read as data: a dword outside the descriptor | | 3 | 3 | 0 | a lane-mask join of an untracked mask: data, at a join of several edges | | 3 | 3 | 0 | ds_append or ds_consume in a console wave the host splits | | 3 | 3 | 0 | integer output modifiers | | 14 | | | 10 smaller causes, 1 to 2 each | Two questions, so nobody's work is duplicated: - Are **"a descriptor read only as data"** (177, almost all compute) and **"a descriptor neither loaded nor built"** (106) owned? They look like the refined names of the "descriptor changed after loading" family above, which is @Olima34's. - If one of the remaining causes is free, I'm happy to take it. For example, **"a lane mask read as data"** (30) or **"a descriptor built around a table in the code"** (26). I'd claim it here first and check it on a full corpus sweep.
Olima34 commented 2026-11-27 16:21:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T16:21:15Z.


/release

Our shape here (the "program input" lane-mask refusal and the execz-skip join in 9e5a12054881a74d) landed with #304. We're pausing for a while, so I'm freeing the issue. The handoff, with the open eee76bf6 cross-lane class, is on #258.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7223159819 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7223159819). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-27T16:21:15Z. --- /release Our shape here (the "program input" lane-mask refusal and the execz-skip join in `9e5a12054881a74d`) landed with #304. We're pausing for a while, so I'm freeing the issue. The handoff, with the open `eee76bf6` cross-lane class, is on #258.
github-actions[bot] commented 2026-11-27 16:21:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T16:21:25Z.


Released. This issue is free to claim.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7223163084 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7223163084). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T16:21:25Z. --- Released. This issue is free to claim.
lucasferreira1610 commented 2026-11-27 20:53:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by lucasferreira1610 on 2026-11-27T20:53:34Z.


/claim

Only the "a descriptor's address or format read as data: a dword outside the descriptor" shape (multi-descriptor wide loads s_load_dwordx8/x16 and offset-shifted/partial reloads in Lower::descriptor_data), not the rest of #4. Opening the PR now.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7227937636 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7227937636). Originally posted by [lucasferreira1610](https://github.com/lucasferreira1610) on 2026-11-27T20:53:34Z. --- /claim Only the `"a descriptor's address or format read as data: a dword outside the descriptor"` shape (multi-descriptor wide loads `s_load_dwordx8`/`x16` and offset-shifted/partial reloads in `Lower::descriptor_data`), not the rest of #4. Opening the PR now.
github-actions[bot] commented 2026-11-27 20:53:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T20:53:45Z.


Claimed by @lucasferreira1610. Open a draft pull request with Refs #4 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7227940442 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7227940442). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T20:53:45Z. --- Claimed by @lucasferreira1610. Open a draft pull request with `Refs #4` in its description within 24 hours, or the claim expires.
Olima34 commented 2026-11-28 01:51:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:51:37Z.


I'm taking the "a descriptor's address or format read as data: an image's dwords 5 to 7" class, tracked in #540. @lucasferreira1610: #457 keeps those dwords refused, so we shouldn't overlap; tell me if you'd planned to go there.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231965472 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/4#issuecomment-7231965472). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T01:51:37Z. --- I'm taking the "a descriptor's address or format read as data: an image's dwords 5 to 7" class, tracked in #540. @lucasferreira1610: #457 keeps those dwords refused, so we shouldn't overlap; tell me if you'd planned to go there.
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
LakshanSivakumar/Native-Victory-macOS#4
No description provided.