Recompiler: mask bridged V_CMP_* results with EXEC in per-lane lowering #2493

Merged
ChalanaGimhanaX merged 1 commit from upstream-pr/2503 into main 2026-11-29 12:19:10 +00:00
ChalanaGimhanaX commented 2026-11-25 20:55:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ChalanaGimhanaX on 2026-11-25T20:55:13Z.


Mask bridged non-CMPX V_CMP_* results with EXEC in per-lane direct DXIL lowering (Lower::bridge), matching RDNA2 hardware, native Lower::valu_op, and the HLSL path.

lane_masks::is_vector excludes all V_CMP* instructions so their PCs are never in self.guarded, and Lower::valu_op only lowers plain U32/I32 compares natively. Every float (F32/F16/F64), 64-bit, 16-bit, V_CMP_CLASS_*, and VOP3-modified/SDWA compare falls through to Lower::bridge, which previously only captured old_exec for V_CMPX* and passed guard = true to Ir::foreign. Inactive lanes outside EXEC therefore left 1 in VCC/SDST instead of 0, corrupting subsequent mask ops and S_CBRANCH_VCCZ/VCCNZ branches.

Part of #2458, #1269, and #1833. (Issue #2458 item 2 — NULL / SDST = 125 writes — is already covered by open PR #2117 and intentionally left out to stay single-purpose and avoid conflicts.)

What is in it

  • crates/xcl/src/gpu/recomp/lower.rs: in Lower::bridge, capture old_exec for all V_CMP* instructions (when !in_guarded_run), not only V_CMPX*, so inactive lanes are ANDed out before write_bit.
  • crates/xcl/src/gpu/recomp/lower_dxil.rs: added a_bridged_v_cmp_clears_inactive_lanes_outside_exec covering bridged VOPC (VCC) and VOP3 (s4) V_CMP_LT_F32 under narrowed EXEC (exact register checks + HLSL GPU parity) and compute S_CBRANCH_VCCZ under both wave32 and split wave64 (with DXIL validation on CPU).

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.1714), Intel Core i5-10400F, Windows 11 Pro Build 26200, rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.8.2502.11, release build.
  • Failing-first check before the lower.rs fix: cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests::a_bridged_v_cmp_clears_inactive_lanes_outside_exec -- --exact --nocapture failed with assertion left == right failed: vcc must clear inactive lanes 16..31 (left: 4294901760 [0xFFFF_0000], right: 0).
  • Targeted after fix (1051482):
    • RTX 3060: cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests:: -- --test-threads=4 --nocapture: 22 passed, 0 failed.
    • WARP (XCL_ADAPTER=warp): a_bridged_v_cmp_clears_inactive_lanes_outside_exec passed (all 3 DXIL containers compiled and validated on CPU; GPU execution skipped cleanly with no GPU with 32-lane waves).
  • Full workspace release suite (1051482): cargo build --release --workspace + cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture: 1424 passed, 0 failed, 46 ignored across 37 test binaries.
  • SKIPPED GPU/adapter tests (26): 21 no wave64, 3 refused per-lane f16/f32 forms (#1426), 1 no heap windows, 1 pso_measurement_compiles_an_exact_synthetic_record (Windows Developer Mode required for driver cache disable).
  • cargo test --release -p xcl --test e2e -- --test-threads=1 (1051482): 4 passed, 0 failed.

Regression run

main (6d051da):

xcl-smoke v1
commit: 6d051da51ba3fe7ba7d4ef542da71f544646e3ba
gpu: NVIDIA GeForce RTX 3060
title: 37fe04ab
seconds: 60
exit: 0x0
frames shown: 1473 (PresentX 1473)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14348 MB

this PR (1051482):

xcl-smoke v1
commit: 10514822001f2302cd102b9431a9d8613e45cf3a
gpu: NVIDIA GeForce RTX 3060
title: 37fe04ab
seconds: 60
exit: 0x0
frames shown: 1474 (PresentX 1474)
presents per 2 s (last 3): 42 60 60
device removals: 0
crashes: 0
peak commit: 10168 MB

Not tested

  • Native wave64 hardware (split = false GPU execution path), AMD / Intel GPUs, Linux / Wine, and retail gameplay beyond the 60-second smoke run.

AI use

  • Antigravity (Gemini 4 Neon) implemented the Lower::bridge EXEC-masking fix and GPU/DXIL-validation regression test, ran the test suite and regression smoke run, and drafted this description.
<!-- greyfinch-sync:ivall/xcl:issue:5499023580 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503). Originally posted by [ChalanaGimhanaX](https://github.com/ChalanaGimhanaX) on 2026-11-25T20:55:13Z. --- Mask bridged non-`CMPX` `V_CMP_*` results with `EXEC` in per-lane direct DXIL lowering (`Lower::bridge`), matching RDNA2 hardware, native `Lower::valu_op`, and the HLSL path. `lane_masks::is_vector` excludes all `V_CMP*` instructions so their PCs are never in `self.guarded`, and `Lower::valu_op` only lowers plain `U32`/`I32` compares natively. Every float (`F32`/`F16`/`F64`), 64-bit, 16-bit, `V_CMP_CLASS_*`, and VOP3-modified/SDWA compare falls through to `Lower::bridge`, which previously only captured `old_exec` for `V_CMPX*` and passed `guard = true` to `Ir::foreign`. Inactive lanes outside `EXEC` therefore left `1` in `VCC`/`SDST` instead of `0`, corrupting subsequent mask ops and `S_CBRANCH_VCCZ`/`VCCNZ` branches. Part of #2458, #1269, and #1833. (Issue #2458 item 2 — `NULL` / `SDST = 125` writes — is already covered by open PR #2117 and intentionally left out to stay single-purpose and avoid conflicts.) **What is in it** - `crates/xcl/src/gpu/recomp/lower.rs`: in `Lower::bridge`, capture `old_exec` for all `V_CMP*` instructions (when `!in_guarded_run`), not only `V_CMPX*`, so inactive lanes are ANDed out before `write_bit`. - `crates/xcl/src/gpu/recomp/lower_dxil.rs`: added `a_bridged_v_cmp_clears_inactive_lanes_outside_exec` covering bridged VOPC (`VCC`) and VOP3 (`s4`) `V_CMP_LT_F32` under narrowed `EXEC` (exact register checks + HLSL GPU parity) and compute `S_CBRANCH_VCCZ` under both wave32 and split wave64 (with DXIL validation on CPU). **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.1714), Intel Core i5-10400F, Windows 11 Pro Build 26200, `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.8.2502.11`, release build. - Failing-first check before the `lower.rs` fix: `cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests::a_bridged_v_cmp_clears_inactive_lanes_outside_exec -- --exact --nocapture` failed with `assertion left == right failed: vcc must clear inactive lanes 16..31 (left: 4294901760 [0xFFFF_0000], right: 0)`. - Targeted after fix (`1051482`): - RTX 3060: `cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests:: -- --test-threads=4 --nocapture`: 22 passed, 0 failed. - WARP (`XCL_ADAPTER=warp`): `a_bridged_v_cmp_clears_inactive_lanes_outside_exec` passed (all 3 DXIL containers compiled and validated on CPU; GPU execution skipped cleanly with `no GPU with 32-lane waves`). - Full workspace release suite (`1051482`): `cargo build --release --workspace` + `cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture`: 1424 passed, 0 failed, 46 ignored across 37 test binaries. - `SKIPPED` GPU/adapter tests (26): 21 `no wave64`, 3 refused per-lane f16/f32 forms (`#1426`), 1 `no heap windows`, 1 `pso_measurement_compiles_an_exact_synthetic_record` (Windows Developer Mode required for driver cache disable). - `cargo test --release -p xcl --test e2e -- --test-threads=1` (`1051482`): 4 passed, 0 failed. **Regression run** main (`6d051da`): ``` xcl-smoke v1 commit: 6d051da51ba3fe7ba7d4ef542da71f544646e3ba gpu: NVIDIA GeForce RTX 3060 title: 37fe04ab seconds: 60 exit: 0x0 frames shown: 1473 (PresentX 1473) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14348 MB ``` this PR (`1051482`): ``` xcl-smoke v1 commit: 10514822001f2302cd102b9431a9d8613e45cf3a gpu: NVIDIA GeForce RTX 3060 title: 37fe04ab seconds: 60 exit: 0x0 frames shown: 1474 (PresentX 1474) presents per 2 s (last 3): 42 60 60 device removals: 0 crashes: 0 peak commit: 10168 MB ``` **Not tested** - Native wave64 hardware (`split = false` GPU execution path), AMD / Intel GPUs, Linux / Wine, and retail gameplay beyond the 60-second smoke run. **AI use** - Antigravity (Gemini 4 Neon) implemented the `Lower::bridge` `EXEC`-masking fix and GPU/DXIL-validation regression test, ran the test suite and regression smoke run, and drafted this description.
DarkPanda69 commented 2026-11-25 22:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T21:07:47Z.


Ran on an AMD RX 9070 XT (RDNA4) and an RTX 3060: the new test passes on both cards, and nothing else changes.

Diff applied on main 6d12f58, debug, Windows 11 Pro 26200, cargo test -p xcl --lib -- gpu:: --test-threads=4 on main and with the PR, card chosen with XCL_ADAPTER, run twice: once with XCL_PER_LANE=1 alone, once with XCL_PER_LANE=1 XCL_DIRECT_DXIL=1. Both gave the same results:

  • RX 9070 XT (driver 32.0.32029.2010): a_bridged_v_cmp_clears_inactive_lanes_outside_exec ok. 699 passed, 2 failed; the 2 failures are the AMD fuzz seeds tracked in #2115, the same on main.
  • RTX 3060 (driver 32.0.16.1088): the new test ok; 701 passed, 0 failed.

No other test changes result on either card.

On the "native wave64" gap: the test's wave64 case goes through compute_split, so on the RX 9070 XT it runs the split form too. This run doesn't cover the native (split = false) path either.

Not tested: retail shaders, Intel, Linux / Wine.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7174651010 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503#issuecomment-7174651010). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T21:07:47Z. --- Ran on an AMD RX 9070 XT (RDNA4) and an RTX 3060: the new test passes on both cards, and nothing else changes. Diff applied on `main` `6d12f58`, debug, Windows 11 Pro 26200, `cargo test -p xcl --lib -- gpu:: --test-threads=4` on `main` and with the PR, card chosen with `XCL_ADAPTER`, run twice: once with `XCL_PER_LANE=1` alone, once with `XCL_PER_LANE=1 XCL_DIRECT_DXIL=1`. Both gave the same results: - **RX 9070 XT** (driver 32.0.32029.2010): `a_bridged_v_cmp_clears_inactive_lanes_outside_exec` ok. 699 passed, 2 failed; the 2 failures are the AMD fuzz seeds tracked in #2115, the same on `main`. - **RTX 3060** (driver 32.0.16.1088): the new test ok; 701 passed, 0 failed. No other test changes result on either card. On the "native wave64" gap: the test's wave64 case goes through `compute_split`, so on the RX 9070 XT it runs the split form too. This run doesn't cover the native (`split = false`) path either. Not tested: retail shaders, Intel, Linux / Wine. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
SlopTart commented 2026-11-25 22:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T21:08:19Z.


gpu_ suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
Targeted run of a_bridged_v_cmp_clears_inactive_lanes_outside_exec: passed.

<!-- greyfinch-sync:ivall/xcl:comment:7174662587 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503#issuecomment-7174662587). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T21:08:19Z. --- `gpu_` suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Targeted run of `a_bridged_v_cmp_clears_inactive_lanes_outside_exec`: passed.
DavidM1911 commented 2026-11-25 22:06:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T21:14:08Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7174795183 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503#issuecomment-7174795183). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T21:14:08Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
emirduran707 commented 2026-11-25 22:06:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T21:14:55Z.


Independent AMD RDNA4 (native wave64) test report on exact head 10514822001f2302cd102b9431a9d8613e45cf3a (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1422 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused by per-lane form; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.
    • The PR's GPU test passed (no skips): gpu::recomp::lower_dxil::tests::a_bridged_v_cmp_clears_inactive_lanes_outside_exec.
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 seed 722 and fuzz_validate_and_gpu_3 seed 1599) are pre-existing on unmodified main on this GPU.

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: 10514822001f2302cd102b9431a9d8613e45cf3a
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1600 (PresentX 1600)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14236 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7174813491 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503#issuecomment-7174813491). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T21:14:55Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `10514822001f2302cd102b9431a9d8613e45cf3a` (clean detached checkout, no local changes). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2602.17; tests debug, smoke release. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: **1422 passed, 2 failed, 46 ignored; 8 SKIPPED** (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu` refused by per-lane form; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`). All native wave64 GPU tests ran and passed. - The PR's GPU test passed (no skips): `gpu::recomp::lower_dxil::tests::a_bridged_v_cmp_clears_inactive_lanes_outside_exec`. - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` seed 722 and `fuzz_validate_and_gpu_3` seed 1599) are pre-existing on unmodified `main` on this GPU. **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: 10514822001f2302cd102b9431a9d8613e45cf3a gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1600 (PresentX 1600) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14236 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - D3D12 debug layer; Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
xpatfussy69x commented 2026-11-25 22:06:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T21:34:02Z.


Test run on exact head 1051482 (10514822001f2302cd102b9431a9d8613e45cf3a, on base 6d12f58), clean tree.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs
  • cargo test --workspace -- --test-threads=4: 1424 passed, 0 failed, 46 ignored
  • SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 (on main too; #2182 removes them)
  • cargo test -p xcl --lib a_bridged_v_cmp: 2 passed (a_bridged_v_cmp_clears_inactive_lanes_outside_exec and the existing a_bridged_v_cmpx_keeps_the_lanes_outside_exec_out), not skipped
  • I hit the same bug independently (closed duplicate #2507): on main, a program with EXEC = lanes 0–15, a bridged v_cmp_le_f32 true in every lane, EXEC restored and v_cndmask on VCC gives 7 in lane 16 instead of 0; this PR's change gives 0

Regression run (60 s, default settings)

main:

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1130 (PresentX 1130)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14808 MB

this PR:

xcl-smoke v1
commit: 10514822001f2302cd102b9431a9d8613e45cf3a
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1150 (PresentX 1150)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14782 MB

No crash or device removal; frames 102 % of main's, peak commit 100 %.

Not tested

  • AMD / native wave64
  • Whether the title reaches a bridged v_cmp under a narrowed EXEC (not run with XCL_PER_LANE=1): a regression check only

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7175247848 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503#issuecomment-7175247848). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-25T21:34:02Z. --- Test run on exact head `1051482` (`10514822001f2302cd102b9431a9d8613e45cf3a`, on base `6d12f58`), clean tree. **Tested** - NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs - `cargo test --workspace -- --test-threads=4`: 1424 passed, 0 failed, 46 ignored - SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused `V_MUL_F16` / `V_PK_MUL_F16` / `V_CVT_F16_F32` (on `main` too; #2182 removes them) - `cargo test -p xcl --lib a_bridged_v_cmp`: 2 passed (`a_bridged_v_cmp_clears_inactive_lanes_outside_exec` and the existing `a_bridged_v_cmpx_keeps_the_lanes_outside_exec_out`), not skipped - I hit the same bug independently (closed duplicate #2507): on `main`, a program with EXEC = lanes 0–15, a bridged `v_cmp_le_f32` true in every lane, EXEC restored and `v_cndmask` on VCC gives 7 in lane 16 instead of 0; this PR's change gives 0 **Regression run** (60 s, default settings) main: ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1130 (PresentX 1130) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14808 MB ``` this PR: ``` xcl-smoke v1 commit: 10514822001f2302cd102b9431a9d8613e45cf3a gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1150 (PresentX 1150) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14782 MB ``` No crash or device removal; frames 102 % of `main`'s, peak commit 100 %. **Not tested** - AMD / native wave64 - Whether the title reaches a bridged `v_cmp` under a narrowed EXEC (not run with `XCL_PER_LANE=1`): a regression check only **AI use** - Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
Decodere commented 2026-11-27 03:15:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T03:15:42Z.


Independent desktop NVIDIA (Wave32-only Ada) verification of PR #2503 at head 10514822001f2302cd102b9431a9d8613e45cf3a (1 commit; exact parent & merge-base: 6d12f58a229bc73889878a448c64dc3af25eeba0, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (10514822)

Command Result
cargo test --release -p xcl --lib a_bridged_v_cmp_clears_inactive_lanes_outside_exec -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1324 filtered out × 3 (0.25s, 0.21s, 0.21s, 0 skipped — live execution on RTX 4060)
cargo test --release -p xcl --lib gpu::recomp:: -- --test-threads=4 (3 consecutive runs) 393 passed; 0 failed; 19 ignored; 913 filtered out × 3 (5.83s, 5.93s, 6.00s; 370 executed on RTX 4060 + 23 expected Wave32-only/env skips)
cargo build --release -p xcl Clean build (1m 09s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (6d12f58a229bc73889878a448c64dc3af25eeba0, cached baseline on the same machine):

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1606 (PresentX 1606)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14004 MB

PR #2503 (10514822001f2302cd102b9431a9d8613e45cf3a):

xcl-smoke v1
commit: 10514822001f2302cd102b9431a9d8613e45cf3a
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1634 (PresentX 1634)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13986 MB

Runtime log observations (xcl.log)

  • 9222 log lines, 0 [ERROR] / device-removal / panic lines.
  • Final draw/memory telemetry in log: 19639 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 13986 MB committed by the process; video memory 6115 MB local, 4651 MB non-local.

Limits of coverage

  • Masking bridged V_CMP_* results with EXEC in per-lane lowering was directly executed on desktop Wave32-only RTX 4060 via a_bridged_v_cmp_clears_inactive_lanes_outside_exec (3/3, 0 skipped) and gpu::recomp:: (370 executed + 23 expected Wave32-only/env skips × 3).
  • Native Wave64 GPU execution is not available on this Wave32-only RTX 4060, and the warm-cache 60 s retail smoke on title: 29640639 confirms zero runtime regression rather than recompiling a cold shader set (frame-count delta vs. cached parent reflects single-run startup variance, not this PR).

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7208839617 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503#issuecomment-7208839617). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T03:15:42Z. --- Independent desktop NVIDIA (Wave32-only Ada) verification of **PR #2503** at head `10514822001f2302cd102b9431a9d8613e45cf3a` (`1` commit; exact parent & merge-base: `6d12f58a229bc73889878a448c64dc3af25eeba0`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`10514822`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib a_bridged_v_cmp_clears_inactive_lanes_outside_exec -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1324 filtered out` × 3 (`0.25s`, `0.21s`, `0.21s`, `0` skipped — live execution on RTX 4060) | | `cargo test --release -p xcl --lib gpu::recomp:: -- --test-threads=4` (3 consecutive runs) | `393 passed; 0 failed; 19 ignored; 913 filtered out` × 3 (`5.83s`, `5.93s`, `6.00s`; `370` executed on RTX 4060 + `23` expected Wave32-only/env skips) | | `cargo build --release -p xcl` | Clean build (`1m 09s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`6d12f58a229bc73889878a448c64dc3af25eeba0`, cached baseline on the same machine): ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1606 (PresentX 1606) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14004 MB ``` PR #2503 (`10514822001f2302cd102b9431a9d8613e45cf3a`): ``` xcl-smoke v1 commit: 10514822001f2302cd102b9431a9d8613e45cf3a gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1634 (PresentX 1634) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13986 MB ``` ### Runtime log observations (`xcl.log`) - `9222` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19639 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `13986 MB committed by the process; video memory 6115 MB local, 4651 MB non-local`. ### Limits of coverage - Masking bridged `V_CMP_*` results with `EXEC` in per-lane lowering was directly executed on desktop Wave32-only RTX 4060 via `a_bridged_v_cmp_clears_inactive_lanes_outside_exec` (`3/3`, `0` skipped) and `gpu::recomp::` (`370` executed + `23` expected Wave32-only/env skips × 3). - Native Wave64 GPU execution is not available on this Wave32-only RTX 4060, and the warm-cache 60 s retail smoke on `title: 29640639` confirms zero runtime regression rather than recompiling a cold shader set (frame-count delta vs. cached parent reflects single-run startup variance, not this PR). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
thehollowedone commented 2026-11-28 10:19:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T10:19:06Z.


merge-check
base: e429936c10
head: 1051482200
merge: clean
build: cargo build --offline --locked -j 4 --workspace -> ok
tests: cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 -> 2,126 passed, 10 failed, 48 ignored; 25 GPU SKIPPED notices. The ten failure names match the current-main baseline: dispatch_chain_oversized_loop_matches_whole, dispatch_chain_wave32_live_loops, dispatch_chain_wave64_live_loops_and_exchange, gpu_heap_flat_reads_match_guarded_and_root_output, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, gpu_compute_mode_dispatch_abi, gpu_float_cas_uses_ieee_equality, test_title_runs_and_game_folder_is_untouched, test_title_runs_under_the_debug_layer_with_dred, and test_title_draws_with_a_root_signature_under_the_debug_layer. Focused a_bridged_v_cmp_clears_inactive_lanes_outside_exec: 1 passed, 0 failed on the RTX 3080 Ti.
review: No blocker found in the full merged diff. Lower::bridge captures the incoming EXEC bit for bridged V_CMP* outside an already guarded run and masks the compare result before writing VCC or an explicit SGPR destination. The regression checks both destinations and branch behavior for wave32 and split wave64. Native unsplit wave64 GPU execution remains untested here. The author's clean-head paired smoke blocks and independent test reports are in the PR.
performance: One additional EXEC read and bitwise AND when lowering a bridged compare outside a guarded run; this is confined to translation and its emitted compare path. No runtime benchmark was run in this check.
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), DXC 1.8.2502.11; Codex (GPT-6.2 Sol) ran the build and tests and reviewed the merged diff; Codex (GPT-6.2 Astra) independently reviewed compare semantics and regression coverage.

<!-- greyfinch-sync:ivall/xcl:comment:7237817359 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503#issuecomment-7237817359). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T10:19:06Z. --- merge-check base: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd head: 10514822001f2302cd102b9431a9d8613e45cf3a merge: clean build: `cargo build --offline --locked -j 4 --workspace` -> ok tests: `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4` -> 2,126 passed, 10 failed, 48 ignored; 25 GPU `SKIPPED` notices. The ten failure names match the current-main baseline: `dispatch_chain_oversized_loop_matches_whole`, `dispatch_chain_wave32_live_loops`, `dispatch_chain_wave64_live_loops_and_exchange`, `gpu_heap_flat_reads_match_guarded_and_root_output`, `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk`, `gpu_compute_mode_dispatch_abi`, `gpu_float_cas_uses_ieee_equality`, `test_title_runs_and_game_folder_is_untouched`, `test_title_runs_under_the_debug_layer_with_dred`, and `test_title_draws_with_a_root_signature_under_the_debug_layer`. Focused `a_bridged_v_cmp_clears_inactive_lanes_outside_exec`: 1 passed, 0 failed on the RTX 3080 Ti. review: No blocker found in the full merged diff. `Lower::bridge` captures the incoming EXEC bit for bridged `V_CMP*` outside an already guarded run and masks the compare result before writing VCC or an explicit SGPR destination. The regression checks both destinations and branch behavior for wave32 and split wave64. Native unsplit wave64 GPU execution remains untested here. The author's clean-head paired smoke blocks and independent test reports are in the PR. performance: One additional EXEC read and bitwise AND when lowering a bridged compare outside a guarded run; this is confined to translation and its emitted compare path. No runtime benchmark was run in this check. verdict: safe to merge hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), DXC 1.8.2502.11; Codex (GPT-6.2 Sol) ran the build and tests and reviewed the merged diff; Codex (GPT-6.2 Astra) independently reviewed compare semantics and regression coverage.
throny commented 2026-11-28 13:22:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T13:22:44Z.


merge-check claim
head: 1051482200

<!-- greyfinch-sync:ivall/xcl:comment:7239892980 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503#issuecomment-7239892980). Originally posted by [throny](https://github.com/throny) on 2026-11-28T13:22:44Z. --- merge-check claim head: 10514822001f2302cd102b9431a9d8613e45cf3a
throny commented 2026-11-28 13:38:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T13:38:27Z.


merge-check
base: e429936c
head: 1051482200
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2127 passed, 9 failed, 48 ignored (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (#3093), the same set with and without this PR; base alone: 2126 passed, 9 failed, 48 ignored.
review: no blocker. The old EXEC is now read for every bridged compare, and inactive lanes get bit AND EXEC = 0, which is what the HLSL path produces (the test compares the two). The condition on guarded runs never matters for compares, because every compare writes VCC or a scalar register and is therefore kept out of coalesced runs, so the cmpx forms behave as before. Open from the thread: the native (unsplit) wave64 path is not exercised by the test.
performance: one extra EXEC read and AND per bridged compare, in the per-lane form only (XCL_PER_LANE=1, opt-in); only per-lane cache entries are re-translated.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7240079278 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2503#issuecomment-7240079278). Originally posted by [throny](https://github.com/throny) on 2026-11-28T13:38:27Z. --- merge-check base: e429936c head: 10514822001f2302cd102b9431a9d8613e45cf3a merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2127 passed, 9 failed, 48 ignored (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (#3093), the same set with and without this PR; base alone: 2126 passed, 9 failed, 48 ignored. review: no blocker. The old EXEC is now read for every bridged compare, and inactive lanes get bit AND EXEC = 0, which is what the HLSL path produces (the test compares the two). The condition on guarded runs never matters for compares, because every compare writes VCC or a scalar register and is therefore kept out of coalesced runs, so the cmpx forms behave as before. Open from the thread: the native (unsplit) wave64 path is not exercised by the test. performance: one extra EXEC read and AND per bridged compare, in the per-lane form only (XCL_PER_LANE=1, opt-in); only per-lane cache entries are re-translated. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
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
xcl-dev/xcl!2493
No description provided.