Recompiler: return +0 from fma_legacy when a zero factor adds -0 (#679) #928

Closed
github-bot wants to merge 1 commit from gh-pr/928/head into gh-pr/928/base
Owner

@⁠bigiello on GitHub · 2026-11-24 08:31 UTC · original
fix/recomp-fma-legacy-neg-zero → main · +105 −1 · 2 files · 1 commits · closed without merging

Draft pending scripts/smoke.ps1 regression blocks on a retail title (no local game files available; see Not tested).

Fixes #679.

In RDNA2, v_fma_legacy_f32 and v_fmac_legacy_f32 treat a product with a ±0.0 multiplicand as +0.0 (including inf and NaN), so adding +0.0 to -0.0 under default round-to-nearest-even must return +0.0 (0x00000000). XCL previously returned c unchanged from fma_legacy, preserving -0.0 (0x80000000).

What is in it

  • crates/xcl/src/gpu/recomp/emit.rs:
    • Update fma_legacy in PRELUDE to canonicalize c == 0.0f to 0u on integer bits via branchless asfloat(select(or(a == 0.0f, b == 0.0f), select(c == 0.0f, 0u, asuint(c)), asuint(mad(a, b, c)))) so DXC cannot fold a float +0.0/-0.0 select back to c.
  • crates/xcl/src/gpu/recomp/tests.rs:
    • fma_legacy_hlsl_clears_neg_zero_in_integer_bits: unit check verifying emitted HLSL and DXC compilation for v_fma_legacy_f32 and v_fmac_legacy_f32 (ENC_VOP2 / ENC_VOP3).
    • gpu_fma_legacy_zero_product_adds_plus_zero: D3D12/DXIL GPU test across wave32 and wave64 verifying exact result bits for ±0.0 * {5.0, -5.0, ±inf, qNaN} + (-0.0), VOP3 NEG on SRC2, non-zero/NaN addends, and normal FMA (failed with 0x80000000 before the fix).

Tested

  • Hardware: Windows 11 x64, AMD Ryzen 5 5600, 32 GB RAM, NVIDIA GeForce RTX 4070 SUPER (11999 MiB VRAM, D3D12 SM 6.6, 32-lane waves), MSVC stable-x86_64-pc-windows-msvc (rustc 1.100.0), Windows SDK DXC 1.8.2502.11 (10.0.26100.0\x64).
  • Before fix (09940bb): cargo test -p xcl --lib -- fma_legacy --nocapture failed both tests (GPU returned 0x80000000 for +0 * 5 + (-0)).
  • After fix (439f607):
    • cargo test -p xcl --lib -- fma_legacy --nocapture: 2 passed, 0 failed (0.40s).
    • cargo test -p xcl --lib -- --test-threads=1: 677 passed, 0 failed, 21 ignored (49.94s; 2 GPU tests skipped: no wave64 — gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware).
    • cargo test --workspace --test "*" -- --test-threads=4: 41 passed, 0 failed, 20 ignored across all integration test binaries (console_dlls_e2e 13 passed, console_shaders 3 passed / 4 ignored, disasm_e2e 1 passed, e2e 3 passed, gpu_compute_e2e 2 passed, gpu_pso_e2e 7 passed, heap_probe 0 passed / 4 ignored, pls_quota 1 passed, predication_e2e 1 passed, rpf_e2e 2 passed, sparse_reinit 1 passed, texture_states 1 passed, xg_oracle 6 passed / 12 ignored).
    • .\scripts\test.ps1 (--test-threads=4): hit the pre-existing #718 timing flake in placed_title_textures_share_vram_and_preserve_pixels (poisoning transitions_apply_when_their_list_is_submitted and d32s8_targets_take_their_own_size_of_video_memory: 674 passed, 3 failed, 21 ignored in xcl --lib, 2 skipped no wave64); all 677 tests passed in the --test-threads=1 run above.
    • cargo clippy --workspace --all-targets: 0 errors, 0 new warnings on touched lines.
    • rustfmt --check crates\xcl\src\gpu\recomp\emit.rs crates\xcl\src\gpu\recomp\tests.rs: 0 diffs on touched lines (cargo fmt --check overall exits 1 due to pre-existing formatting in untouched files).

Not tested

  • Native 64-lane hardware waves (RTX 4070 SUPER only exposes 32-lane waves; gpu_fma_legacy_zero_product_adds_plus_zero ran in wave32 and split-wave64).
  • Retail game shader packs and scripts/smoke.ps1 -Game <folder> (XCL_SAMPLE_* unset; no retail game files available locally).

AI use

  • Tool: Antigravity, model: Neon. Assisted with updating fma_legacy, writing the unit and GPU regression tests, running verification commands, and drafting this PR description. All diffs and test outputs verified locally.
**@⁠bigiello** on GitHub · 2026-11-24 08:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/928) `fix/recomp-fma-legacy-neg-zero` → `main` · +105 −1 · 2 files · 1 commits · closed without merging Draft pending `scripts/smoke.ps1` regression blocks on a retail title (no local game files available; see **Not tested**). Fixes #679. In RDNA2, `v_fma_legacy_f32` and `v_fmac_legacy_f32` treat a product with a `±0.0` multiplicand as `+0.0` (including `inf` and `NaN`), so adding `+0.0` to `-0.0` under default round-to-nearest-even must return `+0.0` (`0x00000000`). XCL previously returned `c` unchanged from `fma_legacy`, preserving `-0.0` (`0x80000000`). **What is in it** - `crates/xcl/src/gpu/recomp/emit.rs`: - Update `fma_legacy` in `PRELUDE` to canonicalize `c == 0.0f` to `0u` on integer bits via branchless `asfloat(select(or(a == 0.0f, b == 0.0f), select(c == 0.0f, 0u, asuint(c)), asuint(mad(a, b, c))))` so DXC cannot fold a float `+0.0`/`-0.0` select back to `c`. - `crates/xcl/src/gpu/recomp/tests.rs`: - `fma_legacy_hlsl_clears_neg_zero_in_integer_bits`: unit check verifying emitted HLSL and DXC compilation for `v_fma_legacy_f32` and `v_fmac_legacy_f32` (`ENC_VOP2` / `ENC_VOP3`). - `gpu_fma_legacy_zero_product_adds_plus_zero`: D3D12/DXIL GPU test across wave32 and wave64 verifying exact result bits for `±0.0 * {5.0, -5.0, ±inf, qNaN} + (-0.0)`, VOP3 `NEG` on `SRC2`, non-zero/`NaN` addends, and normal FMA (failed with `0x80000000` before the fix). **Tested** - Hardware: Windows 11 x64, AMD Ryzen 5 5600, 32 GB RAM, NVIDIA GeForce RTX 4070 SUPER (11999 MiB VRAM, D3D12 SM 6.6, 32-lane waves), MSVC `stable-x86_64-pc-windows-msvc` (`rustc 1.100.0`), Windows SDK DXC 1.8.2502.11 (`10.0.26100.0\x64`). - Before fix (`09940bb`): `cargo test -p xcl --lib -- fma_legacy --nocapture` failed both tests (GPU returned `0x80000000` for `+0 * 5 + (-0)`). - After fix (`439f607`): - `cargo test -p xcl --lib -- fma_legacy --nocapture`: 2 passed, 0 failed (`0.40s`). - `cargo test -p xcl --lib -- --test-threads=1`: 677 passed, 0 failed, 21 ignored (`49.94s`; 2 GPU tests skipped: `no wave64` — `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`). - `cargo test --workspace --test "*" -- --test-threads=4`: 41 passed, 0 failed, 20 ignored across all integration test binaries (`console_dlls_e2e` 13 passed, `console_shaders` 3 passed / 4 ignored, `disasm_e2e` 1 passed, `e2e` 3 passed, `gpu_compute_e2e` 2 passed, `gpu_pso_e2e` 7 passed, `heap_probe` 0 passed / 4 ignored, `pls_quota` 1 passed, `predication_e2e` 1 passed, `rpf_e2e` 2 passed, `sparse_reinit` 1 passed, `texture_states` 1 passed, `xg_oracle` 6 passed / 12 ignored). - `.\scripts\test.ps1` (`--test-threads=4`): hit the pre-existing `#718` timing flake in `placed_title_textures_share_vram_and_preserve_pixels` (poisoning `transitions_apply_when_their_list_is_submitted` and `d32s8_targets_take_their_own_size_of_video_memory`: 674 passed, 3 failed, 21 ignored in `xcl --lib`, 2 skipped `no wave64`); all 677 tests passed in the `--test-threads=1` run above. - `cargo clippy --workspace --all-targets`: 0 errors, 0 new warnings on touched lines. - `rustfmt --check crates\xcl\src\gpu\recomp\emit.rs crates\xcl\src\gpu\recomp\tests.rs`: 0 diffs on touched lines (`cargo fmt --check` overall exits 1 due to pre-existing formatting in untouched files). **Not tested** - Native 64-lane hardware waves (RTX 4070 SUPER only exposes 32-lane waves; `gpu_fma_legacy_zero_product_adds_plus_zero` ran in wave32 and split-wave64). - Retail game shader packs and `scripts/smoke.ps1 -Game <folder>` (`XCL_SAMPLE_*` unset; no retail game files available locally). **AI use** - Tool: Antigravity, model: Neon. Assisted with updating `fma_legacy`, writing the unit and GPU regression tests, running verification commands, and drafting this PR description. All diffs and test outputs verified locally.
Fixes #679.

In RDNA2, v_fma_legacy_f32 and v_fmac_legacy_f32 produce +0.0 for a
product with a +-0.0 multiplicand (including inf and NaN), so adding +0.0
to -0.0 under default rounding yields +0.0 (0x00000000), not -0.0.
Previously fma_legacy returned c unchanged, keeping -0.0 (0x80000000).

- Update PRELUDE's fma_legacy in emit.rs to canonicalize c == 0.0f to 0u
  in integer bits via branchless select(or(...), select(c == 0.0f, 0u,
  asuint(c)), asuint(mad(a, b, c))) so DXC cannot fold float +0/-0 back
  to c.
- Add unit HLSL/DXC check and D3D12 GPU test covering v_fma_legacy_f32
  and v_fmac_legacy_f32 (VOP2/VOP3, VOP3 NEG, +-0 * {5, +-inf, qNaN} +
  (-0), non-zero/NaN addends, normal FMA) across wave32 and wave64.

Assisted-by: Antigravity (Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:37:09 +00:00
github-bot closed this pull request 2026-11-26 04:37:10 +00:00
Author
Owner

@⁠dcastell1 on GitHub · 2026-11-24 08:40 UTC · original

Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean main@beaa245 (713 passed, 0 failed, 41 ignored on this box):

patch -p1 < this PR            # clean, no fuzz
cargo test --workspace -- --test-threads=4
715 passed; 0 failed; 41 ignored   (exit 0)

Two more passing tests than main, including the fma_legacy zero-factor -0 case; nothing else changes verdict.

Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.

**@⁠dcastell1** on GitHub · 2026-11-24 08:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/928#issuecomment-7126431116) Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean `main@beaa245` (713 passed, 0 failed, 41 ignored on this box): ``` patch -p1 < this PR # clean, no fuzz cargo test --workspace -- --test-threads=4 715 passed; 0 failed; 41 ignored (exit 0) ``` Two more passing tests than main, including the `fma_legacy` zero-factor `-0` case; nothing else changes verdict. Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
Author
Owner

@⁠joeypercia on GitHub · 2026-11-24 08:44 UTC · original

AMD run (the PR's tests are NVIDIA only so far), which matters here because AMD is where the other approach fails: 439f607 merged onto main 077ce40 (clean merge).

Tested

  • AMD Radeon iGPU (Ryzen 7 7800X3D, RDNA2), driver 26.11.2; RTX 4070 Ti (616.56); Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.8.2502.11; debug
  • gpu_fma_legacy_zero_product_adds_plus_zero: passes on the RDNA2 iGPU and on the RTX 4070 Ti
  • negative control on the RDNA2 iGPU: with main's emit.rs it fails (+0 * 5 + (-0): got 0x80000000)

For review: #670 fixes the same thing with precise float z = c + 0.0f, and that form still gives -0 on this AMD driver (measured in #670). This PR's form works on the bits, so it holds on both drivers. Of the two, this is the one that fixes #679 everywhere.

Run and report by Claude Code (Claude Opus 5.5).

**@⁠joeypercia** on GitHub · 2026-11-24 08:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/928#issuecomment-7126502233) **AMD run** (the PR's tests are NVIDIA only so far), which matters here because AMD is where the other approach fails: `439f607` merged onto `main` `077ce40` (clean merge). **Tested** - AMD Radeon iGPU (Ryzen 7 7800X3D, RDNA2), driver 26.11.2; RTX 4070 Ti (616.56); Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.8.2502.11; debug - `gpu_fma_legacy_zero_product_adds_plus_zero`: passes on the RDNA2 iGPU and on the RTX 4070 Ti - negative control on the RDNA2 iGPU: with `main`'s `emit.rs` it fails (`+0 * 5 + (-0): got 0x80000000`) **For review:** #670 fixes the same thing with `precise float z = c + 0.0f`, and that form still gives `-0` on this AMD driver (measured in #670). This PR's form works on the bits, so it holds on both drivers. Of the two, this is the one that fixes #679 everywhere. Run and report by Claude Code (Claude Opus 5.5).
Author
Owner

@⁠KENAJBBY on GitHub · 2026-11-24 09:31 UTC · original

Native RDNA2 (gfx1036) reference for the legacy FMAs

The description and #670 note that the +0 result follows LLVM's folding and was not measured on hardware. I ran v_fma_legacy_f32 and v_fmac_legacy_f32 directly on an RDNA2 GPU, on raw bits, under all 1024 values of MODE[9:0]. Each mode was set with s_setreg_b32 and read back with s_getreg_b32 before the instruction.

Zero factor plus −0. ±0 × {5, −5, ±inf, qNaN, sNaN} + (−0) gives +0 (0x00000000) with f32 rounding RNE, toward +inf and toward zero. It gives −0 (0x80000000) with f32 rounding toward −inf (MODE[1:0] = 2), so the hardware really computes c + (+0) in the current rounding mode. XCL reports a non-default f32 round mode as unsupported, and the pack has none (#91), so with RNE this PR's +0 matches the hardware. No other MODE bit changes these results. Every case of gpu_fma_legacy_zero_product_adds_plus_zero gives the expected bits on the hardware at MODE 0x1C0 (IEEE 0, DX10_CLAMP 1, RNE):

a × b + c both instructions changes with
±0 × {5, −5, ±inf, qNaN, sNaN} + (−0) 0x00000000 f32 round −inf → 0x80000000
+0 × {5, inf, qNaN} + 1 0x3F800000 –
+0 × 5 + qNaN 0x7FC00000 –
+0 × 5 + sNaN 0x7F800011 0x7F800011 IEEE 1 → 0x7FC00011
2 × 3 + 1 0x40E00000 –
2 × 3 + (−6) 0x00000000 f32 round −inf → 0x80000000
1 × inf + (−inf) 0xFFC00000 –

The legacy FMAs flush f32 denormals in every mode. With MODE[5:4] = 3 (f32 denormals kept), v_fma_f32 and v_mul_legacy_f32 keep them. That is my control that the denorm bits really take effect. Both legacy FMAs still read denormal inputs as 0 and flush denormal results, in all 1024 modes:

a × b + c legacy FMAs, any MODE v_fma_f32, MODE[5:4] = 3
+0 × 5 + 0x00000001 0x00000000 0x00000001
1 × 0x00000001 + 0 0x00000000 0x00000001
1 × 0x007FFFFF + 0 0x00000000 0x007FFFFF
0.5 × 0x00800000 + 0 0x00000000 0x00400000
0x00000001 × inf + 1 0x3F800000 (the legacy 0 × inf) –

When a factor is zero, this PR returns a denormal c unchanged on the bits, so the result depends on the host. I ran the head 439f607 with a local scratch test (not proposed for the PR) on an RTX 5070 Ti (621.24, wave32) and on the same RDNA2 iGPU through D3D12 (wave64 and wave32). On both, +0 × 5 + 0x00000001, +0 × 5 + 0x80000001, 1 × 0x00000001 + 0, 1 × 0x007FFFFF + 0 and the VOP2 fmac form give 0x00000000, and 0x00000001 × inf + 1 gives 0x3F800000. Those are the hardware's answers, because both drivers flush f32 denormals in the DXIL. A sNaN c came back as 0x7F800011, the IEEE 0 answer. So I see nothing to change for #679; the flush comes from the host drivers, not from the helper.

Tested

  • AMD Radeon iGPU of a Ryzen 7 9800X3D (gfx1036, RDNA2), driver 32.0.21030.2001, AMD OpenCL 3652.0 (PAL,LC), native wave64; Windows 11 Pro 26200.
  • Native: inline asm in OpenCL C, one block per lane. It saves MODE, sets it with s_setreg_b32 hwreg(HW_REG_MODE, 0, 10), reads it back with s_getreg_b32 (checked against the requested value in every run), runs the instruction and restores MODE. Inputs: 30 triples × 2 instructions × 1024 modes, plus 10 denormal triples × 4 instructions × 1024 modes.
  • Head 439f607 (on its own base), debug, Rust 1.100.0 MSVC, DXC 1.9.2602.17, XCL_ADAPTER=nvidia and XCL_ADAPTER=radeon: the scratch test above and gpu_fma_legacy_zero_product_adds_plus_zero, 2 passed, 0 failed on each.

Not tested

  • Console hardware, and the console's entry IEEE / DX10_CLAMP / denorm bits (XCL does not read them, #73), so the tables give every mode where a bit matters.
  • VOP3 modifiers (neg, abs, clamp, omod) on the hardware; the whole suite; a retail title.

AI use

  • Claude Code (Claude Opus 5.5) wrote the probe and the scratch test, ran them on this machine and drafted this comment.
**@⁠KENAJBBY** on GitHub · 2026-11-24 09:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/928#issuecomment-7127522725) **Native RDNA2 (`gfx1036`) reference for the legacy FMAs** The description and #670 note that the `+0` result follows LLVM's folding and was not measured on hardware. I ran `v_fma_legacy_f32` and `v_fmac_legacy_f32` directly on an RDNA2 GPU, on raw bits, under **all 1024 values of MODE[9:0]**. Each mode was set with `s_setreg_b32` and read back with `s_getreg_b32` before the instruction. **Zero factor plus −0.** `±0 × {5, −5, ±inf, qNaN, sNaN} + (−0)` gives `+0` (`0x00000000`) with f32 rounding RNE, toward +inf and toward zero. It gives **`−0` (`0x80000000`) with f32 rounding toward −inf** (MODE[1:0] = 2), so the hardware really computes `c + (+0)` in the current rounding mode. XCL reports a non-default f32 round mode as unsupported, and the pack has none (#91), so with RNE this PR's `+0` matches the hardware. No other MODE bit changes these results. Every case of `gpu_fma_legacy_zero_product_adds_plus_zero` gives the expected bits on the hardware at MODE `0x1C0` (IEEE 0, DX10_CLAMP 1, RNE): | a × b + c | both instructions | changes with | |---|---|---| | ±0 × {5, −5, ±inf, qNaN, sNaN} + (−0) | `0x00000000` | f32 round −inf → `0x80000000` | | +0 × {5, inf, qNaN} + 1 | `0x3F800000` | – | | +0 × 5 + qNaN | `0x7FC00000` | – | | +0 × 5 + sNaN `0x7F800011` | `0x7F800011` | IEEE 1 → `0x7FC00011` | | 2 × 3 + 1 | `0x40E00000` | – | | 2 × 3 + (−6) | `0x00000000` | f32 round −inf → `0x80000000` | | 1 × inf + (−inf) | `0xFFC00000` | – | **The legacy FMAs flush f32 denormals in every mode.** With MODE[5:4] = 3 (f32 denormals kept), `v_fma_f32` and `v_mul_legacy_f32` keep them. That is my control that the denorm bits really take effect. Both legacy FMAs still read denormal inputs as 0 and flush denormal results, in all 1024 modes: | a × b + c | legacy FMAs, any MODE | `v_fma_f32`, MODE[5:4] = 3 | |---|---|---| | +0 × 5 + `0x00000001` | `0x00000000` | `0x00000001` | | 1 × `0x00000001` + 0 | `0x00000000` | `0x00000001` | | 1 × `0x007FFFFF` + 0 | `0x00000000` | `0x007FFFFF` | | 0.5 × `0x00800000` + 0 | `0x00000000` | `0x00400000` | | `0x00000001` × inf + 1 | `0x3F800000` (the legacy 0 × inf) | – | When a factor is zero, this PR returns a denormal `c` unchanged on the bits, so the result depends on the host. I ran the head `439f607` with a local scratch test (not proposed for the PR) on an RTX 5070 Ti (621.24, wave32) and on the same RDNA2 iGPU through D3D12 (wave64 and wave32). On both, `+0 × 5 + 0x00000001`, `+0 × 5 + 0x80000001`, `1 × 0x00000001 + 0`, `1 × 0x007FFFFF + 0` and the VOP2 `fmac` form give `0x00000000`, and `0x00000001 × inf + 1` gives `0x3F800000`. Those are the hardware's answers, because both drivers flush f32 denormals in the DXIL. A sNaN `c` came back as `0x7F800011`, the IEEE 0 answer. So I see nothing to change for #679; the flush comes from the host drivers, not from the helper. **Tested** - AMD Radeon iGPU of a Ryzen 7 9800X3D (`gfx1036`, RDNA2), driver 32.0.21030.2001, AMD OpenCL `3652.0 (PAL,LC)`, native wave64; Windows 11 Pro 26200. - Native: inline asm in OpenCL C, one block per lane. It saves MODE, sets it with `s_setreg_b32 hwreg(HW_REG_MODE, 0, 10)`, reads it back with `s_getreg_b32` (checked against the requested value in every run), runs the instruction and restores MODE. Inputs: 30 triples × 2 instructions × 1024 modes, plus 10 denormal triples × 4 instructions × 1024 modes. - Head `439f607` (on its own base), debug, Rust 1.100.0 MSVC, DXC 1.9.2602.17, `XCL_ADAPTER=nvidia` and `XCL_ADAPTER=radeon`: the scratch test above and `gpu_fma_legacy_zero_product_adds_plus_zero`, 2 passed, 0 failed on each. **Not tested** - Console hardware, and the console's entry IEEE / DX10_CLAMP / denorm bits (XCL does not read them, #73), so the tables give every mode where a bit matters. - VOP3 modifiers (`neg`, `abs`, `clamp`, `omod`) on the hardware; the whole suite; a retail title. **AI use** - Claude Code (Claude Opus 5.5) wrote the probe and the scratch test, ran them on this machine and drafted this comment.
Author
Owner

@⁠DTsordas on GitHub · 2026-11-24 09:50 UTC · original

Test report for #928 at 439f607: AMD RDNA4 (RX 9060 XT, native wave64), Windows

The maintainer merges on RDNA4, which the reports so far (NVIDIA, RDNA2 iGPU) don't cover.

Tested

  • AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 5 5600X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug; DXC 1.9.2602.17 (SDK 10.0.26100.0).
  • cargo test -p xcl --lib fma_legacy: 2 passed, 0 failed, no skips.
  • Negative control: with emit.rs from the base 09940bb, both fail, the GPU test with wave64=false lane 0 +0 * 5 + (-0): got 0x80000000. So the integer-bits form also holds on this AMD driver.
  • cargo test --workspace -- --test-threads=4 at 439f607, two runs:
    • Run 1: the library tests stopped at 674 passed, 3 failed, 21 ignored. placed_title_textures_share_vram_and_preserve_pixels failed at its cubemap reuse check (left: 2555904, right: 17170432), then transitions_apply_when_their_list_is_submitted and d32s8_targets_take_their_own_size_of_video_memory failed on the poisoned lock. That's the #718 pattern, the same three as in the description.
    • Run 2 (--no-fail-fast): 718 passed, 0 failed, 41 ignored, 0 SKIPPED.
  • For comparison, main 077ce40 on this machine (one run): 716 passed, 0 failed, 41 ignored, 0 SKIPPED.

Not tested

  • The regression run: there's no unpacked title on this machine yet, so no xcl-smoke blocks.
  • Non-default f32 round modes, and a release build.

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

**@⁠DTsordas** on GitHub · 2026-11-24 09:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/928#issuecomment-7127968298) **Test report for #928 at `439f607`: AMD RDNA4 (RX 9060 XT, native wave64), Windows** The maintainer merges on RDNA4, which the reports so far (NVIDIA, RDNA2 iGPU) don't cover. **Tested** - AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 5 5600X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug; DXC 1.9.2602.17 (SDK 10.0.26100.0). - `cargo test -p xcl --lib fma_legacy`: 2 passed, 0 failed, no skips. - Negative control: with `emit.rs` from the base `09940bb`, both fail, the GPU test with `wave64=false lane 0 +0 * 5 + (-0): got 0x80000000`. So the integer-bits form also holds on this AMD driver. - `cargo test --workspace -- --test-threads=4` at `439f607`, two runs: - Run 1: the library tests stopped at 674 passed, 3 failed, 21 ignored. `placed_title_textures_share_vram_and_preserve_pixels` failed at its cubemap reuse check (`left: 2555904, right: 17170432`), then `transitions_apply_when_their_list_is_submitted` and `d32s8_targets_take_their_own_size_of_video_memory` failed on the poisoned lock. That's the #718 pattern, the same three as in the description. - Run 2 (`--no-fail-fast`): 718 passed, 0 failed, 41 ignored, 0 SKIPPED. - For comparison, main `077ce40` on this machine (one run): 716 passed, 0 failed, 41 ignored, 0 SKIPPED. **Not tested** - The regression run: there's no unpacked title on this machine yet, so no `xcl-smoke` blocks. - Non-default f32 round modes, and a release build. **AI use:** Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
Author
Owner

@⁠SlopTart on GitHub · 2026-11-24 10:37 UTC · original

Linux / AMD RDNA3 datapoint.

Merged state: head 439f607 onto main 9aec53d, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 715 passed, 11 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). fma_legacy +0-on-zero-factor green.

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-24 10:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/928#issuecomment-7129031275) Linux / AMD RDNA3 datapoint. **Merged state:** head `439f607` onto main `9aec53d`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **715 passed, 11 failed, 41 ignored**; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). fma_legacy +0-on-zero-factor green. **Not tested:** retail titles (none here), Windows, RDNA4. Counts only, no game data. **Machine:** RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross `x86_64-pc-windows-gnu`, `XCL_NETWORK=0`, release profile, `--test-threads=4`. My Linux rows: #42 / #718. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Author
Owner

@⁠Cecerw on GitHub · 2026-11-24 13:45 UTC · original

Tested on NVIDIA (32-lane waves): the new tests pass; needs a rebase

Tree Passed Failed Ignored SKIPPED
Head 439f607 (lib only, stops at the failures) 674 3 21 –
Merge base 09940bb, without the PR (lib only) 672 3 (the same) 21 –
Head merged into main 47efa2e (whole suite) 743 0 41 2 (no wave64)
  • RTX 3060 Ti 8 GB, driver 32.0.16.1088; i5-14600K; Windows 11 26300.9818; Rust 1.100.0, debug; DXC 1.9.2602.17
  • Head 439f607, no local changes: cargo test -p xcl --lib -- --test-threads=4: 674 passed, 3 failed, 21 ignored (same 3 in two runs):
    placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted, d32s8_targets_take_their_own_size_of_video_memory
  • The same 3 fail on the PR's merge base 09940bb without the PR (672 passed, 3 failed), and pass when run alone. They are not from this change.
  • Head merged locally into main 47efa2e (no conflicts): .\scripts\test.ps1: 743 passed, 0 failed, 41 ignored
  • fma_legacy_hlsl_clears_neg_zero_in_integer_bits and gpu_fma_legacy_zero_product_adds_plus_zero (incl. its wave64 case, run split on this GPU): ok in every run
  • SKIPPED: 2 (no wave64), the usual two on this adapter

A rebase onto current main should clear the 3 failures.

Not tested: AMD, any title (no smoke run).

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

**@⁠Cecerw** on GitHub · 2026-11-24 13:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/928#issuecomment-7133297481) **Tested on NVIDIA (32-lane waves): the new tests pass; needs a rebase** | Tree | Passed | Failed | Ignored | SKIPPED | |---|---|---|---|---| | Head `439f607` (lib only, stops at the failures) | 674 | 3 | 21 | – | | Merge base `09940bb`, without the PR (lib only) | 672 | 3 (the same) | 21 | – | | Head merged into `main` `47efa2e` (whole suite) | 743 | 0 | 41 | 2 (no wave64) | - RTX 3060 Ti 8 GB, driver 32.0.16.1088; i5-14600K; Windows 11 26300.9818; Rust 1.100.0, debug; DXC 1.9.2602.17 - Head `439f607`, no local changes: `cargo test -p xcl --lib -- --test-threads=4`: 674 passed, **3 failed**, 21 ignored (same 3 in two runs): `placed_title_textures_share_vram_and_preserve_pixels`, `transitions_apply_when_their_list_is_submitted`, `d32s8_targets_take_their_own_size_of_video_memory` - The same 3 fail on the PR's merge base `09940bb` without the PR (672 passed, 3 failed), and pass when run alone. They are not from this change. - Head merged locally into `main` `47efa2e` (no conflicts): `.\scripts\test.ps1`: 743 passed, 0 failed, 41 ignored - `fma_legacy_hlsl_clears_neg_zero_in_integer_bits` and `gpu_fma_legacy_zero_product_adds_plus_zero` (incl. its wave64 case, run split on this GPU): ok in every run - SKIPPED: 2 (no wave64), the usual two on this adapter A rebase onto current `main` should clear the 3 failures. **Not tested:** AMD, any title (no smoke run). **AI use:** Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.