Shaders: allow redundant masked v_mov_b32 writes after per-lane descriptor joins (fixes #750) #3298

Open
pushkarreddyy wants to merge 5 commits from upstream-pr/3298 into main
pushkarreddyy commented 2026-11-26 16:22:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-26T16:22:24Z.


Summary

Allows redundant masked v_mov_b32 writes after a per-lane descriptor join when every active lane writes the exact value its register already held (fixes #750).

Root Cause

In crates/victory-shader/src/resource.rs, Tracer::lane_value called Tracer::runs(site, known)? on every VGPR copy and rejected any masked write where some lanes in known could skip site, even when the active lanes wrote back the same value they already held from the prior SSA definition (such as a phi arm).

Changes

  • crates/victory-shader/src/resource.rs:
    • Added Tracer::redundant_mov_prior and Tracer::same_under: when runs(site, known) fails on a v_mov_b32, checks whether the prior SSA value of that VGPR in the block agrees with the written value on all active lanes (known + reach + guard). If so, lane_value continues tracing through the prior value so both active and skipping lanes remain consistent.
    • Added positive regression test joined_descriptor_redundant_partial_write (from #750) and negative test joined_descriptor_non_redundant_partial_write_fails.

Testing & Verification

  • Added joined_descriptor_redundant_partial_write and joined_descriptor_non_redundant_partial_write_fails in crates/victory-shader/src/resource.rs.
  • Testers on untested GPU models and drivers are welcome to verify shader translation and waterfall tracking.

No game files used.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:issue:5513590593 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-26T16:22:24Z. --- ## Summary Allows redundant masked `v_mov_b32` writes after a per-lane descriptor join when every active lane writes the exact value its register already held (fixes #750). ## Root Cause In `crates/victory-shader/src/resource.rs`, `Tracer::lane_value` called `Tracer::runs(site, known)?` on every VGPR copy and rejected any masked write where some lanes in `known` could skip `site`, even when the active lanes wrote back the same value they already held from the prior SSA definition (such as a `phi` arm). ## Changes - `crates/victory-shader/src/resource.rs`: - Added `Tracer::redundant_mov_prior` and `Tracer::same_under`: when `runs(site, known)` fails on a `v_mov_b32`, checks whether the prior SSA value of that VGPR in the block agrees with the written value on all active lanes (`known + reach + guard`). If so, `lane_value` continues tracing through the prior value so both active and skipping lanes remain consistent. - Added positive regression test `joined_descriptor_redundant_partial_write` (from #750) and negative test `joined_descriptor_non_redundant_partial_write_fails`. ## Testing & Verification - Added `joined_descriptor_redundant_partial_write` and `joined_descriptor_non_redundant_partial_write_fails` in `crates/victory-shader/src/resource.rs`. - Testers on untested GPU models and drivers are welcome to verify shader translation and waterfall tracking. No game files used. AI-assisted: yes (Gemini 4 Neon)
Dukestar69 commented 2026-11-26 16:50:48 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T16:50:48Z.

Review: COMMENTED


Ran local verification on Windows 11 x64 (origin/main 63bcca4 merged with this PR):

  • cargo test -p victory-shader --lib resource::tests:: -- --test-threads=1: 36 passed, 1 failed — the newly added test resource::tests::joined_descriptor_redundant_partial_write fails:
    thread 'resource::tests::joined_descriptor_redundant_partial_write' panicked at crates\victory-shader\src\resource.rs:4012:34:
    called `Result::unwrap()` on an `Err` value: Unsupported { offset: 264, what: "a per-lane descriptor written where some lanes may keep the old one" }
    
  • cargo clippy -p victory-shader --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6077842122 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#pullrequestreview-6077842122). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T16:50:48Z. **Review:** COMMENTED --- Ran local verification on Windows 11 x64 (`origin/main` `63bcca4` merged with this PR): - `cargo test -p victory-shader --lib resource::tests:: -- --test-threads=1`: **36 passed, 1 failed** — the newly added test `resource::tests::joined_descriptor_redundant_partial_write` fails: ``` thread 'resource::tests::joined_descriptor_redundant_partial_write' panicked at crates\victory-shader\src\resource.rs:4012:34: called `Result::unwrap()` on an `Err` value: Unsupported { offset: 264, what: "a per-lane descriptor written where some lanes may keep the old one" } ``` - `cargo clippy -p victory-shader --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
oni-swr commented 2026-11-26 18:24:27 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-26T18:24:27Z.


WARP verification of #3298 (synthetic tests only, no game files, no physical GPU).

Result: the PR's new positive test joined_descriptor_redundant_partial_write fails on the PR head.

Commits

  • Head: e95add4b2f6129935f6b2e4fda0d54292ccb0c15
  • Base / main control: 63bcca43c6a00a758510398fa43096ce7e4f7df0

Environment

  • Windows 11 10.0.26200, rustc/cargo 1.98.1
  • WARP d3d10warp.dll 10.0.26100.9818, dxil.dll 1.8.2502.11 (Windows SDK 10.0.26100.0 x64)
  • VICTORY_WARP=1, VICTORY_D3D12_WARP=1

New tests, head vs control
Control = 63bcca43 with only the PR's two tests applied.

test head control
resource::tests::joined_descriptor_redundant_partial_write FAILED FAILED
resource::tests::joined_descriptor_non_redundant_partial_write_fails ok ok

Both sides fail with the same error at waterfall(&words, false).unwrap():
Unsupported { offset: 264, what: "a per-lane descriptor written where some lanes may keep the old one" }.
It is deterministic: it failed on a parallel run and on --test-threads=1. These tests are pure shader tracing and do not touch the GPU, so WARP is not a factor. As the tests are written here, the PR's change does not make the redundant masked write accepted. The negative test passes both before and after, so it does not show the change.

Full cargo test -p victory-shader --lib on head: 299 passed, 5 failed, 3 ignored (307 total, 1955 s).

  • 1 failure is the PR's new positive test above.
  • 4 failures are the same wave-32/gather emit::synthetic_tests::* failures that also fail on unmodified 63bcca43. They are permutes_read_the_lane_named_and_zero_from_lanes_left_out, permutes_mask_high_address_bits_and_divergent_branches, gathers_at_a_level_match_the_hardware and a_mask_joined_with_data_at_a_uniform_loop_is_its_number.

Not tested

  • Any physical GPU: WARP software adapter only. The 3 wave-32 tests fail on WARP for lack of a wave32 pipeline, on both sides.
  • No game files, dumps or retail shaders, so I could not check the real-shader case behind #750.
  • I did not run clippy or xtask policy.

AI use: Claude Code (Claude Sonnet 5.5)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200426929 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7200426929). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T18:24:27Z. --- WARP verification of #3298 (synthetic tests only, no game files, no physical GPU). **Result: the PR's new positive test `joined_descriptor_redundant_partial_write` fails on the PR head.** **Commits** - Head: `e95add4b2f6129935f6b2e4fda0d54292ccb0c15` - Base / main control: `63bcca43c6a00a758510398fa43096ce7e4f7df0` **Environment** - Windows 11 10.0.26200, rustc/cargo 1.98.1 - WARP `d3d10warp.dll` 10.0.26100.9818, `dxil.dll` 1.8.2502.11 (Windows SDK 10.0.26100.0 x64) - `VICTORY_WARP=1`, `VICTORY_D3D12_WARP=1` **New tests, head vs control** Control = `63bcca43` with only the PR's two tests applied. | test | head | control | |---|---|---| | `resource::tests::joined_descriptor_redundant_partial_write` | **FAILED** | FAILED | | `resource::tests::joined_descriptor_non_redundant_partial_write_fails` | ok | ok | Both sides fail with the same error at `waterfall(&words, false).unwrap()`: `Unsupported { offset: 264, what: "a per-lane descriptor written where some lanes may keep the old one" }`. It is deterministic: it failed on a parallel run and on `--test-threads=1`. These tests are pure shader tracing and do not touch the GPU, so WARP is not a factor. As the tests are written here, the PR's change does not make the redundant masked write accepted. The negative test passes both before and after, so it does not show the change. **Full `cargo test -p victory-shader --lib` on head:** 299 passed, 5 failed, 3 ignored (307 total, 1955 s). - 1 failure is the PR's new positive test above. - 4 failures are the same wave-32/gather `emit::synthetic_tests::*` failures that also fail on unmodified `63bcca43`. They are `permutes_read_the_lane_named_and_zero_from_lanes_left_out`, `permutes_mask_high_address_bits_and_divergent_branches`, `gathers_at_a_level_match_the_hardware` and `a_mask_joined_with_data_at_a_uniform_loop_is_its_number`. **Not tested** - Any physical GPU: WARP software adapter only. The 3 wave-32 tests fail on WARP for lack of a wave32 pipeline, on both sides. - No game files, dumps or retail shaders, so I could not check the real-shader case behind #750. - I did not run clippy or `xtask policy`. AI use: Claude Code (Claude Sonnet 5.5)
pushkarreddyy commented 2026-11-26 18:46:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-26T18:46:05Z.


@Marvisak Please review and merge this PR. Testers, kindly run on untested GPU models. AI‑assisted ✅ Gemini‑4 Neon

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200829199 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7200829199). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-26T18:46:05Z. --- @Marvisak Please review and merge this PR. Testers, kindly run on untested GPU models. AI‑assisted ✅ Gemini‑4 Neon
andrewpozdnakov7-jpg commented 2026-11-26 18:59:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T18:59:20Z.


I reproduced the positive test failure on e95add4 before any DXIL or GPU work. 8b404f4 is a follow-up on that exact head.

The redundancy proof needs the incoming branch condition as well as the predecessor’s reach condition. With that condition, the two copies of the integer comparison also need to be recognized as the same per-lane predicate. Their explicit operands agree, while the implicit EXEC SSA value was redefined when EXEC was restored. The follow-up reuses the existing edge conditions, keeps explicit inputs in the comparison, and uses the existing join depth limit for nested proofs.

With the follow-up, the positive fixture traces both original table offsets (0 and 0x20). The real write in the negative fixture is still refused. All 37 resource tests passed. In three app-local WARP runs with DXIL validation, all five waterfall tests passed, including the extended test that reads red 1.0 from the first texture in lanes 0–15 and red 2.0 from the second in lanes 16–31, with and without the redundant write. Both all-target Clippy configurations passed. The full WARP run was 300 passed, 4 failed, 3 ignored, with the same four failures already reproduced on main.

pushkarreddyy, please consider applying the follow-up and rerunning CI on the PR branch. If you fold it into another commit, please preserve its Git author or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7201073143 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7201073143). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-26T18:59:20Z. --- I reproduced the positive test failure on `e95add4` before any DXIL or GPU work. [`8b404f4`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/8b404f4aa2d00c030ab15080f2c99a916cc66e1a) is a follow-up on that exact head. The redundancy proof needs the incoming branch condition as well as the predecessor’s reach condition. With that condition, the two copies of the integer comparison also need to be recognized as the same per-lane predicate. Their explicit operands agree, while the implicit EXEC SSA value was redefined when EXEC was restored. The follow-up reuses the existing edge conditions, keeps explicit inputs in the comparison, and uses the existing join depth limit for nested proofs. With the follow-up, the positive fixture traces both original table offsets (`0` and `0x20`). The real write in the negative fixture is still refused. All 37 resource tests passed. In three app-local WARP runs with DXIL validation, all five waterfall tests passed, including the extended test that reads red 1.0 from the first texture in lanes 0–15 and red 2.0 from the second in lanes 16–31, with and without the redundant write. Both all-target Clippy configurations passed. The full WARP run was 300 passed, 4 failed, 3 ignored, with the same four failures already reproduced on `main`. pushkarreddyy, please consider applying the follow-up and rerunning CI on the PR branch. If you fold it into another commit, please preserve its Git author or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
fuzeofficlal commented 2026-11-26 20:24:27 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T20:24:27Z.

Review: CHANGES_REQUESTED


Requesting changes on e95add4b: the new positive regression test currently fails on the PR head, and there are two soundness gaps in the equivalence proof.

Blocking issues

  1. [P1] joined_descriptor_redundant_partial_write fails on e95add4b:
    Running cargo test --locked -p victory-shader --lib resource::tests:: -- --test-threads=1 gives 36 passed, 1 failed (crates/victory-shader/src/resource.rs:4012:34 panics with Unsupported { offset: 264, what: "a per-lane descriptor written where some lanes may keep the old one" }). As noted in earlier comments, two independent issues break the proof:
    • same_compare (resource.rs:1640-1648) checks ia.reads == ib.reads, which fails when two identical v_cmp_* instructions read distinct implicit Reg::S(EXEC) SSA values (e.g., entry EXEC vs. restored EXEC).
    • check_phi (resource.rs:1667-1679) only pushes (lanes.reach[pred], true) and drops the pred -> pb branch edge condition, so it traverses unmatching predecessor edges back to the pre-join register input.
  2. [P1] vstep ignores clamp and omod on v_mov_b32:
    vstep (resource.rs:1689-1702) only guards abs == 0 && neg == 0 && sdwa.is_none() && dpp.is_none(), omitting !f.clamp && f.omod == 0. However, emit/lower.rs:6230-6236 and write_f (emit/lower.rs:2811-2831) treat v_mov_b32 with clamp or nonzero omod as a float transform rather than a bitwise copy. A masked v_mov_b32_e64 v4, s24 with omod != 0 or clamp would be misclassified by same_under as an identity write.
  3. [P1] check_phi traverses loop-header backedges:
    Unlike lane_phi (resource.rs:1951), check_phi (resource.rs:1673) does not reject loop headers (rpo[pred] >= rpo[pb]). Because structure.rs:1400-1402 forgets loop-redefined atoms across backedges, mixing exit-iteration facts in known with a backedge check can make consistent(&edge) return false and silently discard a live loop-carried value.

Additional notes

  • Prior definition lookup (resource.rs:1587-1598): scanning only earlier instructions in the same block and local phis misses reaching definitions from dominators; in IR, the prior value of the overwritten VGPR is already carried on inst.read(reg).
  • Dual-phi correlation (resource.rs:1651-1684): expanding va and vb sequentially rather than pairing matching predecessors allows cross-edge comparisons when both operands are phis from the same block.
  • Test coverage: once the proof passes, joined_descriptor_redundant_partial_write should also assert the traced descriptors/waterfall counts (and joined_descriptor_non_redundant_partial_write_fails will start genuinely exercising the s28 != s24 mismatch instead of failing at the pre-join input).
<!-- greyfinch-sync:Marvisak/VIctory:review:6080118362 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#pullrequestreview-6080118362). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T20:24:27Z. **Review:** CHANGES_REQUESTED --- Requesting changes on `e95add4b`: the new positive regression test currently fails on the PR head, and there are two soundness gaps in the equivalence proof. ### Blocking issues 1. **[P1] `joined_descriptor_redundant_partial_write` fails on `e95add4b`:** Running `cargo test --locked -p victory-shader --lib resource::tests:: -- --test-threads=1` gives **36 passed, 1 failed** (`crates/victory-shader/src/resource.rs:4012:34` panics with `Unsupported { offset: 264, what: "a per-lane descriptor written where some lanes may keep the old one" }`). As noted in earlier comments, two independent issues break the proof: - `same_compare` (`resource.rs:1640-1648`) checks `ia.reads == ib.reads`, which fails when two identical `v_cmp_*` instructions read distinct implicit `Reg::S(EXEC)` SSA values (e.g., entry `EXEC` vs. restored `EXEC`). - `check_phi` (`resource.rs:1667-1679`) only pushes `(lanes.reach[pred], true)` and drops the `pred -> pb` branch edge condition, so it traverses unmatching predecessor edges back to the pre-join register input. 2. **[P1] `vstep` ignores `clamp` and `omod` on `v_mov_b32`:** `vstep` (`resource.rs:1689-1702`) only guards `abs == 0 && neg == 0 && sdwa.is_none() && dpp.is_none()`, omitting `!f.clamp && f.omod == 0`. However, `emit/lower.rs:6230-6236` and `write_f` (`emit/lower.rs:2811-2831`) treat `v_mov_b32` with `clamp` or nonzero `omod` as a float transform rather than a bitwise copy. A masked `v_mov_b32_e64 v4, s24` with `omod != 0` or `clamp` would be misclassified by `same_under` as an identity write. 3. **[P1] `check_phi` traverses loop-header backedges:** Unlike `lane_phi` (`resource.rs:1951`), `check_phi` (`resource.rs:1673`) does not reject loop headers (`rpo[pred] >= rpo[pb]`). Because `structure.rs:1400-1402` forgets loop-redefined atoms across backedges, mixing exit-iteration facts in `known` with a backedge check can make `consistent(&edge)` return `false` and silently discard a live loop-carried value. ### Additional notes - **Prior definition lookup (`resource.rs:1587-1598`):** scanning only earlier instructions in the same block and local phis misses reaching definitions from dominators; in IR, the prior value of the overwritten VGPR is already carried on `inst.read(reg)`. - **Dual-phi correlation (`resource.rs:1651-1684`):** expanding `va` and `vb` sequentially rather than pairing matching predecessors allows cross-edge comparisons when both operands are phis from the same block. - **Test coverage:** once the proof passes, `joined_descriptor_redundant_partial_write` should also assert the traced descriptors/waterfall counts (and `joined_descriptor_non_redundant_partial_write_fails` will start genuinely exercising the `s28 != s24` mismatch instead of failing at the pre-join input).
pushkarreddyy commented 2026-11-27 04:04:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-27T04:04:10Z.


@andrewpozdnakov7-jpg @fuzeofficlal @oni-swr @Dukestar69 Thank you for the detailed review and follow-up!

I have updated the PR branch with:

  1. 8b404f4 (cherry-picked from @andrewpozdnakov7-jpg, preserving Git authorship): keeps the incoming branch condition via assume_edge, compares explicit operands in same_compare (avoiding spurious Reg::S(EXEC) SSA mismatches), rejects loop-header backedges in check_phi, uses the existing MAX_JOINS depth limit, and asserts the traced descriptor offsets ([0, 0x20]) in joined_descriptor_redundant_partial_write plus the waterfall_tests case.
  2. Guarded !f.clamp && f.omod == 0 in vstep so float-transforming v_mov_b32 instructions are not treated as bitwise copies, and added .or_else(|| inst.read(reg)) fallback in redundant_mov_prior for reaching definitions from dominators.

@fuzeofficlal Please re-review when you have a chance, and @Marvisak please review and merge once CI is green. Testers on untested GPU models are welcome to test.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7209494032 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7209494032). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-27T04:04:10Z. --- @andrewpozdnakov7-jpg @fuzeofficlal @oni-swr @Dukestar69 Thank you for the detailed review and follow-up! I have updated the PR branch with: 1. `8b404f4` (cherry-picked from @andrewpozdnakov7-jpg, preserving Git authorship): keeps the incoming branch condition via `assume_edge`, compares explicit operands in `same_compare` (avoiding spurious `Reg::S(EXEC)` SSA mismatches), rejects loop-header backedges in `check_phi`, uses the existing `MAX_JOINS` depth limit, and asserts the traced descriptor offsets (`[0, 0x20]`) in `joined_descriptor_redundant_partial_write` plus the `waterfall_tests` case. 2. Guarded `!f.clamp && f.omod == 0` in `vstep` so float-transforming `v_mov_b32` instructions are not treated as bitwise copies, and added `.or_else(|| inst.read(reg))` fallback in `redundant_mov_prior` for reaching definitions from dominators. @fuzeofficlal Please re-review when you have a chance, and @Marvisak please review and merge once CI is green. Testers on untested GPU models are welcome to test. AI-assisted: yes (Gemini 4 Neon)
futurepro62 commented 2026-11-27 06:47:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-27T06:47:51Z.


NVIDIA full-suite run, to go with the reports above by Dukestar69, andrewpozdnakov7-jpg, fuzeofficlal, oni-swr, since none of them names a GPU run. Tested exact head 44dec2f (on its base 63bcca4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 868 passed, 0 failed, 10 ignored.
  • The new tests ran and passed: joined_descriptor_redundant_partial_write, joined_descriptor_non_redundant_partial_write_fails.
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#2571), so without the skip the rest of that crate never reports; dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7211855354 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7211855354). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-27T06:47:51Z. --- NVIDIA full-suite run, to go with the reports above by Dukestar69, andrewpozdnakov7-jpg, fuzeofficlal, oni-swr, since none of them names a GPU run. Tested exact head `44dec2f` (on its base `63bcca4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware`: **868 passed, 0 failed, 10 ignored**. - The new tests ran and passed: `joined_descriptor_redundant_partial_write`, `joined_descriptor_non_redundant_partial_write_fails`. - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#2571), so without the skip the rest of that crate never reports; `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
pushkarreddyy commented 2026-11-27 06:51:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-27T06:51:50Z.


@futurepro62 Thank you for running the full RTX 5070 Ti suite on 44dec2f (868 passed, 0 failed, 10 ignored, including both new tests)!

@fuzeofficlal Please re-review 44dec2f when convenient, and @Marvisak please review and merge once approved (CI is green). Testers on untested GPU models (e.g., AMD/Intel) are welcome to test.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7211916994 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7211916994). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-27T06:51:50Z. --- @futurepro62 Thank you for running the full RTX 5070 Ti suite on `44dec2f` (`868 passed, 0 failed, 10 ignored`, including both new tests)! @fuzeofficlal Please re-review `44dec2f` when convenient, and @Marvisak please review and merge once approved (CI is green). Testers on untested GPU models (e.g., AMD/Intel) are welcome to test. AI-assisted: yes (Gemini 4 Neon)
pushkarreddyy commented 2026-11-28 07:50:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-28T07:50:59Z.


@fuzeofficlal Also addressed your additional note on dual-phi correlation (7d83d2c / latest head): when both operands are phis in the same block, same_under now pairs matching predecessors (arg_a, arg_b) directly instead of expanding sequentially.

@fuzeofficlal Please re-review when convenient, and @Marvisak please review and merge once approved and CI is green. Testers on untested GPU models (e.g., AMD/Intel) are welcome to test.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7236200581 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7236200581). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-28T07:50:59Z. --- @fuzeofficlal Also addressed your additional note on dual-phi correlation (`7d83d2c` / latest head): when both operands are phis in the same block, `same_under` now pairs matching predecessors `(arg_a, arg_b)` directly instead of expanding sequentially. @fuzeofficlal Please re-review when convenient, and @Marvisak please review and merge once approved and CI is green. Testers on untested GPU models (e.g., AMD/Intel) are welcome to test. AI-assisted: yes (Gemini 4 Neon)
andrewpozdnakov7-jpg commented 2026-11-28 08:21:47 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T08:21:47Z.


I verified the paired-predecessor change on fb36615 and added a focused test. The generated shader has two distinct SSA phis that agree on each incoming edge. A third phi has the same two possible values in the opposite order. The test rejects equality with the third phi and accepts equality between the first two with one proof step left.

With only same_under restored to 44dec2f, the equal pair fails that last assertion. The same test passes on fb36615. Both existing masked-write regressions pass as well, along with strict shader Clippy and the asset policy. This test exercises CPU-side compiler analysis using a generated arithmetic diamond.

pushkarreddyy can pick up the test while fuzeofficlal re-reviews. Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg [email protected] if folding the test into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7236533572 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7236533572). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T08:21:47Z. --- I verified the paired-predecessor change on fb36615 and added a [focused test](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/eed13fd7137507445132c4cd925206ae5194bc1a). The generated shader has two distinct SSA phis that agree on each incoming edge. A third phi has the same two possible values in the opposite order. The test rejects equality with the third phi and accepts equality between the first two with one proof step left. With only same_under restored to 44dec2f, the equal pair fails that last assertion. The same test passes on fb36615. Both existing masked-write regressions pass as well, along with strict shader Clippy and the asset policy. This test exercises CPU-side compiler analysis using a generated arithmetic diamond. pushkarreddyy can pick up the test while fuzeofficlal re-reviews. Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the test into another commit. AI-assisted with OpenAI Codex.
pushkarreddyy commented 2026-11-28 17:04:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-28T17:04:59Z.


@andrewpozdnakov7-jpg Thank you for verifying fb36615 and writing the focused dual-phi test (eed13fd)! I have cherry-picked eed13fd (preserving Git authorship) onto the PR branch.

@fuzeofficlal Please re-review when convenient, and @Marvisak please review and merge once approved and CI is green. Testers on untested GPU models (e.g., AMD/Intel) are welcome to test.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7242740147 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7242740147). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-28T17:04:59Z. --- @andrewpozdnakov7-jpg Thank you for verifying `fb36615` and writing the focused dual-phi test (`eed13fd`)! I have cherry-picked `eed13fd` (preserving Git authorship) onto the PR branch. @fuzeofficlal Please re-review when convenient, and @Marvisak please review and merge once approved and CI is green. Testers on untested GPU models (e.g., AMD/Intel) are welcome to test. AI-assisted: yes (Gemini 4 Neon)
YouKnowWh commented 2026-12-01 09:50:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by YouKnowWh on 2026-12-01T09:50:59Z.


Verified PR head e312a86b02 in an isolated Windows-target build. On RTX 5070 Ti, driver 621.14, Windows 11 build 26300:

  • resource::tests:: — 38 passed, including the same-block phi matching-edge test and both masked-write cases.
  • emit::waterfall_tests:: — 5 passed with --nocapture and one test thread. The hardware and WARP paths ran without a device-skip message. The if/else-arm texture test exercises both the original fixture and the redundant partial write, checking the expected result in each of 32 lanes.

Synthetic inputs only. This adds NVIDIA/WARP coverage; AMD/Intel hardware remains a separate request. AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7307295544 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7307295544). Originally posted by [YouKnowWh](https://github.com/YouKnowWh) on 2026-12-01T09:50:59Z. --- Verified PR head e312a86b028cf8b075db7cc24006429a97392876 in an isolated Windows-target build. On RTX 5070 Ti, driver 621.14, Windows 11 build 26300: - resource::tests:: — 38 passed, including the same-block phi matching-edge test and both masked-write cases. - emit::waterfall_tests:: — 5 passed with --nocapture and one test thread. The hardware and WARP paths ran without a device-skip message. The if/else-arm texture test exercises both the original fixture and the redundant partial write, checking the expected result in each of 32 lanes. Synthetic inputs only. This adds NVIDIA/WARP coverage; AMD/Intel hardware remains a separate request. AI-assisted with Codex.
pushkarreddyy commented 2026-12-01 16:32:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-12-01T16:32:45Z.


@YouKnowWh Thank you for verifying e312a86 on RTX 5070 Ti and WARP (38 passed in resource::tests::, 5 passed in emit::waterfall_tests::)!

@fuzeofficlal Please re-review e312a86 when convenient, and @Marvisak please review and merge once approved (CI is green). Testers on untested GPU models (AMD/Intel) are welcome to test.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7317784029 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3298#issuecomment-7317784029). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-12-01T16:32:45Z. --- @YouKnowWh Thank you for verifying `e312a86` on RTX 5070 Ti and WARP (`38 passed` in `resource::tests::`, `5 passed` in `emit::waterfall_tests::`)! @fuzeofficlal Please re-review `e312a86` when convenient, and @Marvisak please review and merge once approved (CI is green). Testers on untested GPU models (AMD/Intel) are welcome to test. AI-assisted: yes (Gemini 4 Neon)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3298:upstream-pr/3298'
git switch 'upstream-pr/3298'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3298'
git switch 'upstream-pr/3298'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3298'
git switch 'upstream-pr/3298'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3298'
git switch 'main'
git merge --squash 'upstream-pr/3298'
git switch 'main'
git merge --ff-only 'upstream-pr/3298'
git switch 'main'
git merge 'upstream-pr/3298'
git push origin 'main'
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!3298
No description provided.