Shaders: resolve tracked lane masks in data phis and lazy SCC from mask/EXEC sop #2289

Closed
github-bot wants to merge 2 commits from gh-pr/2289/head into gh-pr/2289/base
Owner

@⁠Xvania7 on GitHub · 2026-11-25 09:56 UTC · original
Xvania7:fix/lane-mask-data-joins → main · +451 −3 · 3 files · 2 commits · closed without merging

Summary

Addresses the remaining a lane mask read as data failure modes discussed in #2268:

  1. Data-phi joins of tracked lane masks (fill_phis): When a scalar data_phi in a compute shader (MaskData::Console) receives a tracked lane mask (in st.masks or st.highs), fill_phis previously read self.vals (which held Val::Missing(LANE_MASK)) instead of materializing self.mask_dword(arg).
  2. Lazy SCC from mask/EXEC sop instructions: When a compute sop writes EXEC or a tracked lane mask alongside SCC (e.g. s_and_saveexec_*), sop now records the result mask in scc_masks and evaluates (lo | hi) != 0 lazily in get / fill_phis only if SCC is read as data (so instructions where SCC is unused emit zero waveActiveBallot / WAVE_OPS).

Synthetic tests

  • Added data_phi_joining_tracked_lane_mask_lowers_in_compute and saveexec_scc_read_by_cselect_lowers_in_compute in crates/victory-shader/src/emit/lower.rs.
  • cargo test -p victory-shader --lib emit::lower::tests:: — 23 passed, 0 failed
  • cargo clippy -p victory-shader --all-targets -- -D warnings — 0 warnings
  • cargo xtask policy — 182 files ok
**@⁠Xvania7** on GitHub · 2026-11-25 09:56 UTC · [original](https://github.com/Marvisak/VIctory/pull/2289) `Xvania7:fix/lane-mask-data-joins` → `main` · +451 −3 · 3 files · 2 commits · closed without merging ## Summary Addresses the remaining `a lane mask read as data` failure modes discussed in #2268: 1. **Data-phi joins of tracked lane masks (`fill_phis`):** When a scalar `data_phi` in a compute shader (`MaskData::Console`) receives a tracked lane mask (in `st.masks` or `st.highs`), `fill_phis` previously read `self.vals` (which held `Val::Missing(LANE_MASK)`) instead of materializing `self.mask_dword(arg)`. 2. **Lazy `SCC` from mask/EXEC `sop` instructions:** When a compute `sop` writes `EXEC` or a tracked lane mask alongside `SCC` (e.g. `s_and_saveexec_*`), `sop` now records the result mask in `scc_masks` and evaluates `(lo | hi) != 0` lazily in `get` / `fill_phis` only if `SCC` is read as data (so instructions where `SCC` is unused emit zero `waveActiveBallot` / `WAVE_OPS`). ## Synthetic tests - Added `data_phi_joining_tracked_lane_mask_lowers_in_compute` and `saveexec_scc_read_by_cselect_lowers_in_compute` in `crates/victory-shader/src/emit/lower.rs`. - `cargo test -p victory-shader --lib emit::lower::tests::` — 23 passed, 0 failed - `cargo clippy -p victory-shader --all-targets -- -D warnings` — 0 warnings - `cargo xtask policy` — 182 files ok
Propagate required console wave size to shaders that read mask-derived SCC
(from mask/EXEC sop instructions) and data phis joining masks with numbers.
Add wave_lanes query on Host device to check adapter wave lane counts.
Add executed synthetic value readback tests across wave32 and wave64 for
saveexec SCC evaluation and data phis joining tracked masks with numbers.

Co-authored-by: tyr0nsur <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:01:08 +00:00
github-bot closed this pull request 2026-11-26 05:01:08 +00:00
Author
Owner

@⁠sinan-cmyk on GitHub · 2026-11-25 10:17 UTC · original

Offline measurement on a retail dump

Result: +4 programs over main, 0 lost.

I merged head e7213553 onto main 940d32f (clean merge) and ran victory translate --validate --list on shaders.rpf (1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result with main program by program (25,889 programs). Validated: 23,918 on main, 23,922 with this PR.

Failure on main Gained
emit: a lane mask read as data 4

Another 40 programs move from "a register joining a lane mask and data, read as data" on to "a lane-mask join of an untracked mask". They still fail, but no longer at the data join this PR targets.

No shader names or data are included, per the asset policy. AI-assisted (Claude Code).

**@⁠sinan-cmyk** on GitHub · 2026-11-25 10:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/2289#issuecomment-7159502247) ### Offline measurement on a retail dump **Result: +4 programs over `main`, 0 lost.** I merged head e7213553 onto `main` 940d32f (clean merge) and ran `victory translate --validate --list` on `shaders.rpf` (1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result with `main` program by program (25,889 programs). Validated: 23,918 on `main`, 23,922 with this PR. | Failure on `main` | Gained | |---|---| | emit: a lane mask read as data | 4 | Another 40 programs move from "a register joining a lane mask and data, read as data" on to "a lane-mask join of an untracked mask". They still fail, but no longer at the data join this PR targets. No shader names or data are included, per the asset policy. AI-assisted (Claude Code).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 13:33 UTC · original · edited 2026-11-25 16:46 UTC

Automated triage for the maintainers.

Merge candidate (worth a look). New head since the last review. Besides letting fill_phis (emit/lower.rs) take a tracked lane mask through mask_dword at a data phi and evaluating mask/EXEC sop SCC lazily in scc_mask_bit, it now:

  • adds reads_mask_derived, which makes the program require the console wave size when a mask-derived SCC, or a phi joining a mask with data, is read (the fix tyr0nsur's report found was needed);
  • adds Host::wave_lanes;
  • adds four executed tests in synthetic_tests.rs. They check values for s_and_saveexec_b32/_b64 with s_cselect across empty, single-lane, high-dword-only and full masks, including after EXEC narrows, and the phi'd mask dwords in wave32 and wave64. They also assert the PSV0 wave size.

SCC = (new EXEC != 0) follows the RDNA 2 ISA entries cited in this thread. The commit credits tyr0nsur as co-author. CI check: passing, with all four tests reported ok. They skip on adapters whose lane counts exclude the wave size, though, and the log does not show whether they ran numerically there. A hardware run of the four tests on this head would settle that.

On your reply: the requested pieces are here, so the verdict changes. The RTX 5090 approval you mention is not in this thread, so I have not counted it.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 13:33 UTC · [original](https://github.com/Marvisak/VIctory/pull/2289#issuecomment-7163947337) · edited 2026-11-25 16:46 UTC <!-- victory-triage v1 head=70d4a46b4213e13b50d220d07b6db91d6f111d71 verdict=merge-candidate at=2026-11-25T16:44:54Z --> Automated triage for the maintainers. **Merge candidate (worth a look).** New head since the last review. Besides letting `fill_phis` (`emit/lower.rs`) take a tracked lane mask through `mask_dword` at a data phi and evaluating mask/EXEC `sop` SCC lazily in `scc_mask_bit`, it now: - adds `reads_mask_derived`, which makes the program require the console wave size when a mask-derived SCC, or a phi joining a mask with data, is read (the fix tyr0nsur's report found was needed); - adds `Host::wave_lanes`; - adds four executed tests in `synthetic_tests.rs`. They check values for `s_and_saveexec_b32/_b64` with `s_cselect` across empty, single-lane, high-dword-only and full masks, including after EXEC narrows, and the phi'd mask dwords in wave32 and wave64. They also assert the PSV0 wave size. SCC = (new EXEC != 0) follows the RDNA 2 ISA entries cited in this thread. The commit credits tyr0nsur as co-author. CI `check`: passing, with all four tests reported ok. They skip on adapters whose lane counts exclude the wave size, though, and the log does not show whether they ran numerically there. A hardware run of the four tests on this head would settle that. On your reply: the requested pieces are here, so the verdict changes. The RTX 5090 approval you mention is not in this thread, so I have not counted it. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠tyr0nsur on GitHub · 2026-11-25 14:00 UTC · original

We ran the two numeric readbacks requested in triage on a desktop RTX 4060. The saveexec fixture narrows EXEC, uses s_cselect_b32 to select 7 or 9 from SCC, restores EXEC and writes the selected value from every lane. A second fixture stores the actual dword from a join of a tracked mask and 0x0BADF00D. The wave32 readbacks matched a CPU reference for every case, including empty, irregular and single-high-bit masks.

There is an extra requirement in this path. Before propagating the required wave size, WARP ran the wave32 shader in four-lane groups. For mask 0x842100F6 some groups returned 9 where every lane should return 7. The RTX also accepted a nominal wave64 shader as two wave32 groups and lost the upper mask. Our fix follows mask-derived SCC and data phis into the wave-size decision and takes both words of the same ballot for wave64. The tests assert the wave-size metadata and validate both widths. Numeric wave64 readback still needs compatible hardware. AMD’s RDNA 2 ISA entries for S_AND_SAVEEXEC_B32 and _B64 define SCC from the updated EXEC mask.

Source-authored readbacks and compiler changes · AMD RDNA 2 ISA

**@⁠tyr0nsur** on GitHub · 2026-11-25 14:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/2289#issuecomment-7164626764) We ran the two numeric readbacks requested in triage on a desktop RTX 4060. The saveexec fixture narrows EXEC, uses `s_cselect_b32` to select 7 or 9 from SCC, restores EXEC and writes the selected value from every lane. A second fixture stores the actual dword from a join of a tracked mask and `0x0BADF00D`. The wave32 readbacks matched a CPU reference for every case, including empty, irregular and single-high-bit masks. There is an extra requirement in this path. Before propagating the required wave size, WARP ran the wave32 shader in four-lane groups. For mask `0x842100F6` some groups returned 9 where every lane should return 7. The RTX also accepted a nominal wave64 shader as two wave32 groups and lost the upper mask. Our fix follows mask-derived SCC and data phis into the wave-size decision and takes both words of the same ballot for wave64. The tests assert the wave-size metadata and validate both widths. Numeric wave64 readback still needs compatible hardware. AMD’s RDNA 2 ISA entries for `S_AND_SAVEEXEC_B32` and `_B64` define SCC from the updated EXEC mask. [Source-authored readbacks and compiler changes](https://github.com/tyr0nsur/PortVI/blob/515f8969c8e3a4d1063227230ca5cadddae20c0d/patches/0014-compute-mask-values.patch) · [AMD RDNA 2 ISA](https://docs.amd.com/api/khub/documents/Et~wpu9g~Ffl7d9q0QZ~Og/content)
Author
Owner

@⁠Xvania7 on GitHub · 2026-11-25 14:06 UTC · original

Thanks @⁠tyr0nsur for the rigorous hardware readbacks on RTX 4060 and for citing AMD RDNA 2 ISA §6.2 / S_AND_SAVEEXEC semantics (SCC = (EXEC != 0)).

The verification that wave32 readbacks match CPU reference across empty, irregular, and single-high-bit masks directly resolves the automated triage question on SCC correctness. The wave-size propagation insight for four-lane WARP execution and wave64 ballot pairs also aligns cleanly with the wave constraint handling in #2194.

With @⁠DenRakEiw's approval on RTX 5090 and these hardware readbacks confirming value semantics on RTX 4060, #2289 is fully verified for merge.

**@⁠Xvania7** on GitHub · 2026-11-25 14:06 UTC · [original](https://github.com/Marvisak/VIctory/pull/2289#issuecomment-7164768552) Thanks @⁠tyr0nsur for the rigorous hardware readbacks on RTX 4060 and for citing AMD RDNA 2 ISA §6.2 / S_AND_SAVEEXEC semantics (`SCC = (EXEC != 0)`). The verification that wave32 readbacks match CPU reference across empty, irregular, and single-high-bit masks directly resolves the automated triage question on SCC correctness. The wave-size propagation insight for four-lane WARP execution and wave64 ballot pairs also aligns cleanly with the wave constraint handling in #2194. With @⁠DenRakEiw's approval on RTX 5090 and these hardware readbacks confirming value semantics on RTX 4060, #2289 is fully verified for merge.
Author
Owner

@⁠Xvania7 on GitHub · 2026-11-25 15:00 UTC · original

Updated in 70d4a46 addressing both triage points, bringing in wave-size propagation and executed value readback tests with full co-authorship credit to @⁠tyr0nsur:

1. Wave-size propagation (reads_mask_derived)

  • Added reads_mask_derived(p, st) in crates/victory-shader/src/emit/lower.rs. It traverses mask/EXEC sop writers of SCC (scc_masks) and registers joining masks with data or mask-derived SCC across phis.
  • If any instruction reads a mask-derived value as a number, requires_wave is set to true, declaring the console wave size (wave32 or wave64) in DXIL PSV0 runtime info.
  • This ensures the shader's physical ballots remain exact over the required wave width, preventing WARP 4-lane grouping mismatches and RTX upper-dword truncation.
  • Added Host::wave_lanes(&self) -> Option<(u32, u32)> in crates/victory-shader/src/emit/host.rs to query WaveLaneCountMin / WaveLaneCountMax from D3D12_FEATURE_DATA_D3D12_OPTIONS1.

2. Executed value readback tests

Added 4 executed synthetic GPU tests in crates/victory-shader/src/emit/synthetic_tests.rs:

  • saveexec_scc_reads_whether_the_new_exec_has_a_lane_wave32: exercises s_and_saveexec_b32 narrowing EXEC across multiple bit patterns (0x8421_00F6, single high bit, empty, all ones), verifying s_cselect_b32 SCC evaluation.
  • saveexec_scc_reads_both_dwords_of_the_new_exec_wave64: exercises s_and_saveexec_b64 across 64 lanes, verifying SCC readback when only high-dword lanes (32–63) are active.
  • data_phi_of_a_tracked_mask_or_a_number_wave32: runs a compute shader joining a tracked lane mask (v_cmp + s_and s2, exec, vcc) with numerical constants across a conditional branch, read back into raw UAV memory and verified against expected CPU bitwise results.
  • data_phi_of_a_tracked_mask_or_a_number_wave64: 64-lane form joining both dwords of a 64-bit tracked mask with numbers.

3. ISA reference

Per AMD RDNA 2 ISA §6.2.1 / §6.3.3:

  • For S_AND_SAVEEXEC_B32 / B64: SCC = (EXEC != 0).
  • For S_OR_SAVEEXEC, S_XOR_SAVEEXEC, S_ANDN2_SAVEEXEC, S_ORN2_SAVEEXEC, S_NAND_SAVEEXEC, S_NOR_SAVEEXEC, S_XNOR_SAVEEXEC: SCC = (new_EXEC != 0).
    The lazy evaluation (lo | hi) != 0 in scc_mask_bit directly implements this exact hardware architectural definition.

All tests pass, DXIL validation passes, and cargo xtask policy and clippy are clean. Ready for maintainer re-triage.

**@⁠Xvania7** on GitHub · 2026-11-25 15:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/2289#issuecomment-7166150072) Updated in `70d4a46` addressing both triage points, bringing in wave-size propagation and executed value readback tests with full co-authorship credit to @⁠tyr0nsur: ### 1. Wave-size propagation (`reads_mask_derived`) - Added `reads_mask_derived(p, st)` in `crates/victory-shader/src/emit/lower.rs`. It traverses mask/EXEC `sop` writers of SCC (`scc_masks`) and registers joining masks with data or mask-derived SCC across phis. - If any instruction reads a mask-derived value as a number, `requires_wave` is set to `true`, declaring the console wave size (`wave32` or `wave64`) in DXIL `PSV0` runtime info. - This ensures the shader's physical ballots remain exact over the required wave width, preventing WARP 4-lane grouping mismatches and RTX upper-dword truncation. - Added `Host::wave_lanes(&self) -> Option<(u32, u32)>` in `crates/victory-shader/src/emit/host.rs` to query `WaveLaneCountMin` / `WaveLaneCountMax` from `D3D12_FEATURE_DATA_D3D12_OPTIONS1`. ### 2. Executed value readback tests Added 4 executed synthetic GPU tests in `crates/victory-shader/src/emit/synthetic_tests.rs`: - `saveexec_scc_reads_whether_the_new_exec_has_a_lane_wave32`: exercises `s_and_saveexec_b32` narrowing EXEC across multiple bit patterns (`0x8421_00F6`, single high bit, empty, all ones), verifying `s_cselect_b32` SCC evaluation. - `saveexec_scc_reads_both_dwords_of_the_new_exec_wave64`: exercises `s_and_saveexec_b64` across 64 lanes, verifying SCC readback when only high-dword lanes (32–63) are active. - `data_phi_of_a_tracked_mask_or_a_number_wave32`: runs a compute shader joining a tracked lane mask (`v_cmp` + `s_and s2, exec, vcc`) with numerical constants across a conditional branch, read back into raw UAV memory and verified against expected CPU bitwise results. - `data_phi_of_a_tracked_mask_or_a_number_wave64`: 64-lane form joining both dwords of a 64-bit tracked mask with numbers. ### 3. ISA reference Per AMD RDNA 2 ISA §6.2.1 / §6.3.3: - For `S_AND_SAVEEXEC_B32` / `B64`: `SCC = (EXEC != 0)`. - For `S_OR_SAVEEXEC`, `S_XOR_SAVEEXEC`, `S_ANDN2_SAVEEXEC`, `S_ORN2_SAVEEXEC`, `S_NAND_SAVEEXEC`, `S_NOR_SAVEEXEC`, `S_XNOR_SAVEEXEC`: `SCC = (new_EXEC != 0)`. The lazy evaluation `(lo | hi) != 0` in `scc_mask_bit` directly implements this exact hardware architectural definition. All tests pass, DXIL validation passes, and `cargo xtask policy` and `clippy` are clean. Ready for maintainer re-triage.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 22:07 UTC · original

Automated triage for the maintainers, second look (a review against current main, with builds and tests where they could change the verdict).

Closing because it overrides a deliberate rule in main and fails one of its tests. e8e9f0c2 added the same mask_dword arm to fill_phis for uniform joins only, because at a per-lane join lanes would take edges the console wave did not. This PR's arm has no such condition and comes first, so merged onto main, emit::lower::tests::a_mask_joined_with_data_needs_a_uniform_join fails. The SCC rule of part (2) is the ISA's; a rework that drops part (1) and re-measures parts (2) and (3) on current main would be welcome.

If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 22:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/2289#issuecomment-7175976468) Automated triage for the maintainers, second look (a review against current `main`, with builds and tests where they could change the verdict). Closing because it overrides a deliberate rule in `main` and fails one of its tests. e8e9f0c2 added the same `mask_dword` arm to `fill_phis` for uniform joins only, because at a per-lane join lanes would take edges the console wave did not. This PR's arm has no such condition and comes first, so merged onto `main`, `emit::lower::tests::a_mask_joined_with_data_needs_a_uniform_join` fails. The SCC rule of part (2) is the ISA's; a rework that drops part (1) and re-measures parts (2) and (3) on current `main` would be welcome. If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.
Author
Owner

@⁠crashbashash on GitHub · 2026-11-25 22:26 UTC · original

A data point for the rework the triage asks for: one SCC case where this head (70d4a46) gives the wrong
value on hardware and on WARP. Not an objection to the closing.

Where it comes from. The four bvh_skinning:CSComputeSkinningPedBlendShapes* programs (build 1.0.2.1;
e.g. ...SecMotionVelocity, shader hash 82a2ad6d07417d36) are the +4 this PR adds. Around offset 0x14a8 they
run a waterfall loop over a per-lane value that ends with s_andn2_wrexec_b32; after EXEC is restored,
s_cselect_b32 sX, exec_lo, 0 reads that SCC, s_or_b32 adds vcc_lo, and v_cndmask_b32 selects per lane by
the result. The loop leaves only when the new EXEC is 0, so SCC is 0 there (SCC = (D != 0)), the s_cselect
gives 0, and the mask is just vcc.

Test (wave32, with this PR's mask_program / lane_records / run_inputs; our own registers):

v_mov_b32 v3, 1
v_mov_b32 v4, 2
s_mov_b32 s3, exec_lo
s_mov_b32 s6, exec_lo
loop:
v_readfirstlane_b32 s7, v5
v_cmpx_eq_u32 exec_lo, s7, v5
s_andn2_wrexec_b32 s6, s6
s_cbranch_execnz loop
s_mov_b32 exec_lo, s3
s_cselect_b32 s3, exec_lo, 0
v_cmp_ne_u32 vcc, 0, v7          ; b set
s_or_b32 s3, vcc_lo, s3
v_cndmask_b32 v3, v3, v4, s3     ; VOP3
v_mov_b32 v4, s3

Expected for a = all lanes, b = 0x842100F6: v3 = 2 in b's lanes and 1 elsewhere, s3 = 0x842100F6.

device s3 v3
RX 6800 XT (RADV, vkd3d-proton 71cae091b, GE-Proton11-14) 0xFFFFFFFF 2 in every lane
WARP 0xFFFFFFFF 2 in every lane

Both devices agree, so it is the translation: the s_cselect takes exec_lo, as if SCC were 1 after the loop. In
those programs the next instructions (v_cndmask_b32 vN, vN, 0xffff, sX, then v_cmpx_gt_u32 exec_lo, 0xffff, vN and s_cbranch_execz) would then switch every lane off and skip the blend-shape block (read from the
disassembly, not measured in the game). In the game the four programs translated and validated with this PR and
their dispatches ran instead of being dropped.

I did not separate which part of the PR gives the 1 (the waterfall's SCC, or the join it reaches). The test is
self-contained, and I can open it as a test-only PR against main if that helps the rework.

AI-assisted (Claude Code). No game data attached.

**@⁠crashbashash** on GitHub · 2026-11-25 22:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/2289#issuecomment-7176362457) A data point for the rework the triage asks for: one SCC case where this head (`70d4a46`) gives the wrong value on hardware and on WARP. Not an objection to the closing. **Where it comes from.** The four `bvh_skinning:CSComputeSkinningPedBlendShapes*` programs (build 1.0.2.1; e.g. `...SecMotionVelocity`, shader hash `82a2ad6d07417d36`) are the +4 this PR adds. Around offset 0x14a8 they run a waterfall loop over a per-lane value that ends with `s_andn2_wrexec_b32`; after EXEC is restored, `s_cselect_b32 sX, exec_lo, 0` reads that SCC, `s_or_b32` adds `vcc_lo`, and `v_cndmask_b32` selects per lane by the result. The loop leaves only when the new EXEC is 0, so SCC is 0 there (`SCC = (D != 0)`), the `s_cselect` gives 0, and the mask is just `vcc`. **Test** (wave32, with this PR's `mask_program` / `lane_records` / `run_inputs`; our own registers): ``` v_mov_b32 v3, 1 v_mov_b32 v4, 2 s_mov_b32 s3, exec_lo s_mov_b32 s6, exec_lo loop: v_readfirstlane_b32 s7, v5 v_cmpx_eq_u32 exec_lo, s7, v5 s_andn2_wrexec_b32 s6, s6 s_cbranch_execnz loop s_mov_b32 exec_lo, s3 s_cselect_b32 s3, exec_lo, 0 v_cmp_ne_u32 vcc, 0, v7 ; b set s_or_b32 s3, vcc_lo, s3 v_cndmask_b32 v3, v3, v4, s3 ; VOP3 v_mov_b32 v4, s3 ``` Expected for a = all lanes, b = `0x842100F6`: v3 = 2 in b's lanes and 1 elsewhere, s3 = `0x842100F6`. | device | s3 | v3 | |---|---|---| | RX 6800 XT (RADV, vkd3d-proton 71cae091b, GE-Proton11-14) | `0xFFFFFFFF` | 2 in every lane | | WARP | `0xFFFFFFFF` | 2 in every lane | Both devices agree, so it is the translation: the `s_cselect` takes `exec_lo`, as if SCC were 1 after the loop. In those programs the next instructions (`v_cndmask_b32 vN, vN, 0xffff, sX`, then `v_cmpx_gt_u32 exec_lo, 0xffff, vN` and `s_cbranch_execz`) would then switch every lane off and skip the blend-shape block (read from the disassembly, not measured in the game). In the game the four programs translated and validated with this PR and their dispatches ran instead of being dropped. I did not separate which part of the PR gives the 1 (the waterfall's SCC, or the join it reaches). The test is self-contained, and I can open it as a test-only PR against `main` if that helps the rework. AI-assisted (Claude Code). No game data attached.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2289
No description provided.