DXIL: fix negative preserved denormal qNaN in rm_sqrt and route rm_mad via by_mode #2534

Open
github-bot wants to merge 1 commit from github-bot/gh-2534 into main AGit
Owner

@⁠Decodere on GitHub · 2026-11-25 21:48 UTC · original
Decodere:fix-dxil-round-sqrt-denorm-mad → main · +119 −22 · 2 files · 1 commits · open

Part of #675
Part of #1833

What is in it

Fixes two direct-DXIL directed f32 rounding bugs in crates/xcl/src/gpu/dxil/lower_round.rs and expands test coverage in crates/xcl/src/gpu/dxil/round_tests.rs:

  • Direct special-case handling in Lw::rm_sqrt: Previously, rm_sqrt fell back to native (dx.op.unary.f32(Sqrt, fa)) for nonzero special values (negv || infnan). Under D3D12 / SM 6.x, native f32 Sqrt flushes f32 denormals to zero, so a negative preserved denormal (MODE[4] == 1) produced -0.0 (0x8000_0000) instead of qNaN, and static directed modes kept an unused native Sqrt call live. rm_sqrt now computes the special-case result directly from the MODE[4]-filtered bits u (±0 -> ±0, +inf -> +inf, negative nonzero values including preserved denormals and -inf and all NaNs -> canonical qNaN 0x7FC0_0000), removing the native dependency from the directed path so DCE eliminates the dead native Sqrt in static directed modes.
  • Route Lw::rm_mad through Lw::by_mode: Replaces the nested rm_mul + rm_add + outer is_ne select with a single self.by_mode(native, mode, ...) (ext_exact -> fmul -> round_exact -> ext_exact -> round_sum), matching rm_add, rm_mul, and rm_fma. Constant RNE now folds directly to native (mad_nf) with zero f64 instructions, and dynamic mode emits only a single native mad_nf instead of duplicate dead fmul float / fadd float ops.
  • Tests (crates/xcl/src/gpu/dxil/round_tests.rs):
    • Updated ref_sqrt to return Some(0x7FC0_0000) for negative nonzero inputs (instead of skipping them with None) and updated directed_reference_basics with preserved/flushed negative-denormal ref_sqrt assertions and host NaN comparison.
    • Added direct_f32_round_sqrt_specials_and_mad_dxil_validate (pure-CPU/WARP 0-skip DXC 1.9 validation + disassembly check verifying a single dx.op.unary.f32(i32 24, ...) under static directed v_sqrt_f32, single fmul float/fadd float under dynamic v_mad_f32, and zero fmul double under constant RNE v_mad_f32).
    • Added gpu_direct_f32_round_sqrt_negative_denormals_and_specials covering ±denorm, ±0, -1.0, ±inf, ±qNaN, ±sNaN, and v_mad_f32(+denorm, +inf, 1.0) under both s_denorm_mode 3 (preserve) and s_denorm_mode 0 (flush) across rm in [1, 2, 3] (cleanly skipped on WARP/CI via gpu_ready()).

Tested

  • Failing-first on unmodified origin/main (lower_round.rs unchanged) with the new tests:
    • CPU/DXIL (direct_f32_round_sqrt_specials_and_mad_dxil_validate): panicked at round_tests.rs:574 (expected 1 Sqrt (dead native eliminated): left: 2, right: 1).
    • RTX 4060 GPU (gpu_direct_f32_round_sqrt_negative_denormals_and_specials): panicked at round_tests.rs:639 (rm=1 keep=true lane=0 in=0x80000001: got=0x80000000 want=0x7fc00000).
  • Post-fix targeted release tests on NVIDIA GeForce RTX 4060 (DXC 1.9.2609.5, 0 compiler warnings in lower_round.rs and round_tests.rs):
    • cargo test --release -p xcl --lib gpu::dxil::round_tests -- --test-threads=1 --nocapture: 10 passed; 0 failed; 0 ignored (0 skipped).
  • Post-fix targeted release tests on WARP (XCL_ADAPTER=warp):
    • cargo test --release -p xcl --lib gpu::dxil::round_tests -- --test-threads=1 --nocapture: 10 passed; 0 failed; 0 ignored (all 4 CPU/DXC tests ran with 0 skips; all 6 gpu_* tests cleanly reported SKIPPED: no wave64).
  • Full release workspace (cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture):
    • 37 test binaries: 1425 passed; 0 failed; 46 ignored.
    • 29 pre-existing runtime SKIPPED messages (21 no wave64 on wave32-only RTX 4060, 3 per-lane form: refused, 3 no D3D12 debug layer / no d3d12SDKLayers.dll, 1 cannot disable the driver cache, 1 no heap windows).

Regression run

Before (origin/main e1d84b7d9153f86a97d2ec5d209d196046fc0bea):

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

After (fix-dxil-round-sqrt-denorm-mad b3fced11b79fe70204212a03ec78e60dca110eb9):

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

Both 60 s runs reach steady 60 presents per 2 s (60 61 60 vs 60 60 60) with 0 device removals, 0 crashes, 1593 vs 1556 frames shown (102.4%), and 14004 MB vs 14015 MB peak commit.

Not tested

  • Native wave64 GPU execution (RTX 4060 is wave32-only, so direct_kernel tests ran on the split-wave64 path; round_tests lowering is wave-width independent).
  • D3D12 debug-layer tests (d3d12SDKLayers.dll is not installed on this machine).

AI use

Written and verified with Google Antigravity (Gemini 4 Neon). All code changes, CPU/DXIL and RTX 4060 failing-first reproductions, targeted RTX 4060 and WARP test runs, the full release workspace suite, and both paired 60 s GPU smoke runs were executed and checked locally.

**@⁠Decodere** on GitHub · 2026-11-25 21:48 UTC · [original](https://github.com/xcl-dev/xcl/pull/2534) `Decodere:fix-dxil-round-sqrt-denorm-mad` → `main` · +119 −22 · 2 files · 1 commits · open Part of #675 Part of #1833 **What is in it** Fixes two direct-DXIL directed f32 rounding bugs in `crates/xcl/src/gpu/dxil/lower_round.rs` and expands test coverage in `crates/xcl/src/gpu/dxil/round_tests.rs`: - **Direct special-case handling in `Lw::rm_sqrt`:** Previously, `rm_sqrt` fell back to `native` (`dx.op.unary.f32(Sqrt, fa)`) for nonzero special values (`negv || infnan`). Under D3D12 / SM 6.x, native f32 `Sqrt` flushes f32 denormals to zero, so a negative preserved denormal (`MODE[4] == 1`) produced `-0.0` (`0x8000_0000`) instead of `qNaN`, and static directed modes kept an unused native `Sqrt` call live. `rm_sqrt` now computes the special-case result directly from the `MODE[4]`-filtered bits `u` (`±0` -> `±0`, `+inf` -> `+inf`, negative nonzero values including preserved denormals and `-inf` and all NaNs -> canonical `qNaN` `0x7FC0_0000`), removing the `native` dependency from the directed path so DCE eliminates the dead native `Sqrt` in static directed modes. - **Route `Lw::rm_mad` through `Lw::by_mode`:** Replaces the nested `rm_mul` + `rm_add` + outer `is_ne` select with a single `self.by_mode(native, mode, ...)` (`ext_exact` -> `fmul` -> `round_exact` -> `ext_exact` -> `round_sum`), matching `rm_add`, `rm_mul`, and `rm_fma`. Constant `RNE` now folds directly to `native` (`mad_nf`) with zero f64 instructions, and dynamic mode emits only a single `native` `mad_nf` instead of duplicate dead `fmul float` / `fadd float` ops. - **Tests (`crates/xcl/src/gpu/dxil/round_tests.rs`):** - Updated `ref_sqrt` to return `Some(0x7FC0_0000)` for negative nonzero inputs (instead of skipping them with `None`) and updated `directed_reference_basics` with preserved/flushed negative-denormal `ref_sqrt` assertions and host NaN comparison. - Added `direct_f32_round_sqrt_specials_and_mad_dxil_validate` (pure-CPU/WARP `0`-skip DXC 1.9 validation + disassembly check verifying a single `dx.op.unary.f32(i32 24, ...)` under static directed `v_sqrt_f32`, single `fmul float`/`fadd float` under dynamic `v_mad_f32`, and zero `fmul double` under constant RNE `v_mad_f32`). - Added `gpu_direct_f32_round_sqrt_negative_denormals_and_specials` covering `±denorm`, `±0`, `-1.0`, `±inf`, `±qNaN`, `±sNaN`, and `v_mad_f32(+denorm, +inf, 1.0)` under both `s_denorm_mode 3` (preserve) and `s_denorm_mode 0` (flush) across `rm in [1, 2, 3]` (cleanly skipped on WARP/CI via `gpu_ready()`). **Tested** - Failing-first on unmodified `origin/main` (`lower_round.rs` unchanged) with the new tests: - CPU/DXIL (`direct_f32_round_sqrt_specials_and_mad_dxil_validate`): panicked at `round_tests.rs:574` (`expected 1 Sqrt (dead native eliminated): left: 2, right: 1`). - RTX 4060 GPU (`gpu_direct_f32_round_sqrt_negative_denormals_and_specials`): panicked at `round_tests.rs:639` (`rm=1 keep=true lane=0 in=0x80000001: got=0x80000000 want=0x7fc00000`). - Post-fix targeted release tests on NVIDIA GeForce RTX 4060 (DXC `1.9.2609.5`, `0` compiler warnings in `lower_round.rs` and `round_tests.rs`): - `cargo test --release -p xcl --lib gpu::dxil::round_tests -- --test-threads=1 --nocapture`: `10 passed; 0 failed; 0 ignored` (`0` skipped). - Post-fix targeted release tests on WARP (`XCL_ADAPTER=warp`): - `cargo test --release -p xcl --lib gpu::dxil::round_tests -- --test-threads=1 --nocapture`: `10 passed; 0 failed; 0 ignored` (all 4 CPU/DXC tests ran with `0` skips; all 6 `gpu_*` tests cleanly reported `SKIPPED: no wave64`). - Full release workspace (`cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture`): - `37` test binaries: `1425 passed; 0 failed; 46 ignored`. - `29` pre-existing runtime `SKIPPED` messages (`21` `no wave64` on wave32-only RTX 4060, `3` `per-lane form: refused`, `3` `no D3D12 debug layer` / `no d3d12SDKLayers.dll`, `1` `cannot disable the driver cache`, `1` `no heap windows`). **Regression run** Before (`origin/main` `e1d84b7d9153f86a97d2ec5d209d196046fc0bea`): ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1556 (PresentX 1556) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14015 MB ``` After (`fix-dxil-round-sqrt-denorm-mad` `b3fced11b79fe70204212a03ec78e60dca110eb9`): ``` xcl-smoke v1 commit: b3fced11b79fe70204212a03ec78e60dca110eb9 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1593 (PresentX 1594) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 14004 MB ``` Both 60 s runs reach steady `60` presents per 2 s (`60 61 60` vs `60 60 60`) with `0` device removals, `0` crashes, `1593` vs `1556` frames shown (`102.4%`), and `14004 MB` vs `14015 MB` peak commit. **Not tested** - Native wave64 GPU execution (RTX 4060 is wave32-only, so `direct_kernel` tests ran on the split-wave64 path; `round_tests` lowering is wave-width independent). - D3D12 debug-layer tests (`d3d12SDKLayers.dll` is not installed on this machine). **AI use** Written and verified with Google Antigravity (Gemini 4 Neon). All code changes, CPU/DXIL and RTX 4060 failing-first reproductions, targeted RTX 4060 and WARP test runs, the full release workspace suite, and both paired 60 s GPU smoke runs were executed and checked locally.
Fix two direct-DXIL directed f32 rounding bugs in lower_round.rs:

1. Lw::rm_sqrt previously fell back to the native dx.op.unary.f32(Sqrt, fa)
   value for nonzero special inputs. Under D3D12 / SM 6.x, native f32 sqrt
   flushes f32 denormals to zero, so a negative preserved denormal
   (MODE[4] == 1) returned -0.0 instead of qNaN, and static directed modes
   retained an unnecessary native Sqrt call. Compute the special-case result
   directly from the MODE[4]-filtered bits u (±0 -> ±0, +inf -> +inf, all
   negative nonzero inputs and NaNs -> canonical qNaN 0x7FC0_0000) so
   negative preserved denormals produce qNaN and DCE removes the unused
   native Sqrt in static directed modes.
2. Route Lw::rm_mad directly through Lw::by_mode (exact f64 multiply ->
   round_exact -> ext_exact -> round_sum) instead of nesting rm_mul and
   rm_add around an outer is_ne select. Constant RNE now folds directly to
   native mad_nf, and dynamic mode avoids emitting redundant dead native
   fmul/fadd instructions.

Update ref_sqrt and directed_reference_basics in round_tests.rs to verify
negative sqrt qNaN and denormal flushing, and add DXIL validation/IR and
GPU regression tests for both fixes.

Part of #675
Part of #1833

Assisted-by: Google Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:33:10 +00:00
Author
Owner

@⁠DarkPanda69 on GitHub · 2026-11-25 22:00 UTC · original

Native wave64 run (listed as untested) on AMD RDNA4, plus an RTX 3060: both new tests pass on both cards, and nothing else changes.

Head b3fced1 applied on main e1d84b7, debug, Windows 11 Pro 26200, XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu:: --test-threads=4 on main and with the PR, card chosen with XCL_ADAPTER:

main this PR
RX 9070 XT (RDNA4, 32.0.32029.2010; direct_kernel_full(.., true) runs native wave64 here) 698 passed, 2 failed, 6 SKIPPED 700 passed, 2 failed, 6 SKIPPED
RTX 3060 (32.0.16.1088; split wave64) 700 passed, 0 failed, 24 SKIPPED 702 passed, 0 failed, 24 SKIPPED

On both cards, the only result changes against main are the new gpu_direct_f32_round_sqrt_negative_denormals_and_specials and direct_f32_round_sqrt_specials_and_mad_dxil_validate, both ok, with no new skips. The 2 RX 9070 XT failures are the AMD fuzz seeds tracked in #2115, the same on main. So the expected denormal and NaN results hold on both vendors' hardware, with denormals kept and flushed, for round modes 1–3.

Not tested: the D3D12 debug-layer tests (no d3d12SDKLayers.dll here either; they skip), RDNA2/3, a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

**@⁠DarkPanda69** on GitHub · 2026-11-25 22:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/2534#issuecomment-7175823970) Native wave64 run (listed as untested) on AMD RDNA4, plus an RTX 3060: both new tests pass on both cards, and nothing else changes. Head `b3fced1` applied on `main` `e1d84b7`, debug, Windows 11 Pro 26200, `XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu:: --test-threads=4` on `main` and with the PR, card chosen with `XCL_ADAPTER`: | | `main` | this PR | |---|---|---| | RX 9070 XT (RDNA4, 32.0.32029.2010; `direct_kernel_full(.., true)` runs native wave64 here) | 698 passed, 2 failed, 6 SKIPPED | 700 passed, 2 failed, 6 SKIPPED | | RTX 3060 (32.0.16.1088; split wave64) | 700 passed, 0 failed, 24 SKIPPED | 702 passed, 0 failed, 24 SKIPPED | On both cards, the only result changes against `main` are the new `gpu_direct_f32_round_sqrt_negative_denormals_and_specials` and `direct_f32_round_sqrt_specials_and_mad_dxil_validate`, both ok, with no new skips. The 2 RX 9070 XT failures are the AMD fuzz seeds tracked in #2115, the same on `main`. So the expected denormal and NaN results hold on both vendors' hardware, with denormals kept and flushed, for round modes 1–3. Not tested: the D3D12 debug-layer tests (no `d3d12SDKLayers.dll` here either; they skip), RDNA2/3, a title. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 22:08 UTC · original

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!

**@⁠DavidM1911** on GitHub · 2026-11-25 22:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/2534#issuecomment-7175988614) 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!
Author
Owner

@⁠xpatfussy69x on GitHub · 2026-11-25 22:09 UTC · original

Test run on exact head b3fced1 (b3fced11b79fe70204212a03ec78e60dca110eb9, on its base e1d84b7), 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: 1425 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)
  • cargo test -p xcl --lib round: 36 passed, 0 failed
  • This PR's new tests in the workspace run:
    • direct_f32_round_sqrt_specials_and_mad_dxil_validate: ok, not skipped
    • gpu_direct_f32_round_sqrt_negative_denormals_and_specials: ok, not skipped

Regression run (60 s, default settings)

main:

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

this PR:

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

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

Not tested

  • The smoke run uses the default (HLSL) path, not XCL_DIRECT_DXIL=1, and no directed rounding mode: a regression check only
  • The PR merged into current main (tested on its own base; it merges into e1d84b7 without conflicts)
  • AMD / native wave64

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
**@⁠xpatfussy69x** on GitHub · 2026-11-25 22:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2534#issuecomment-7176005350) Test run on exact head `b3fced1` (`b3fced11b79fe70204212a03ec78e60dca110eb9`, on its base `e1d84b7`), 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`: 1425 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) - `cargo test -p xcl --lib round`: 36 passed, 0 failed - This PR's new tests in the workspace run: - `direct_f32_round_sqrt_specials_and_mad_dxil_validate`: ok, not skipped - `gpu_direct_f32_round_sqrt_negative_denormals_and_specials`: ok, not skipped **Regression run** (60 s, default settings) main: ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1091 (PresentX 1091) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14814 MB ``` this PR: ``` xcl-smoke v1 commit: b3fced11b79fe70204212a03ec78e60dca110eb9 gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1104 (PresentX 1104) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 14794 MB ``` No crash or device removal; frames 101 % of `main`'s, peak commit 100 %. **Not tested** - The smoke run uses the default (HLSL) path, not `XCL_DIRECT_DXIL=1`, and no directed rounding mode: a regression check only - The PR merged into current `main` (tested on its own base; it merges into `e1d84b7` without conflicts) - AMD / native wave64 **AI use** - Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
Author
Owner

@⁠emirduran707 on GitHub · 2026-11-25 22:10 UTC · original

Independent AMD RDNA4 (native wave64) test report on exact head b3fced11b79fe70204212a03ec78e60dca110eb9 (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: 1423 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.
    • Both PR tests passed (no skips): gpu::dxil::round_tests::direct_f32_round_sqrt_specials_and_mad_dxil_validate and gpu_direct_f32_round_sqrt_negative_denormals_and_specials.
    • 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: b3fced11b79fe70204212a03ec78e60dca110eb9
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1617 (PresentX 1617)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13934 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.
**@⁠emirduran707** on GitHub · 2026-11-25 22:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/2534#issuecomment-7176025983) Independent AMD RDNA4 (native wave64) test report on exact head `b3fced11b79fe70204212a03ec78e60dca110eb9` (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`: **1423 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. - Both PR tests passed (no skips): `gpu::dxil::round_tests::direct_f32_round_sqrt_specials_and_mad_dxil_validate` and `gpu_direct_f32_round_sqrt_negative_denormals_and_specials`. - 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: b3fced11b79fe70204212a03ec78e60dca110eb9 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1617 (PresentX 1617) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13934 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.
Author
Owner

@⁠SlopTart on GitHub · 2026-11-25 23:07 UTC · original

Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

gpu_ suite (cold cache): 165 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 the rm_sqrt/rm_mad qNaN/denormal tests: the three matching new-behavior tests passed; the one failure in the same filter is the pre-existing baseline gpu_nonfused_mad_and_mac_prevent_fma_contraction, which stays red on this lane with this PR (unchanged from main). Flagging that explicitly since this PR touches that machinery.

Not tested: retail titles (no title data on this lane, counts only).

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

**@⁠SlopTart** on GitHub · 2026-11-25 23:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/2534#issuecomment-7177183674) **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). `gpu_` suite (cold cache): 165 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 the rm_sqrt/rm_mad qNaN/denormal tests: the three matching new-behavior tests passed; the one failure in the same filter is the pre-existing baseline `gpu_nonfused_mad_and_mac_prevent_fma_contraction`, which stays red on this lane with this PR (unchanged from main). Flagging that explicitly since this PR touches that machinery. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-25 23:31 UTC · original

RX 6800M focused validation on exact PR head b3fced11b79fe70204212a03ec78e60dca110eb9 (Windows 11 build 26200, Radeon RX 6800M driver 30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.8.2502.11):

XCL_ADAPTER=6800M XCL_REQUIRE_GPU=1 XCL_DIRECT_DXIL=1 cargo test --locked -p xcl --lib -j 1 gpu_direct_f32_round_sqrt_negative_denormals_and_specials -- --test-threads=1 --show-output passed on an isolated target directory: 1 passed, 0 failed, 0 ignored, 0 SKIPPED (1,325 filtered out). The fixture ran on native RDNA2 hardware, exercising the new negative-denormal/special-value cases in direct DXIL. The memory guard did not stop this completed run.

A prior cold compile stopped at the memory guard before testing. A later attempt with a target directory shared across worktrees incorrectly reused another PR's test binary and selected zero tests; I detected that in the libtest summary, discarded it, and rebuilt in the isolated target for the result above. Neither earlier attempt is counted as a pass.

Not tested: full GPU workspace suite, release binary, paired title smoke, other adapters/drivers, or a full title path through these instructions. No game data was uploaded.

AI use: OpenAI Codex (GPT-6; exact variant unavailable) ran the guarded exact-head test, checked the binary/test selection and logs, and drafted this report.

**@⁠luckyteagirl** on GitHub · 2026-11-25 23:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/2534#issuecomment-7177669914) **RX 6800M focused validation on exact PR head `b3fced11b79fe70204212a03ec78e60dca110eb9`** (Windows 11 build 26200, Radeon RX 6800M driver `30.0.13002.13003`, Rust 1.99.0 MSVC, DXC/DXIL 1.8.2502.11): `XCL_ADAPTER=6800M XCL_REQUIRE_GPU=1 XCL_DIRECT_DXIL=1 cargo test --locked -p xcl --lib -j 1 gpu_direct_f32_round_sqrt_negative_denormals_and_specials -- --test-threads=1 --show-output` passed on an **isolated target directory**: **1 passed, 0 failed, 0 ignored, 0 SKIPPED** (1,325 filtered out). The fixture ran on native RDNA2 hardware, exercising the new negative-denormal/special-value cases in direct DXIL. The memory guard did not stop this completed run. A prior cold compile stopped at the memory guard before testing. A later attempt with a target directory shared across worktrees incorrectly reused another PR's test binary and selected **zero tests**; I detected that in the libtest summary, discarded it, and rebuilt in the isolated target for the result above. Neither earlier attempt is counted as a pass. **Not tested:** full GPU workspace suite, release binary, paired title smoke, other adapters/drivers, or a full title path through these instructions. No game data was uploaded. **AI use:** OpenAI Codex (GPT-6; exact variant unavailable) ran the guarded exact-head test, checked the binary/test selection and logs, and drafted this report.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2534/head:github-bot/gh-2534'
git switch 'github-bot/gh-2534'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2534'
git switch 'github-bot/gh-2534'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2534'
git switch 'github-bot/gh-2534'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2534'
git switch 'main'
git merge --squash 'github-bot/gh-2534'
git switch 'main'
git merge --ff-only 'github-bot/gh-2534'
git switch 'main'
git merge 'github-bot/gh-2534'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.