Recompiler: fix NULL dest, B32 SAVEEXEC, and MIMG TFE/LWE in upper_lanes #2126

Open
Decodere wants to merge 1 commit from upstream-pr/2136 into main
Decodere commented 2026-11-25 05:48:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T05:48:21Z.


What is in it

Fixes three soundness bugs in wave64-on-wave32 upper-lane analysis (crates/xcl/src/gpu/recomp/upper_lanes.rs):

  1. SDST == 125 (NULL) on 64-bit / multi-dword SGPR writes clobbered EXEC_LO (s126) and EXEC_HI (s127):
    • In step(), 64-bit SAVEEXEC/WREXEC writes and 64-bit ENC_SOP1/ENC_SOP2 writes called st.set(dst + 1, ...) even when dst == 125 (NULL), overwriting st.s[126] (EXEC_LO) — for example, S_OR_SAVEEXEC_B64 null, -1 overwrote EXEC_LO with saved EXEC_HI (Word::Zero). Guarded both paths with dst != 125 and avoided reading dst + 1 in CMOV when dst == 125.
    • In sgpr_outputs(), generic SGPR outputs (v < 128) and SDWA V_CMP_* outputs (SD == 1) pushed NULL (125) with multi-dword sizes, causing VOP3/SDWA V_CMP_* null, ... to clobber s126 (EXEC_LO) and S_LOAD_DWORDX4 null, ... to clobber both s126 and s127 (EXEC_HI). Skipped 125 in both output paths.
  2. 32-bit SAVEEXEC/WREXEC read SSRC0 via st.src64() instead of st.src32():
    • st.src64() maps 124 (M0) and 127 (EXEC_HI) to Word::Any, losing tracked Word state on instructions such as S_AND_SAVEEXEC_B32 s0, exec_hi and S_OR_SAVEEXEC_B32 s0, m0. Now uses st.src32(d, fv("SSRC0")) when !b64, matching the ENC_SOP1/ENC_SOP2 path below it.
  3. vgpr_writes() missed the 5th VGPR (vdata + 4) on MIMG loads/samples/gathers with TFE = 1 or LWE = 1:
    • The operand table lists 4 VGPRs for VDATA, so when DMASK = 0xF (or IMAGE_GATHER4) with D16 = 0 and TFE = 1 or LWE = 1 gave n = 5, w.truncate(5) still returned only 4 registers and left vdata + 4 untracked (allowing stale constants in vdata + 4 to survive an image load under WWM). Rebuilds w as (base..(base + n).min(256)).collect().

Adds three deterministic CPU unit tests in gpu::recomp::upper_lanes::tests covering all three bugs.

Part of #336

Tested

Hardware/toolchain: Windows 11 (26200), NVIDIA GeForce RTX 4060 (32-lane waves, driver 621.14), DXC 1.9.2609.5 (01b62ad4), Rust 1.100.0.

  • Verified pre-fix failures on the 3 new regression tests before applying the fixes (null_dst_multi_dword_writes_preserve_exec: Const(0) instead of Const(u32::MAX); saveexec_b32_reads_32bit_special_sources: Unknown instead of Const(0); mimg_tfe_and_lwe_write_fifth_vgpr: [4, 5, 6, 7] instead of [4, 5, 6, 7, 8]).
  • cargo test --release -p xcl --lib gpu::recomp::upper_lanes::tests::: 12 passed, 0 failed, 0 ignored (pure CPU, CI WARP-safe).
  • cargo test --release -p xcl --lib gpu::recomp::partition::tests::: 44 passed, 0 failed, 0 ignored (pure CPU).
  • cargo build --release --workspace: exit 0.
  • cargo test --release --workspace -- --test-threads=4: 1157 passed, 0 failed, 46 ignored across 21 test suites, with 25 pre-existing runtime SKIPPED lines (23 native wave64 / unsupported per-lane lowering skips on 32-lane RTX 4060, 1 Windows driver-cache skip, 1 heap-window skip; 0 new skips).

Regression run

Paired 60-second scripts/smoke.ps1 runs on the same retail title build (29640639) from clean origin/main (6e1e2be) and this branch (f1e281b):

Base (origin/main):

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

PR (fix-336-upper-lanes-soundness):

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

Not tested

  • Native 64-lane wave64 GPU hardware (the test GPU is a 32-lane NVIDIA RTX 4060; upper_lanes is specifically the wave64-on-wave32 forward analysis and all new tests are deterministic CPU unit tests).
  • Non-Windows host platforms.

AI use

Drafted with Google Antigravity (Gemini 4 Neon) and verified locally by reproducing all three failures before the fix, verifying upper_lanes::tests and partition::tests, running the full release workspace test suite, and completing the paired 60-second smoke run above.

<!-- greyfinch-sync:ivall/xcl:issue:5485943775 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2136). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-25T05:48:21Z. --- **What is in it** Fixes three soundness bugs in wave64-on-wave32 upper-lane analysis (`crates/xcl/src/gpu/recomp/upper_lanes.rs`): 1. **`SDST == 125` (`NULL`) on 64-bit / multi-dword SGPR writes clobbered `EXEC_LO` (`s126`) and `EXEC_HI` (`s127`)**: - In `step()`, 64-bit `SAVEEXEC`/`WREXEC` writes and 64-bit `ENC_SOP1`/`ENC_SOP2` writes called `st.set(dst + 1, ...)` even when `dst == 125` (`NULL`), overwriting `st.s[126]` (`EXEC_LO`) — for example, `S_OR_SAVEEXEC_B64 null, -1` overwrote `EXEC_LO` with saved `EXEC_HI` (`Word::Zero`). Guarded both paths with `dst != 125` and avoided reading `dst + 1` in `CMOV` when `dst == 125`. - In `sgpr_outputs()`, generic SGPR outputs (`v < 128`) and SDWA `V_CMP_*` outputs (`SD == 1`) pushed `NULL` (`125`) with multi-dword sizes, causing VOP3/SDWA `V_CMP_* null, ...` to clobber `s126` (`EXEC_LO`) and `S_LOAD_DWORDX4 null, ...` to clobber both `s126` and `s127` (`EXEC_HI`). Skipped `125` in both output paths. 2. **32-bit `SAVEEXEC`/`WREXEC` read `SSRC0` via `st.src64()` instead of `st.src32()`**: - `st.src64()` maps `124` (`M0`) and `127` (`EXEC_HI`) to `Word::Any`, losing tracked `Word` state on instructions such as `S_AND_SAVEEXEC_B32 s0, exec_hi` and `S_OR_SAVEEXEC_B32 s0, m0`. Now uses `st.src32(d, fv("SSRC0"))` when `!b64`, matching the `ENC_SOP1`/`ENC_SOP2` path below it. 3. **`vgpr_writes()` missed the 5th VGPR (`vdata + 4`) on `MIMG` loads/samples/gathers with `TFE = 1` or `LWE = 1`**: - The operand table lists 4 VGPRs for `VDATA`, so when `DMASK = 0xF` (or `IMAGE_GATHER4`) with `D16 = 0` and `TFE = 1` or `LWE = 1` gave `n = 5`, `w.truncate(5)` still returned only 4 registers and left `vdata + 4` untracked (allowing stale constants in `vdata + 4` to survive an image load under `WWM`). Rebuilds `w` as `(base..(base + n).min(256)).collect()`. Adds three deterministic CPU unit tests in `gpu::recomp::upper_lanes::tests` covering all three bugs. Part of #336 **Tested** Hardware/toolchain: Windows 11 (26200), NVIDIA GeForce RTX 4060 (32-lane waves, driver 621.14), DXC `1.9.2609.5 (01b62ad4)`, Rust `1.100.0`. - Verified pre-fix failures on the 3 new regression tests before applying the fixes (`null_dst_multi_dword_writes_preserve_exec`: `Const(0)` instead of `Const(u32::MAX)`; `saveexec_b32_reads_32bit_special_sources`: `Unknown` instead of `Const(0)`; `mimg_tfe_and_lwe_write_fifth_vgpr`: `[4, 5, 6, 7]` instead of `[4, 5, 6, 7, 8]`). - `cargo test --release -p xcl --lib gpu::recomp::upper_lanes::tests::`: **12 passed, 0 failed, 0 ignored** (pure CPU, CI WARP-safe). - `cargo test --release -p xcl --lib gpu::recomp::partition::tests::`: **44 passed, 0 failed, 0 ignored** (pure CPU). - `cargo build --release --workspace`: exit 0. - `cargo test --release --workspace -- --test-threads=4`: **1157 passed, 0 failed, 46 ignored** across 21 test suites, with 25 pre-existing runtime `SKIPPED` lines (23 native wave64 / unsupported per-lane lowering skips on 32-lane RTX 4060, 1 Windows driver-cache skip, 1 heap-window skip; 0 new skips). **Regression run** Paired 60-second `scripts/smoke.ps1` runs on the same retail title build (`29640639`) from clean `origin/main` (`6e1e2be`) and this branch (`f1e281b`): Base (`origin/main`): ``` xcl-smoke v1 commit: 6e1e2befc7430126b1e7b98b5c3fe93813c866b6 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1616 (PresentX 1617) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14507 MB ``` PR (`fix-336-upper-lanes-soundness`): ``` xcl-smoke v1 commit: f1e281b2e13cd9fc4efe5ba87410049b38e25f7a gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1562 (PresentX 1562) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14519 MB ``` **Not tested** - Native 64-lane wave64 GPU hardware (the test GPU is a 32-lane NVIDIA RTX 4060; `upper_lanes` is specifically the wave64-on-wave32 forward analysis and all new tests are deterministic CPU unit tests). - Non-Windows host platforms. **AI use** Drafted with Google Antigravity (Gemini 4 Neon) and verified locally by reproducing all three failures before the fix, verifying `upper_lanes::tests` and `partition::tests`, running the full release workspace test suite, and completing the paired 60-second smoke run above.
DavidM1911 commented 2026-11-25 07:05:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T06:49:16Z.


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:7155192760 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2136#issuecomment-7155192760). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T06:49:16Z. --- 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!
github-actions[bot] commented 2026-11-28 08:02:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:02:28Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7236322755 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2136#issuecomment-7236322755). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T08:02:28Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
JJAutoCompare commented 2026-11-28 08:24:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T08:24:34Z.


Tested

Exact f1e281b2e13cd9fc4efe5ba87410049b38e25f7a on native Windows 11 build 26200.9974, Ryzen 7 3800X, Rust 1.100.1 MSVC x64 debug. The pinned libtest used a verified archive with one private test inserted in upper_lanes.rs. All 332 original files matched their Git blobs after excluding the fixture.

I ran <libtest.exe> <filter> --exact --nocapture --test-threads=1 separately for two CPU tests under gpu::recomp::upper_lanes::tests.

  • packed_d16_image_sample_tfe_invalidates_only_status verified the packed D16 analyzer boundary. With TFE set, the seeded v6 fact was invalidated and adjacent v7 was preserved. With TFE clear, both seeds were preserved.
  • The stock control mimg_tfe_and_lwe_write_fifth_vgpr exercised the fifth-register fix and passed.

2 passed, 0 failed, 0 ignored, 0 runtime skips. Both native processes exited 0, with 1,127 filtered out per invocation.

Not tested

GPU execution, the pre-fix revision, retail smoke, and the full workspace suite.

AI use

T3 Code through the Codex harness (gpt-6.2-sol) verified the provenance and executable, ran the tests, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7236563769 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2136#issuecomment-7236563769). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-28T08:24:34Z. --- **Tested** Exact `f1e281b2e13cd9fc4efe5ba87410049b38e25f7a` on native Windows 11 build 26200.9974, Ryzen 7 3800X, Rust 1.100.1 MSVC x64 debug. The pinned libtest used a verified archive with one private test inserted in `upper_lanes.rs`. All 332 original files matched their Git blobs after excluding the fixture. I ran `<libtest.exe> <filter> --exact --nocapture --test-threads=1` separately for two CPU tests under `gpu::recomp::upper_lanes::tests`. - `packed_d16_image_sample_tfe_invalidates_only_status` verified the packed D16 analyzer boundary. With TFE set, the seeded v6 fact was invalidated and adjacent v7 was preserved. With TFE clear, both seeds were preserved. - The stock control `mimg_tfe_and_lwe_write_fifth_vgpr` exercised the fifth-register fix and passed. **2 passed, 0 failed, 0 ignored, 0 runtime skips.** Both native processes exited 0, with 1,127 filtered out per invocation. **Not tested** GPU execution, the pre-fix revision, retail smoke, and the full workspace suite. **AI use** T3 Code through the Codex harness (`gpt-6.2-sol`) verified the provenance and executable, ran the tests, and wrote this report.
futurepro62 commented 2026-11-30 00:45:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-30T00:45:09Z.


NVIDIA and AMD full-suite run, to go with the reports above by JJAutoCompare, since none of them names a GPU. Tested exact head f1e281b2 (on its base 6e1e2be).

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.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu --skip hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap --skip gpu::dxil::fuzz_tests: 1145 passed, 0 failed, 44 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • The new tests ran and passed: null_dst_multi_dword_writes_preserve_exec, saveexec_b32_reads_32bit_special_sources, mimg_tfe_and_lwe_write_fifth_vgpr.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 --skip two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs: 1156 passed, 0 failed, 46 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 53e85fb1 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, bridged_dpp_agrees_with_hlsl_on_the_gpu (no wave64 on this card) and two_pass_binds_set_the_shared_view_heap (heap windows are opt-in, XCL_HEAP_WINDOWS=1) fail the same way; gpu::dxil::fuzz_tests stays skipped as in earlier runs (seeds 70, 545, 1019 and 1507 failed CreateComputePipelineState with E_OUTOFMEMORY on this card; they passed on this main's baseline). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs fails on main too, since #2959 (#3441). (Edited: this line first named the wrong merge.) The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (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:ivall/xcl:comment:7265546572 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2136#issuecomment-7265546572). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-30T00:45:09Z. --- NVIDIA and AMD full-suite run, to go with the reports above by JJAutoCompare, since none of them names a GPU. Tested exact head `f1e281b2` (on its base `6e1e2be`). **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.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu --skip hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap --skip gpu::dxil::fuzz_tests`: **1145 passed, 0 failed, 44 ignored**. SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - The new tests ran and passed: `null_dst_multi_dword_writes_preserve_exec`, `saveexec_b32_reads_32bit_special_sources`, `mimg_tfe_and_lwe_write_fifth_vgpr`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 --skip two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`: **1156 passed, 0 failed, 46 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `53e85fb1` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, `bridged_dpp_agrees_with_hlsl_on_the_gpu` (no wave64 on this card) and `two_pass_binds_set_the_shared_view_heap` (heap windows are opt-in, `XCL_HEAP_WINDOWS=1`) fail the same way; `gpu::dxil::fuzz_tests` stays skipped as in earlier runs (seeds 70, 545, 1019 and 1507 failed `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card; they passed on this main's baseline). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` fails on main too, since #2959 (#3441). (Edited: this line first named the wrong merge.) The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Foniass commented 2026-12-01 07:27:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:27:27Z.


Triage (#1607) – head f1e281b

No open PR makes these fixes, and main's upper_lanes.rs still has the NULL-destination writes, src64 for B32 SAVEEXEC, and w.truncate for MIMG TFE/LWE. #1616 and #3380 also edit upper_lanes.rs, but for S_MOVRELSD and writelane slots, which do not overlap.
No problems found in the diff. The new w[0] is guarded by !w.is_empty().
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304079708 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2136#issuecomment-7304079708). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:27:27Z. --- **Triage (#1607)** – head f1e281b No open PR makes these fixes, and main's `upper_lanes.rs` still has the NULL-destination writes, `src64` for B32 SAVEEXEC, and `w.truncate` for MIMG TFE/LWE. #1616 and #3380 also edit `upper_lanes.rs`, but for S_MOVRELSD and writelane slots, which do not overlap. No problems found in the diff. The new `w[0]` is guarded by `!w.is_empty()`. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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/2136:upstream-pr/2136'
git switch 'upstream-pr/2136'

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/2136'
git switch 'upstream-pr/2136'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2136'
git switch 'upstream-pr/2136'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2136'
git switch 'main'
git merge --squash 'upstream-pr/2136'
git switch 'main'
git merge --ff-only 'upstream-pr/2136'
git switch 'main'
git merge 'upstream-pr/2136'
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
xcl-dev/xcl!2126
No description provided.