Shaders: s_cbranch_vccz/vccnz tests raw VCC, not VCC & EXEC #2404

Closed
makmatvey wants to merge 1 commit from upstream-pr/2406 into main
makmatvey commented 2026-11-25 13:04:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by makmatvey on 2026-11-25T13:04:57Z.


What

s_cbranch_vccz / s_cbranch_vccnz on the console test the full VCC register. Structuring used VCC & EXEC, so a branch flipped when only inactive lanes held VCC bits (an earlier compare left them, or a scalar write set them after EXEC was narrowed).

Tracked as VIC-BT-026 in #1249. Related focused slice of the stalled bundle in #1336 (needs rebase).

Change

In crates/victory-shader/src/structure.rs, the VCC branch arms use the lane's VCC bit alone. EXEC branches are unchanged.

Tests

  • cargo test -p victory-shader --locked --lib cbranch_vcc_tests_raw_vcc_without_exec_masking — pass
  • cargo test -p victory-shader --locked --lib structure:: — 12 passed, 1 ignored
  • cargo clippy -p victory-shader --locked -- -D warnings — clean

No game data used.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5491882152 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406). Originally posted by [makmatvey](https://github.com/makmatvey) on 2026-11-25T13:04:57Z. --- ## What `s_cbranch_vccz` / `s_cbranch_vccnz` on the console test the full VCC register. Structuring used `VCC & EXEC`, so a branch flipped when only inactive lanes held VCC bits (an earlier compare left them, or a scalar write set them after EXEC was narrowed). Tracked as VIC-BT-026 in #1249. Related focused slice of the stalled bundle in #1336 (needs rebase). ## Change In `crates/victory-shader/src/structure.rs`, the VCC branch arms use the lane's VCC bit alone. EXEC branches are unchanged. ## Tests - `cargo test -p victory-shader --locked --lib cbranch_vcc_tests_raw_vcc_without_exec_masking` — pass - `cargo test -p victory-shader --locked --lib structure::` — 12 passed, 1 ignored - `cargo clippy -p victory-shader --locked -- -D warnings` — clean No game data used.
Xvania7 commented 2026-11-25 13:09:04 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-25T13:09:04Z.

Review: APPROVED


Verification on Windows 10 x64, Rust 1.98.1.

Checked out 583fc17 into an isolated tree:

  • cargo test -p victory-shader structure::tests::cbranch_vcc_tests_raw_vcc_without_exec_masking: passed.
  • cargo clippy -p victory-shader --all-targets --all-features -- -D warnings: 0 warnings, clean.
  • cargo run -p xtask -- policy: clean (asset policy: 182 files ok).

Compared against colliding #2405: this PR is cleaner because it scopes self.exec(inst) lazily into the s_cbranch_execz / s_cbranch_execnz arms rather than running redundant BDD evaluation across VCC branches, includes the ISA behavior documentation, and directly tests scalar VCC updates under narrowed EXEC. LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:review:6058194156 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#pullrequestreview-6058194156). Originally posted by [Xvania7](https://github.com/Xvania7) on 2026-11-25T13:09:04Z. **Review:** APPROVED --- Verification on Windows 10 x64, Rust 1.98.1. Checked out `583fc17` into an isolated tree: - `cargo test -p victory-shader structure::tests::cbranch_vcc_tests_raw_vcc_without_exec_masking`: passed. - `cargo clippy -p victory-shader --all-targets --all-features -- -D warnings`: 0 warnings, clean. - `cargo run -p xtask -- policy`: clean (`asset policy: 182 files ok`). Compared against colliding #2405: this PR is cleaner because it scopes `self.exec(inst)` lazily into the `s_cbranch_execz` / `s_cbranch_execnz` arms rather than running redundant BDD evaluation across VCC branches, includes the ISA behavior documentation, and directly tests scalar VCC updates under narrowed EXEC. LGTM.
catminou4 commented 2026-11-25 13:19:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T13:19:19Z.

Review: APPROVED


Tested locally: merged into main 940d32f69b, cargo test -p victory-shader --locked on macOS arm64 — 145 passed, 0 failed, 2 ignored (Windows-gated hardware execution tests not run here). Approving — s_cbranch_vccz/vccnz test raw VCC, not VCC & EXEC. Duplicates #2405 (see note there); this one is the more complete version.

<!-- greyfinch-sync:Marvisak/VIctory:review:6058343815 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#pullrequestreview-6058343815). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T13:19:19Z. **Review:** APPROVED --- Tested locally: merged into main 940d32f69b, `cargo test -p victory-shader --locked` on macOS arm64 — 145 passed, 0 failed, 2 ignored (Windows-gated hardware execution tests not run here). Approving — s_cbranch_vccz/vccnz test raw VCC, not VCC & EXEC. Duplicates #2405 (see note there); this one is the more complete version.
oni-swr commented 2026-11-25 14:07:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-25T13:34:30Z.


WARP verification + comparison with #2405

Tested: PR head 583fc17689225a0e08e3c35cc5efa2d839d05e1a, on origin/main 940d32f69b22265690a0b5a15d6ded572ba33baf (the PR is one commit on that base, so the merge was a no-op).
Environment: VICTORY_D3D12_WARP=1 (software WARP), Windows 11 Pro 10.0.26200, rustc 1.98.1, DXC 1.9.0.5512 (dxcompiler), dxil.dll 1.8.2502.11 on PATH.

Command Result
cargo test -p victory-shader --lib --locked ok: 248 passed, 0 failed, 3 ignored (two benchmarks and one defect_ test, all ignored on main too)
cargo clippy -p victory-shader --all-targets --locked -- -D warnings exit 0
cargo xtask policy asset policy: 182 files ok, exit 0

The new test structure::tests::cbranch_vcc_tests_raw_vcc_without_exec_masking ran and passed (not skipped). I did not run it against unpatched main, so I have not shown that it fails without the fix.

Diff comparison with #2405 (same file, same lines in Lanes::branch in structure.rs). I agree with the earlier duplicate-check comment, and I ran the code, which that comment did not:

  • Code: the resulting Bool is identical to #2405. This PR also moves the exec() read into the execz / execnz arms and adds a comment explaining why VCC is not masked. That has no behavioural effect.
  • Tests: this PR uses constant VCC (s_mov_b32 vcc_lo, -1 / 0) under a v_cmpx-narrowed EXEC and checks Bool::TRUE. #2405 uses a per-lane v_cmp result and checks the lane atom and its polarity, so it exercises a symbolic VCC. The two cover different cases. Either PR could take the other's test.
  • Neither PR changes how wave64 reads the high half of VCC. I did not test wave64.

Limits: WARP only, no physical hardware GPU, no game files or dumps. Diff reviewed in full: the only changes are in structure.rs, with no process, network or filesystem actions.

AI use: Claude Code (Claude Sonnet 5.5)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7163975254 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#issuecomment-7163975254). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T13:34:30Z. --- **WARP verification + comparison with #2405** Tested: PR head `583fc17689225a0e08e3c35cc5efa2d839d05e1a`, on `origin/main` `940d32f69b22265690a0b5a15d6ded572ba33baf` (the PR is one commit on that base, so the merge was a no-op). Environment: `VICTORY_D3D12_WARP=1` (software WARP), Windows 11 Pro 10.0.26200, rustc 1.98.1, DXC 1.9.0.5512 (dxcompiler), dxil.dll 1.8.2502.11 on `PATH`. | Command | Result | |---|---| | `cargo test -p victory-shader --lib --locked` | ok: 248 passed, 0 failed, 3 ignored (two benchmarks and one `defect_` test, all ignored on main too) | | `cargo clippy -p victory-shader --all-targets --locked -- -D warnings` | exit 0 | | `cargo xtask policy` | `asset policy: 182 files ok`, exit 0 | The new test `structure::tests::cbranch_vcc_tests_raw_vcc_without_exec_masking` ran and passed (not skipped). I did not run it against unpatched main, so I have not shown that it fails without the fix. **Diff comparison with #2405** (same file, same lines in `Lanes::branch` in `structure.rs`). I agree with the earlier duplicate-check comment, and I ran the code, which that comment did not: - Code: the resulting `Bool` is identical to #2405. This PR also moves the `exec()` read into the `execz` / `execnz` arms and adds a comment explaining why VCC is not masked. That has no behavioural effect. - Tests: this PR uses constant VCC (`s_mov_b32 vcc_lo, -1` / `0`) under a `v_cmpx`-narrowed EXEC and checks `Bool::TRUE`. #2405 uses a per-lane `v_cmp` result and checks the lane atom and its polarity, so it exercises a symbolic VCC. The two cover different cases. Either PR could take the other's test. - Neither PR changes how wave64 reads the high half of VCC. I did not test wave64. Limits: WARP only, no physical hardware GPU, no game files or dumps. Diff reviewed in full: the only changes are in `structure.rs`, with no process, network or filesystem actions. AI use: Claude Code (Claude Sonnet 5.5)
steven-seagull27 commented 2026-11-25 14:07:26 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by steven-seagull27 on 2026-11-25T13:35:30Z.


I ran a Wave32 readback on this head (583fc17), #2405 and their common parent. All three still split a scalar branch across lanes when VCC has only bit 0 set and a later compare narrows EXEC to lane 1. For s_cbranch_vccnz, lane 0 stored 11 and lanes 1–31 stored 23. The scalar result should be 11 for all 32. The complementary vccz case was also wrong in 31/32 lanes; the zero-VCC controls matched throughout.

The RTX 5080, built-in WARP and WARP 1.0.22 returned the same output arrays. I also ran this PR’s structural test on the parent, where it already passes. The test-only commit applies to either PR. Full per-opcode results and rerun instructions · Wave32 reproducer

AI-assisted with Codex. Synthetic shaders only.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7164000167 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#issuecomment-7164000167). Originally posted by [steven-seagull27](https://github.com/steven-seagull27) on 2026-11-25T13:35:30Z. --- I ran a Wave32 readback on this head (`583fc17`), #2405 and their common parent. All three still split a scalar branch across lanes when VCC has only bit 0 set and a later compare narrows EXEC to lane 1. For `s_cbranch_vccnz`, lane 0 stored 11 and lanes 1–31 stored 23. The scalar result should be 11 for all 32. The complementary `vccz` case was also wrong in 31/32 lanes; the zero-VCC controls matched throughout. The RTX 5080, built-in WARP and WARP 1.0.22 returned the same output arrays. I also ran this PR’s structural test on the parent, where it already passes. The test-only commit applies to either PR. [Full per-opcode results and rerun instructions](https://github.com/Marvisak/VIctory/pull/2405#issuecomment-7163994324) · [Wave32 reproducer](https://github.com/steven-seagull27/VIctory/commit/e0b10c17b1de49abe7d469f120803eec42429044) AI-assisted with Codex. Synthetic shaders only.
upipibi commented 2026-11-25 14:07:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-25T13:22:17Z.


Duplicate check: this and #2405 (ashrafsdrop, opened 31 s earlier) make the same edit in structure.rs. So does the older #1336 (wbkepler, 2026-11-24, now conflicting): it has the same vcc hunk and the same cbranch_vcc_tests_raw_vcc_without_exec_masking test as this PR (added in an edit). Both replace self.b.and(vcc, exec) with raw vcc for s_cbranch_vccz / s_cbranch_vccnz.

Correction (edited): I first wrote that either one fixes it. From reading main 940d32f, neither changes behaviour. exec(inst) returns Bool::TRUE when the instruction doesn't read EXEC (structure.rs:914-919), and the VCC branches don't read it, so and(vcc, exec) already reduces to vcc. steven-seagull27 ran both PRs' tests on the parent and they pass there (comment). The bug that's left is in neither PR: the branch is decided per lane from the lane's VCC bit, not wave-wide from VCC != 0. His test-only commit e0b10c17 fails on all three trees.

The differences:

  • This PR also moves the self.exec(inst) read into the s_cbranch_execz / execnz arms. That doesn't change behaviour either.
  • The tests differ. #2405 checks the branch condition is the v_cmp's lane bool after a v_cmpx that changes EXEC. This one checks constant VCC under an EXEC of 0.

AI-assisted (Claude Code). Read from the two diffs and main only; nothing run.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7163678951 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#issuecomment-7163678951). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T13:22:17Z. --- Duplicate check: this and #2405 (ashrafsdrop, opened 31 s earlier) make the same edit in `structure.rs`. So does the older #1336 (wbkepler, 2026-11-24, now conflicting): it has the same `vcc` hunk and the same `cbranch_vcc_tests_raw_vcc_without_exec_masking` test as this PR (added in an edit). Both replace `self.b.and(vcc, exec)` with raw `vcc` for `s_cbranch_vccz` / `s_cbranch_vccnz`. **Correction (edited):** I first wrote that either one fixes it. From reading `main` `940d32f`, neither changes behaviour. `exec(inst)` returns `Bool::TRUE` when the instruction doesn't read EXEC (`structure.rs:914-919`), and the VCC branches don't read it, so `and(vcc, exec)` already reduces to `vcc`. steven-seagull27 ran both PRs' tests on the parent and they pass there ([comment](https://github.com/Marvisak/VIctory/pull/2405#issuecomment-7163994324)). The bug that's left is in neither PR: the branch is decided per lane from the lane's VCC bit, not wave-wide from `VCC != 0`. His test-only commit `e0b10c17` fails on all three trees. The differences: - This PR also moves the `self.exec(inst)` read into the `s_cbranch_execz` / `execnz` arms. That doesn't change behaviour either. - The tests differ. #2405 checks the branch condition is the `v_cmp`'s lane bool after a `v_cmpx` that changes EXEC. This one checks constant VCC under an EXEC of 0. AI-assisted (Claude Code). Read from the two diffs and `main` only; nothing run.
steven-seagull27 commented 2026-11-25 15:04:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by steven-seagull27 on 2026-11-25T14:26:59Z.


I pushed the same wave-wide branch fix based on this PR’s head. To apply it on 583fc17, run the following commands.

git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2406-vcc-wave-integration
git cherry-pick 86fde8a4873167908ab14c8d682078ef2e62fa70
cargo test --locked -p victory-shader --lib vcc_branch -- --test-threads=1 --nocapture

The original mixed-lane test went from 62/128 wrong to 0/128 wrong on both the RTX 5080 and WARP 1.0.22. The RTX also matched all 872 Wave32 words in the two-wave tests. WARP 1.0.22 matched both full-wave groups (512 Wave32 words and 1,024 Wave64 words). Its 45-thread Wave32 group missed 26/360 words, which a native HLSL ballot reproduces. Its 85-thread Wave64 group returned 38, 0, 0, 0, 16 and 8 incorrect words out of 680 across six fresh processes. An optimized native HLSL shader also reproduced intermittent wrong decisions on this runtime. Built-in WARP skipped the fixed-width shaders. Full comparison and compiler limits

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7165295264 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#issuecomment-7165295264). Originally posted by [steven-seagull27](https://github.com/steven-seagull27) on 2026-11-25T14:26:59Z. --- I pushed the [same wave-wide branch fix based on this PR’s head](https://github.com/steven-seagull27/VIctory/commit/86fde8a4873167908ab14c8d682078ef2e62fa70). To apply it on `583fc17`, run the following commands. ```sh git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2406-vcc-wave-integration git cherry-pick 86fde8a4873167908ab14c8d682078ef2e62fa70 cargo test --locked -p victory-shader --lib vcc_branch -- --test-threads=1 --nocapture ``` The original mixed-lane test went from 62/128 wrong to **0/128 wrong** on both the RTX 5080 and WARP 1.0.22. The RTX also matched all 872 Wave32 words in the two-wave tests. WARP 1.0.22 matched both full-wave groups (512 Wave32 words and 1,024 Wave64 words). Its 45-thread Wave32 group missed 26/360 words, which a native HLSL ballot reproduces. Its 85-thread Wave64 group returned 38, 0, 0, 0, 16 and 8 incorrect words out of 680 across six fresh processes. An optimized native HLSL shader also reproduced intermittent wrong decisions on this runtime. Built-in WARP skipped the fixed-width shaders. [Full comparison and compiler limits](https://github.com/Marvisak/VIctory/pull/2405#issuecomment-7165284257) AI-assisted with Codex.
Marvisak commented 2026-11-25 16:09:14 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:31:32Z.


Automated triage for the maintainers.

Proposed close (no change in behaviour). As with #2405: in crates/victory-shader/src/structure.rs, Lanes::exec returns Bool::TRUE for an instruction that does not read EXEC, and ir.rs gives s_cbranch_vccz/s_cbranch_vccnz only a VCC read, so and(vcc, exec) was already vcc; moving the exec() call into the execz/execnz arms makes no difference either. The new test cbranch_vcc_tests_raw_vcc_without_exec_masking passes on the parent 940d32f too, and the added comment describes a behaviour change this diff does not make. What is actually wrong, per the readbacks in the comments, is that the branch is decided per lane rather than once for the wave from VCC != 0; a PR that fixes that, with a test that fails on main, would be welcome. CI: passing.

This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7166977386 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#issuecomment-7166977386). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T15:31:32Z. --- <!-- victory-triage v1 head=583fc17689225a0e08e3c35cc5efa2d839d05e1a verdict=proposed-close at=2026-11-25T15:33:00Z --> Automated triage for the maintainers. **Proposed close (no change in behaviour).** As with #2405: in `crates/victory-shader/src/structure.rs`, `Lanes::exec` returns `Bool::TRUE` for an instruction that does not read EXEC, and `ir.rs` gives `s_cbranch_vccz`/`s_cbranch_vccnz` only a VCC read, so `and(vcc, exec)` was already `vcc`; moving the `exec()` call into the `execz`/`execnz` arms makes no difference either. The new test `cbranch_vcc_tests_raw_vcc_without_exec_masking` passes on the parent `940d32f` too, and the added comment describes a behaviour change this diff does not make. What is actually wrong, per the readbacks in the comments, is that the branch is decided per lane rather than once for the wave from `VCC != 0`; a PR that fixes that, with a test that fails on `main`, would be welcome. CI: passing. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label. --- _Generated by [Claude Code](https://claude.ai/code)_
kotekompotek commented 2026-11-25 17:05:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T16:51:56Z.


The EXEC-mask removal is right — hardware tests raw VCC (VCCZ/VCCNZ reflect the whole scalar register, and inactive lanes can hold VCC bits), so masking with EXEC can flip the branch.

One level the fix doesn't reach: s_cbranch_vcc* is uniform — the whole wave takes one path (VCCZ is a scalar flag, not per-lane). Keeping vcc as a per-lane Bool still lets the structurer treat it as divergent, which is the deeper bug #2405 fixes (scalar-mask preservation + bounded uniform counter, with Wave32/Wave64 readback tests failing on main). For triage: this is a correct partial fix; #2405 is the complete one — merging order matters for the test expectations each asserts.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7168648379 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#issuecomment-7168648379). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T16:51:56Z. --- The EXEC-mask removal is right — hardware tests raw `VCC` (`VCCZ`/`VCCNZ` reflect the whole scalar register, and inactive lanes can hold VCC bits), so masking with EXEC can flip the branch. One level the fix doesn't reach: `s_cbranch_vcc*` is *uniform* — the whole wave takes one path (VCCZ is a scalar flag, not per-lane). Keeping `vcc` as a per-lane `Bool` still lets the structurer treat it as divergent, which is the deeper bug #2405 fixes (scalar-mask preservation + bounded uniform counter, with Wave32/Wave64 readback tests failing on main). For triage: this is a correct partial fix; #2405 is the complete one — merging order matters for the test expectations each asserts.
zed6000 commented 2026-11-25 22:04:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by zed6000 on 2026-11-25T21:40:14Z.


Measured offline on the title's shaders (the method in #1247): this head (583fc17) merged onto main 13f91ca (a clean merge), compared program by program over shaders.rpf 1.0.2.1 with dxil.dll 1.8.2502: 0 gained, 0 lost. For comparison, #2405, which targets the same s_cbranch_vccz/vccnz semantics, loses 1,829 programs on the same base (details there). Offline counts only; no program names or data.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7175386489 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#issuecomment-7175386489). Originally posted by [zed6000](https://github.com/zed6000) on 2026-11-25T21:40:14Z. --- Measured offline on the title's shaders (the method in #1247): this head (`583fc17`) merged onto main `13f91ca` (a clean merge), compared program by program over `shaders.rpf` 1.0.2.1 with dxil.dll 1.8.2502: **0 gained, 0 lost**. For comparison, #2405, which targets the same `s_cbranch_vccz`/`vccnz` semantics, loses 1,829 programs on the same base (details there). Offline counts only; no program names or data.
zed6000 commented 2026-11-25 22:04:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by zed6000 on 2026-11-25T21:47:50Z.


Following up for anyone picking up the wave-wide fix suggested above: steven-seagull27's 86fde8a on top of this head, merged onto 13f91ca, loses 18,170 programs offline (mostly "a scalar VCC branch requiring the guest wave width": 14,095). This head alone loses none. #2405, which carries the same fix plus a per-lane fallback, loses 1,829. The breakdown is on #2405. Offline counts only; no program names or data.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7175550301 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#issuecomment-7175550301). Originally posted by [zed6000](https://github.com/zed6000) on 2026-11-25T21:47:50Z. --- Following up for anyone picking up the wave-wide fix suggested above: steven-seagull27's [`86fde8a`](https://github.com/steven-seagull27/VIctory/commit/86fde8a4873167908ab14c8d682078ef2e62fa70) on top of this head, merged onto `13f91ca`, loses **18,170 programs** offline (mostly "a scalar VCC branch requiring the guest wave width": 14,095). This head alone loses none. #2405, which carries the same fix plus a per-lane fallback, loses 1,829. The breakdown is on #2405. Offline counts only; no program names or data.
steven-seagull27 commented 2026-11-26 02:07:01 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by steven-seagull27 on 2026-11-26T01:20:48Z.


Updating my earlier cherry-pick recommendation after @zed6000’s A/B. I withdraw 86fde8a as a release candidate. On the same shader archive and base, your head 583fc17 lost zero validated programs, my cherry-pick lost 18,170, and #2405’s revised 34c7ec2 lost 1,829. Changing the result from a wrong translation to an explicit refusal can be appropriate for an individual shader. These counts do establish a release cost. Same-base comparison

The mixed-lane test still distinguishes the implementations. The raw-VCC head gave 62/128 wrong output words on my RTX 5080. The wave-wide version gave 0/128 there, and @upipibi independently got 0/128 on an RTX 3070. #2405 has taken the wave-wide commit with authorship, so I’m following up there on preserving compiler proofs. RTX 3070 readbacks

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179681871 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2406#issuecomment-7179681871). Originally posted by [steven-seagull27](https://github.com/steven-seagull27) on 2026-11-26T01:20:48Z. --- Updating my earlier cherry-pick recommendation after @zed6000’s A/B. **I withdraw `86fde8a` as a release candidate.** On the same shader archive and base, your head `583fc17` lost zero validated programs, my cherry-pick lost 18,170, and #2405’s revised `34c7ec2` lost 1,829. Changing the result from a wrong translation to an explicit refusal can be appropriate for an individual shader. These counts do establish a release cost. [Same-base comparison](https://github.com/Marvisak/VIctory/pull/2405#issuecomment-7175549681) The mixed-lane test still distinguishes the implementations. The raw-VCC head gave 62/128 wrong output words on my RTX 5080. The wave-wide version gave 0/128 there, and @upipibi independently got 0/128 on an RTX 3070. #2405 has taken the wave-wide commit with authorship, so I’m following up there on preserving compiler proofs. [RTX 3070 readbacks](https://github.com/Marvisak/VIctory/pull/2405#issuecomment-7165919279) AI-assisted with Codex.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!2404
No description provided.