Recompiler tests: GPU checks for f32 ceil/trunc/rndne, f32/i32 min/max #734

Open
13hourstilliland wants to merge 1 commit from upstream-pr/739 into main
13hourstilliland commented 2026-11-24 04:21:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by 13hourstilliland on 2026-11-24T04:21:43Z.


Adds a GPU test for nine RDNA2 instructions that emit.rs translates but no test runs: v_ceil_f32, v_trunc_f32, v_rndne_f32, v_max_f32, v_min_f32, v_max3_f32, v_min3_f32, v_max_i32 and v_min_i32. Test only, no runtime change.

What is in it

  • gpu_valu_round_and_min_max_f32_i32 in crates/xcl/src/gpu/recomp/tests.rs, after f32_compares_with_nan (away from the lines open PRs add to): one kernel with all 9 instructions, run as wave64 where the adapter has it and as wave32 everywhere (gpu_waves), 32 batches of operands: edge values (±0, ±0.5, ±1.5, ±2.5, 0.49999997, ±8388607.5, ±1e30, ±inf, NaN), values on 1/256 steps up to 2^23 and random bit patterns, with denormals flushed to a signed zero and NaNs quieted, each lane compared with the RDNA2 definition computed on the CPU: rounding keeps the sign of a zero; a quiet NaN operand of an f32 min/max gives the other operand (minNum/maxNum), and min/max zero results are compared without their sign.
  • A failure lists the lane, instruction, operands, result and expected value, and counts the wrong results per instruction.
  • Checked that it catches bugs, on a local copy, measured on 3db536e (before the rebase onto main 91f9a5e; the test code did not change): with the reference changed (reference round_ties_even replaced by round: wave32, 188 wrong (V_RNDNE_F32: 188), no other instruction) the test fails; with ceil as floor, trunc as round, rndne as trunc, max and min swapped, max3 and min3 with the inner op swapped, signed i32 min and max made unsigned applied to emit.rs all at once it fails and names every instruction (wave32, 5199 wrong (V_CEIL_F32: 634, V_TRUNC_F32: 217, V_RNDNE_F32: 217, V_MAX_F32: 956, V_MIN_F32: 956, V_MAX3_F32: 628, V_MIN3_F32: 629, V_MAX_I32: 481, V_MIN_I32: 481), 217 to 956 wrong per instruction). Those edits are not in the PR.
  • v_min_f32 also appears in the open #247, inside an image-sample test; that PR does not test it on its own.

Tested

  • NVIDIA GeForce RTX 3070 8 GB, driver 610.88; Intel Core i5-12600K; Windows 11 Home build 26200
  • Rust 1.100.0 stable-x86_64-pc-windows-gnu (MinGW linker), DXC 1.9.2609.5, debug build, commit 586edbac69 (on main 91f9a5e9f0)
  • cargo test --workspace --no-fail-fast -- --test-threads=4, run in the interactive desktop session: 693 passed, 0 failed, 41 ignored (lib: 653 passed, 0 failed, 21 ignored; e2e 3 of 3; gpu_valu_round_and_min_max_f32_i32 ok). main 91f9a5e9f0 on the same machine: 692 passed, 0 failed, 41 ignored (lib: 652 passed, 0 failed, 21 ignored)
  • SKIPPED (no wave64 on this GPU): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware

Not tested

  • The wave64 path: the RTX 3070 has 32-lane waves only, so the test ran as wave32. Not run on AMD.
  • The MSVC toolchain (stable-x86_64-pc-windows-msvc): built with the GNU toolchain only.
  • A release build.
  • A retail title: not needed for a test-only change (no crates/xcl/src runtime file changes).
  • A hang I could not explain: the first two full-suite runs of this branch after a rebuild hung with four tests stuck at zero CPU (gpu_typed_buffer_loads_and_stores, gpu_uma_import_check_at_init, gpu_valu_16_and_64_bit and this test) and were killed. The same four tests together passed twice, the lib suite alone passed 4 of 4, main passed 4 of 4, and the full-suite run counted above passed. I did not find the cause.

AI use

  • Hermes Agent with Claude Opus 5.5: wrote the test, ran the tests and the mutation check on the hardware above, and wrote this description.
<!-- greyfinch-sync:ivall/xcl:issue:5466028804 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739). Originally posted by [13hourstilliland](https://github.com/13hourstilliland) on 2026-11-24T04:21:43Z. --- Adds a GPU test for nine RDNA2 instructions that `emit.rs` translates but no test runs: `v_ceil_f32`, `v_trunc_f32`, `v_rndne_f32`, `v_max_f32`, `v_min_f32`, `v_max3_f32`, `v_min3_f32`, `v_max_i32` and `v_min_i32`. Test only, no runtime change. **What is in it** - `gpu_valu_round_and_min_max_f32_i32` in `crates/xcl/src/gpu/recomp/tests.rs`, after `f32_compares_with_nan` (away from the lines open PRs add to): one kernel with all 9 instructions, run as wave64 where the adapter has it and as wave32 everywhere (`gpu_waves`), 32 batches of operands: edge values (±0, ±0.5, ±1.5, ±2.5, 0.49999997, ±8388607.5, ±1e30, ±inf, NaN), values on 1/256 steps up to 2^23 and random bit patterns, with denormals flushed to a signed zero and NaNs quieted, each lane compared with the RDNA2 definition computed on the CPU: rounding keeps the sign of a zero; a quiet NaN operand of an f32 min/max gives the other operand (minNum/maxNum), and min/max zero results are compared without their sign. - A failure lists the lane, instruction, operands, result and expected value, and counts the wrong results per instruction. - Checked that it catches bugs, on a local copy, measured on 3db536e (before the rebase onto main 91f9a5e; the test code did not change): with the reference changed (reference `round_ties_even` replaced by `round`: `wave32, 188 wrong (V_RNDNE_F32: 188)`, no other instruction) the test fails; with ceil as floor, trunc as round, rndne as trunc, max and min swapped, max3 and min3 with the inner op swapped, signed i32 min and max made unsigned applied to `emit.rs` all at once it fails and names every instruction (`wave32, 5199 wrong (V_CEIL_F32: 634, V_TRUNC_F32: 217, V_RNDNE_F32: 217, V_MAX_F32: 956, V_MIN_F32: 956, V_MAX3_F32: 628, V_MIN3_F32: 629, V_MAX_I32: 481, V_MIN_I32: 481)`, 217 to 956 wrong per instruction). Those edits are not in the PR. - `v_min_f32` also appears in the open #247, inside an image-sample test; that PR does not test it on its own. **Tested** - NVIDIA GeForce RTX 3070 8 GB, driver 610.88; Intel Core i5-12600K; Windows 11 Home build 26200 - Rust 1.100.0 `stable-x86_64-pc-windows-gnu` (MinGW linker), DXC 1.9.2609.5, debug build, commit 586edbac69eb (on main 91f9a5e9f031) - `cargo test --workspace --no-fail-fast -- --test-threads=4`, run in the interactive desktop session: 693 passed, 0 failed, 41 ignored (lib: 653 passed, 0 failed, 21 ignored; `e2e` 3 of 3; `gpu_valu_round_and_min_max_f32_i32` ok). `main` 91f9a5e9f031 on the same machine: 692 passed, 0 failed, 41 ignored (lib: 652 passed, 0 failed, 21 ignored) - `SKIPPED` (no wave64 on this GPU): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` **Not tested** - The wave64 path: the RTX 3070 has 32-lane waves only, so the test ran as wave32. Not run on AMD. - The MSVC toolchain (`stable-x86_64-pc-windows-msvc`): built with the GNU toolchain only. - A release build. - A retail title: not needed for a test-only change (no `crates/xcl/src` runtime file changes). - A hang I could not explain: the first two full-suite runs of this branch after a rebuild hung with four tests stuck at zero CPU (`gpu_typed_buffer_loads_and_stores`, `gpu_uma_import_check_at_init`, `gpu_valu_16_and_64_bit` and this test) and were killed. The same four tests together passed twice, the lib suite alone passed 4 of 4, `main` passed 4 of 4, and the full-suite run counted above passed. I did not find the cause. **AI use** - Hermes Agent with Claude Opus 5.5: wrote the test, ran the tests and the mutation check on the hardware above, and wrote this description.
MesshM commented 2026-11-24 07:06:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T04:39:51Z.


Test run of 586edbac69ebec057acaa9927957683036958dce on AMD RDNA4. I merged it onto current main 64b3f35 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, mesh shaders), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 702 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 661 passed, 0 failed, 21 ignored
  • 0 SKIPPED; the new rounding / min-max GPU test passes.

Review: Overlap: v_ceil_f32, v_trunc_f32 and v_rndne_f32 are also covered by #655 (gpu_float_rounding_ops), and v_min_f32 / v_max_f32 by #719; new here are v_max3_f32, v_min3_f32 and the i32 min / max. If those land first, this could keep only the new ones. The references are right (ceil(−0.5) = −0, min / max zero results compared without the sign, as D3D allows).

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

<!-- greyfinch-sync:ivall/xcl:comment:7122225132 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/739#issuecomment-7122225132). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T04:39:51Z. --- Test run of `586edbac69ebec057acaa9927957683036958dce` on AMD RDNA4. I merged it onto current `main` `64b3f35` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, mesh shaders), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **702 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 661 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; the new rounding / min-max GPU test passes. **Review:** **Overlap:** `v_ceil_f32`, `v_trunc_f32` and `v_rndne_f32` are also covered by #655 (`gpu_float_rounding_ops`), and `v_min_f32` / `v_max_f32` by #719; new here are `v_max3_f32`, `v_min3_f32` and the i32 min / max. If those land first, this could keep only the new ones. The references are right (ceil(−0.5) = −0, min / max zero results compared without the sign, as D3D allows). **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
futurepro62 commented 2026-11-24 07:06:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T04:46:51Z.


An NVIDIA run, since the report above is on RDNA4 (native wave64). Tested exact head 586edba (on its base 91f9a5e).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 693 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new test ran and passed (not skipped): gpu::recomp::tests::gpu_valu_round_and_min_max_f32_i32 ... ok.
    Not tested
  • AMD (covered above), a release build.

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:7122332081 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/739#issuecomment-7122332081). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T04:46:51Z. --- An NVIDIA run, since the report above is on RDNA4 (native wave64). Tested exact head `586edba` (on its base `91f9a5e`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **693 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new test ran and passed (not skipped): `gpu::recomp::tests::gpu_valu_round_and_min_max_f32_i32 ... ok`. **Not tested** - AMD (covered above), a release build. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
ItsMrDubey commented 2026-11-24 07:06:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ItsMrDubey on 2026-11-24T04:57:21Z.


Test report for 586edbac69ebec057acaa9927957683036958dce (this PR's head)

Tested

  • NVIDIA GeForce RTX 4070 Ti 12 GB (Ada), driver 617.14; Intel Core i9-10900K, 32 GB RAM; Windows 11 Pro build 26300
  • Rust 1.88.0 (stable-x86_64-pc-windows-msvc), debug; DXC 1.9.2602.17 from Windows SDK 10.0.26100
cargo build --workspace
cargo test --workspace --no-fail-fast -- --test-threads=4

16 test binaries: 692 passed, 1 failed, 41 ignored. Same machine, main 64b3f3559: 700 passed, 1 failed, 41 ignored.

This PR's tests:

  • gpu::recomp::tests::gpu_valu_round_and_min_max_f32_i32: ok

Failures:

  • hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory fails on this machine on every run, on this PR's head and on main 64b3f3559 alike (5 of 5 reruns on main), so it is not from this PR. #650 fixes it here.

16 test binaries instead of main's 17 because this branch predates tests/sparse_reinit.rs; nothing crashed.

SKIPPED (no wave64 on this GPU): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.

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

<!-- greyfinch-sync:ivall/xcl:comment:7122490026 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/739#issuecomment-7122490026). Originally posted by [ItsMrDubey](https://github.com/ItsMrDubey) on 2026-11-24T04:57:21Z. --- Test report for `586edbac69ebec057acaa9927957683036958dce` (this PR's head) **Tested** - NVIDIA GeForce RTX 4070 Ti 12 GB (Ada), driver 617.14; Intel Core i9-10900K, 32 GB RAM; Windows 11 Pro build 26300 - Rust 1.88.0 (`stable-x86_64-pc-windows-msvc`), debug; DXC 1.9.2602.17 from Windows SDK 10.0.26100 ``` cargo build --workspace cargo test --workspace --no-fail-fast -- --test-threads=4 ``` 16 test binaries: **692 passed, 1 failed, 41 ignored**. Same machine, `main` `64b3f3559`: 700 passed, 1 failed, 41 ignored. This PR's tests: - `gpu::recomp::tests::gpu_valu_round_and_min_max_f32_i32`: ok Failures: - `hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory` fails on this machine on every run, on this PR's head and on `main` `64b3f3559` alike (5 of 5 reruns on `main`), so it is not from this PR. #650 fixes it here. 16 test binaries instead of `main`'s 17 because this branch predates `tests/sparse_reinit.rs`; nothing crashed. SKIPPED (no wave64 on this GPU): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. AI use: Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report from their output.
JJAutoCompare commented 2026-11-25 06:06:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:03:11Z.


Empirical test report (586edbac)

Verified PR #739 at commit 586edbac69ebec057acaa9927957683036958dce in a clean detached checkout.

Hardware / environment

  • Intel Arc A770 selected with XCL_ADAPTER=A770, on Windows x64 build 26200 with an AMD Family 23 Model 113 CPU.
  • Rust 1.100.0 (0ef1bc386 2026-11-09). The test ran in the unoptimized Cargo test profile with incremental compilation and debug info disabled.
  • DXC 1.9.2609.5 (01b62ad47 in dxc.exe --version). The fixture reported loading dxcompiler and dxil version 1.9.2609.5.

Commands and results

  • cargo test -p xcl --lib --no-run completed with exit code 0 before acquiring the GPU lock.
  • Under Invoke-ArcTest.ps1, with RUST_TEST_NOCAPTURE=1, ran xcl-00e28da3621caf64.exe gpu::recomp::tests::gpu_valu_round_and_min_max_f32_i32 --exact --nocapture --test-threads=1 using the executable from that build. Exit code 0. The log showed 1 passed, 0 failed, 0 ignored, 0 skipped and 673 filtered out. The fixture completed in 0.73 seconds.

Observed behavior

The fixture compiled its recompiled shader with DXC and completed its GPU comparisons against the CPU reference. It checked nine VOP3 instructions over 32 batches per executed wave mode. Coverage included f32 ceil, truncation and nearest-even rounding, two- and three-operand f32 min/max, and signed i32 min/max. The fixture checked signed zero for rounding and numeric results for min/max with a single quiet NaN. The result confirms wave32 coverage. The log does not enumerate the wave modes, so native wave64 coverage was not established by this run.

Not tested

The full GPU workspace suite and game smoke runs were omitted. No other GPU was tested.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr739-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7154392201 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739#issuecomment-7154392201). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:03:11Z. --- ### Empirical test report (586edbac) Verified PR #739 at commit `586edbac69ebec057acaa9927957683036958dce` in a clean detached checkout. **Hardware / environment** - Intel Arc A770 selected with `XCL_ADAPTER=A770`, on Windows x64 build 26200 with an AMD Family 23 Model 113 CPU. - Rust `1.100.0 (0ef1bc386 2026-11-09)`. The test ran in the unoptimized Cargo test profile with incremental compilation and debug info disabled. - DXC `1.9.2609.5` (`01b62ad47` in `dxc.exe --version`). The fixture reported loading `dxcompiler` and `dxil` version `1.9.2609.5`. **Commands and results** - `cargo test -p xcl --lib --no-run` completed with exit code 0 before acquiring the GPU lock. - Under `Invoke-ArcTest.ps1`, with `RUST_TEST_NOCAPTURE=1`, ran `xcl-00e28da3621caf64.exe gpu::recomp::tests::gpu_valu_round_and_min_max_f32_i32 --exact --nocapture --test-threads=1` using the executable from that build. Exit code 0. The log showed **1 passed, 0 failed, 0 ignored, 0 skipped** and 673 filtered out. The fixture completed in 0.73 seconds. **Observed behavior** The fixture compiled its recompiled shader with DXC and completed its GPU comparisons against the CPU reference. It checked nine VOP3 instructions over 32 batches per executed wave mode. Coverage included f32 ceil, truncation and nearest-even rounding, two- and three-operand f32 min/max, and signed i32 min/max. The fixture checked signed zero for rounding and numeric results for min/max with a single quiet NaN. The result confirms wave32 coverage. The log does not enumerate the wave modes, so native wave64 coverage was not established by this run. **Not tested** The full GPU workspace suite and game smoke runs were omitted. No other GPU was tested. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr739-focused.log` and published.
DavidM1911 commented 2026-11-25 12:06:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T11:28:55Z.


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:7161103876 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739#issuecomment-7161103876). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T11:28:55Z. --- 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-29 07:41:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:41:44Z.


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:7252632521 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739#issuecomment-7252632521). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:41:44Z. --- 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.
brainhay5 commented 2026-11-30 08:32:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:32:23Z.


merge-check claim
head: 586edbac69

<!-- greyfinch-sync:ivall/xcl:comment:7273032981 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739#issuecomment-7273032981). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T08:32:23Z. --- merge-check claim head: 586edbac69ebec057acaa9927957683036958dce
brainhay5 commented 2026-11-30 08:37:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:37:54Z.


merge-check
base: d52ff48caa
head: 586edbac69
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines

failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017

correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.

<!-- greyfinch-sync:ivall/xcl:comment:7273146006 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739#issuecomment-7273146006). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T08:37:54Z. --- merge-check base: d52ff48caade1f5350d513bfffd370396dadfeb6 head: 586edbac69ebec057acaa9927957683036958dce merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines failing: test_title_runs_and_game_folder_is_untouched review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review. performance: not assessed beyond the suite. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017 correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". `gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16` fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.
BBareth commented 2026-11-30 10:02:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:02:16Z.


merge-check claim
head: 586edbac69

<!-- greyfinch-sync:ivall/xcl:comment:7275026925 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739#issuecomment-7275026925). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T10:02:16Z. --- merge-check claim head: 586edbac69ebec057acaa9927957683036958dce
BBareth commented 2026-11-30 10:09:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:09:34Z.


merge-check
base: 9dfbe3ea66
head: 586edbac69
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2886 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test gpu_valu_round_and_min_max_f32_i32 passed; on this card it runs the wave32 form only (no wave64).
review: no blocking finding; test-only, one file, read in full. One GPU test of v_ceil_f32, v_trunc_f32, v_rndne_f32, v_max/min_f32, v_max3/min3_f32 and v_max/min_i32 against CPU references, 32 dispatches of edge values and random bits. Denormals are turned into zeros and NaNs quieted in the inputs, and zero results of min / max are compared without their sign; the comment gives the reasons (driver flush behaviour, D3D leaving -0 against +0 open), so those cases are left unpinned on purpose. Sibling of #655 (rounding, fract) and #737 / #738; I found no PR with the same test.
performance: none; tests only.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7275209059 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739#issuecomment-7275209059). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T10:09:34Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: 586edbac69ebec057acaa9927957683036958dce merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2886 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test `gpu_valu_round_and_min_max_f32_i32` passed; on this card it runs the wave32 form only (no wave64). review: no blocking finding; test-only, one file, read in full. One GPU test of `v_ceil_f32`, `v_trunc_f32`, `v_rndne_f32`, `v_max/min_f32`, `v_max3/min3_f32` and `v_max/min_i32` against CPU references, 32 dispatches of edge values and random bits. Denormals are turned into zeros and NaNs quieted in the inputs, and zero results of min / max are compared without their sign; the comment gives the reasons (driver flush behaviour, D3D leaving -0 against +0 open), so those cases are left unpinned on purpose. Sibling of #655 (rounding, fract) and #737 / #738; I found no PR with the same test. performance: none; tests only. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Foniass commented 2026-12-01 04:02:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:02:50Z.


Triage (#1607) – head 586edba

Partial overlaps, all opened later: #1672 and #2620 also test V_CEIL_F32 / V_TRUNC_F32 / V_RNDNE_F32 in wider unary-math tests. #1301 and #1577 test V_MIN/MAX(3)_F32 on -0 against +0, which this test leaves out on purpose (it compares zero min/max results without their sign). None of them covers the same set, and none of these checks is on main.
No problems found in the diff.
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:7300323731 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739#issuecomment-7300323731). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:02:50Z. --- **Triage (#1607)** – head 586edba Partial overlaps, all opened later: #1672 and #2620 also test V_CEIL_F32 / V_TRUNC_F32 / V_RNDNE_F32 in wider unary-math tests. #1301 and #1577 test V_MIN/MAX(3)_F32 on -0 against +0, which this test leaves out on purpose (it compares zero min/max results without their sign). None of them covers the same set, and none of these checks is on main. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
stijn-boer commented 2026-12-02 18:43:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T18:43:56Z.


merge-check
base: c53e969602
head: 586edbac69
verdict: safe to merge

Windows / AMD RDNA4 — VALU rounding and min/max tests on 586edba

Clean merge onto main (merge commit 88605f6db0d8a60eb53152259496ede3baa763f5). git diff --check was clean.

Setup

AMD Radeon RX 9060 XT (32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332, Rust 1.100.0 debug, Agility 1.620.2, DXC 1.9.2609.5.

Tested

cargo test -p xcl --lib gpu_valu_round_and_min_max_f32_i32 -- --test-threads=1 --show-output --nocapture — 1 passed, 0 failed, 0 ignored, 0 skip notices.

Diff review

The diff adds only the GPU test. It checks integral f32 rounding and ordered floating-point and signed-integer min, max, and median cases against expected per-lane results.

Not tested

The full workspace suite, retail smoke, or another GPU vendor in this run.

AI use

Codex (GPT-6) merged the PR, reviewed the test diff, ran the test, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7355069090 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/739#issuecomment-7355069090). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-02T18:43:56Z. --- merge-check base: c53e96960265a82477a9c98677afb0402e98d486 head: 586edbac69ebec057acaa9927957683036958dce verdict: safe to merge **Windows / AMD RDNA4 — VALU rounding and min/max tests on `586edba`** Clean merge onto `main` (merge commit `88605f6db0d8a60eb53152259496ede3baa763f5`). `git diff --check` was clean. **Setup** AMD Radeon RX 9060 XT (32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332, Rust 1.100.0 debug, Agility 1.620.2, DXC 1.9.2609.5. **Tested** `cargo test -p xcl --lib gpu_valu_round_and_min_max_f32_i32 -- --test-threads=1 --show-output --nocapture` — 1 passed, 0 failed, 0 ignored, 0 skip notices. **Diff review** The diff adds only the GPU test. It checks integral f32 rounding and ordered floating-point and signed-integer min, max, and median cases against expected per-lane results. **Not tested** The full workspace suite, retail smoke, or another GPU vendor in this run. **AI use** Codex (GPT-6) merged the PR, reviewed the test diff, ran the test, and drafted this report.
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/739:upstream-pr/739'
git switch 'upstream-pr/739'

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