Tests: integer-to-float conversions on the GPU #649

Merged
acaracargo merged 1 commit from upstream-pr/654 into main 2026-12-02 17:37:32 +00:00
acaracargo commented 2026-11-24 02:54:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by acaracargo on 2026-11-24T02:54:47Z.


Adds GPU coverage for v_cvt_f32_i32, v_cvt_f32_u32, v_cvt_f32_ubyte0..3 and v_cvt_f64_i32 / u32 / f32. Previously, only v_cvt_f32_ubyte1 was covered by a GPU test.

The 16 inputs cover:

  • The boundaries of the i32 and u32 ranges.
  • 2^24 + 1 and the tie at 2^24 + 3, which must round to nearest even.
  • Every byte lane.
  • f32 infinities and NaN for the f64 conversion.

The reference uses Rust's as conversion, which also rounds to nearest even. An f32 denormal is deliberately excluded from v_cvt_f64_f32, since its preservation depends on the denormal mode and this driver flushes it to zero.

#515 covers v_cvt_f16_u16 / i16, which this test does not use.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: gpu_int_to_float_conversions.

Tested

  • NVIDIA GeForce RTX 4060 (32-lane waves only), driver 610.88; Intel Core i5-13400F; Windows 11 Pro 26300; Rust 1.100.0 x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug.
  • cargo test --workspace -- --test-threads=4 on 6d171e3: 685 passed, 0 failed, 41 ignored (main 9ce2070: 684 / 0 / 41).
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64).
  • Removing the (int) cast from v_cvt_f64_i32 or reading the wrong byte for ubyte3 causes the test to fail (checked locally, reverted).

Regression run

  • Test-only change, no runtime regression run.

Not tested

  • AMD GPUs and native wave64; console hardware.

AI use

  • Claude Code (Claude Opus 5.5) wrote the test and the original description and ran the tests and mutation checks. ChatGPT assisted with editing the PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5465198862 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/654). Originally posted by [acaracargo](https://github.com/acaracargo) on 2026-11-24T02:54:47Z. --- Adds GPU coverage for `v_cvt_f32_i32`, `v_cvt_f32_u32`, `v_cvt_f32_ubyte0..3` and `v_cvt_f64_i32` / `u32` / `f32`. Previously, only `v_cvt_f32_ubyte1` was covered by a GPU test. The 16 inputs cover: - The boundaries of the i32 and u32 ranges. - 2^24 + 1 and the tie at 2^24 + 3, which must round to nearest even. - Every byte lane. - f32 infinities and NaN for the f64 conversion. The reference uses Rust's `as` conversion, which also rounds to nearest even. An f32 denormal is deliberately excluded from `v_cvt_f64_f32`, since its preservation depends on the denormal mode and this driver flushes it to zero. #515 covers `v_cvt_f16_u16` / `i16`, which this test does not use. **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs`: `gpu_int_to_float_conversions`. **Tested** - NVIDIA GeForce RTX 4060 (32-lane waves only), driver 610.88; Intel Core i5-13400F; Windows 11 Pro 26300; Rust 1.100.0 `x86_64-pc-windows-msvc`; DXC 1.9.2602.17; debug. - `cargo test --workspace -- --test-threads=4` on `6d171e3`: 685 passed, 0 failed, 41 ignored (`main` `9ce2070`: 684 / 0 / 41). - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64). - Removing the `(int)` cast from `v_cvt_f64_i32` or reading the wrong byte for `ubyte3` causes the test to fail (checked locally, reverted). **Regression run** - Test-only change, no runtime regression run. **Not tested** - AMD GPUs and native wave64; console hardware. **AI use** - Claude Code (Claude Opus 5.5) wrote the test and the original description and ran the tests and mutation checks. ChatGPT assisted with editing the PR description.
MonkeyPython commented 2026-11-24 07:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MonkeyPython on 2026-11-24T03:05:26Z.


AMD / native-wave64 data point (the "Not tested" axis): gpu_int_to_float_conversions passes on an AMD Raphael iGPU (RDNA2, native wave64) and on NVIDIA wave32.

Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB; adapters: AMD Radeon(TM) Graphics (Raphael iGPU, wave64) and RTX 3080 Ti 12 GB (driver 621.01, wave32-only). PR head 6d171e3, release.

Runs (cargo test -p xcl --release --lib gpu_int_to_float_conversions):

  • XCL_ADAPTER=Radeon (selects the iGPU; the selector errors on no match, so a pass means it ran there): 1 passed / 0 failed, 0.25 s.
  • Default adapter (3080 Ti): 1 passed / 0 failed, 0.24 s.

The cvt rounding paths agree on native wave64 and on the wave32 split path.

Not tested: discrete AMD GPUs, other titles.

AI use: Gentle Shell (Pi coding agent), model qwen4-max: ran the tests and wrote this report from their logs; a human reviews it before posting. No code changes.

<!-- greyfinch-sync:ivall/xcl:comment:7120761256 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/654#issuecomment-7120761256). Originally posted by [MonkeyPython](https://github.com/MonkeyPython) on 2026-11-24T03:05:26Z. --- AMD / native-wave64 data point (the "Not tested" axis): `gpu_int_to_float_conversions` passes on an AMD Raphael iGPU (RDNA2, native wave64) and on NVIDIA wave32. **Setup:** Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB; adapters: AMD Radeon(TM) Graphics (Raphael iGPU, wave64) and RTX 3080 Ti 12 GB (driver 621.01, wave32-only). PR head `6d171e3`, release. **Runs (`cargo test -p xcl --release --lib gpu_int_to_float_conversions`):** - `XCL_ADAPTER=Radeon` (selects the iGPU; the selector errors on no match, so a pass means it ran there): **1 passed / 0 failed**, 0.25 s. - Default adapter (3080 Ti): **1 passed / 0 failed**, 0.24 s. The cvt rounding paths agree on native wave64 and on the wave32 split path. **Not tested:** discrete AMD GPUs, other titles. **AI use:** Gentle Shell (Pi coding agent), model qwen4-max: ran the tests and wrote this report from their logs; a human reviews it before posting. No code changes.
MesshM commented 2026-11-24 07:05:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T03:18:21Z.


Test run of 6d171e32577340e3224fc5d7803d3f673aa9232f on AMD RDNA4 (native wave64). I merged it onto current main 63cdc25 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), 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: 693 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 653 passed, 0 failed, 21 ignored
  • 0 SKIPPED; gpu_int_to_float_conversions passes.

Review: i32 / u32 → f32 round to nearest even, v_cvt_f32_ubyteN take byte N, the f64 conversions are exact, and NaN stays NaN through v_cvt_f64_f32; the references follow the ISA. This adds RDNA4 next to the RDNA2 iGPU result above.

Not tested: no retail title (not needed for a test-only change), 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:7120964480 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/654#issuecomment-7120964480). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T03:18:21Z. --- Test run of `6d171e32577340e3224fc5d7803d3f673aa9232f` on AMD RDNA4 (native wave64). I merged it onto current `main` `63cdc25` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), 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: **693 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 653 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `gpu_int_to_float_conversions` passes. **Review:** i32 / u32 → f32 round to nearest even, `v_cvt_f32_ubyteN` take byte N, the f64 conversions are exact, and NaN stays NaN through `v_cvt_f64_f32`; the references follow the ISA. This adds RDNA4 next to the RDNA2 iGPU result above. **Not tested:** no retail title (not needed for a test-only change), 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.
lordon1a commented 2026-11-24 07:05:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lordon1a on 2026-11-24T03:38:07Z.


Independent GPU test report on 6d171e3:

Tested

  • Hardware: NVIDIA GeForce RTX 3070 Ti Laptop GPU (driver 616.64, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200), rustc 1.100.0 (x86_64-pc-windows-gnullvm), debug build, DXC 1.9.2609.5 (01b62ad4)
  • Command: cargo test -p xcl --lib gpu_int_to_float_conversions -- --nocapture
  • Result: 1 passed, 0 failed, 0 ignored in 0.76s (gpu::recomp::tests::gpu_int_to_float_conversions ok)

Not tested

  • AMD / wave64, Intel GPU, retail title

AI use

  • Antigravity (Google DeepMind agent) — fetched 6d171e3 in a detached worktree, audited the diff, ran the GPU test, and posted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7121279728 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/654#issuecomment-7121279728). Originally posted by [lordon1a](https://github.com/lordon1a) on 2026-11-24T03:38:07Z. --- Independent GPU test report on `6d171e3`: **Tested** - Hardware: NVIDIA GeForce RTX 3070 Ti Laptop GPU (driver `616.64`, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200), `rustc 1.100.0` (`x86_64-pc-windows-gnullvm`), debug build, DXC `1.9.2609.5` (`01b62ad4`) - Command: `cargo test -p xcl --lib gpu_int_to_float_conversions -- --nocapture` - Result: **1 passed, 0 failed, 0 ignored** in `0.76s` (`gpu::recomp::tests::gpu_int_to_float_conversions` ok) **Not tested** - AMD / wave64, Intel GPU, retail title **AI use** - Antigravity (Google DeepMind agent) — fetched `6d171e3` in a detached worktree, audited the diff, ran the GPU test, and posted this report.
JJAutoCompare commented 2026-11-25 07:05:34 +00:00 (Migrated from github.com)

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


Empirical test report (6d171e32)

Hardware / environment

  • PR head 6d171e32577340e3224fc5d7803d3f673aa9232f.
  • Intel Arc A770 (XCL_ADAPTER=A770), AMD Ryzen 7 3800X 8-Core Processor, Windows NT 10.0.26200.0 (build 26200).
  • Rust 1.100.0 (0ef1bc386 2026-11-09), x86_64-pc-windows-msvc. DXC 1.9.2609.5 (01b62ad4), DXIL 1.9.2609.5. Unoptimized Cargo test profile with incremental compilation and debug info disabled.

Commands and results

  • cargo test -p xcl --lib --no-run (outside the Arc lock) built the library test executable and exited 0. This step only compiled the tests.
  • cmd.exe /d /c "$testExe gpu::recomp::tests::gpu_int_to_float_conversions --exact --nocapture --test-threads=1 > $testLog 2>&1" ran the Cargo-built executable inside Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. The wrapper acquired and released the Arc lock and returned the test's exit code 101.
  • Focused run: 0 passed, 1 failed, 0 ignored, 0 skipped, 665 filtered out. Skips were counted from case-sensitive lines beginning with SKIPPED in the combined test output.

Observed behavior

The recompiler runner reported CreateComputePipelineState: The parameter is incorrect. (0x80070057). The test panicked when it unwrapped the runner error, before it could compare the GPU conversion outputs with Rust's reference values. This run produced no conversion correctness result.

Not tested

Full GPU workspace suite and game smoke runs omitted.

AI use

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

<!-- greyfinch-sync:ivall/xcl:comment:7154857995 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/654#issuecomment-7154857995). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:30:16Z. --- ### Empirical test report (6d171e32) **Hardware / environment** - PR head `6d171e32577340e3224fc5d7803d3f673aa9232f`. - Intel Arc A770 (`XCL_ADAPTER=A770`), AMD Ryzen 7 3800X 8-Core Processor, Windows NT `10.0.26200.0` (build 26200). - Rust `1.100.0 (0ef1bc386 2026-11-09)`, `x86_64-pc-windows-msvc`. DXC `1.9.2609.5` (`01b62ad4`), DXIL `1.9.2609.5`. Unoptimized Cargo test profile with incremental compilation and debug info disabled. **Commands and results** - `cargo test -p xcl --lib --no-run` (outside the Arc lock) built the library test executable and exited `0`. This step only compiled the tests. - `cmd.exe /d /c "$testExe gpu::recomp::tests::gpu_int_to_float_conversions --exact --nocapture --test-threads=1 > $testLog 2>&1"` ran the Cargo-built executable inside `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`. The wrapper acquired and released the Arc lock and returned the test's exit code `101`. - Focused run: 0 passed, 1 failed, 0 ignored, 0 skipped, 665 filtered out. Skips were counted from case-sensitive lines beginning with `SKIPPED ` in the combined test output. **Observed behavior** The recompiler runner reported `CreateComputePipelineState: The parameter is incorrect. (0x80070057)`. The test panicked when it unwrapped the runner error, before it could compare the GPU conversion outputs with Rust's reference values. This run produced no conversion correctness result. **Not tested** Full GPU workspace suite and game smoke runs omitted. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr654-focused.log and published.
DavidM1911 commented 2026-11-25 13:05:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T12:31:33Z.


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:7162492252 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/654#issuecomment-7162492252). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T12:31:33Z. --- 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:42:35 +00:00 (Migrated from github.com)

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


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:7252641343 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/654#issuecomment-7252641343). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:42:35Z. --- 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.
BBareth commented 2026-11-30 13:24:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T13:24:38Z.


merge-check claim
head: 6d171e3257

<!-- greyfinch-sync:ivall/xcl:comment:7279804357 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/654#issuecomment-7279804357). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T13:24:38Z. --- merge-check claim head: 6d171e32577340e3224fc5d7803d3f673aa9232f
BBareth commented 2026-11-30 13:36:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T13:36:33Z.


merge-check
base: 9dfbe3ea66
head: 6d171e3257
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::recomp::tests::gpu_int_to_float_conversions passed and ran on the GPU here (no new SKIPPED line).
review: no blocking finding; one new test in one test file, no change outside tests. It runs nine conversions (i32 / u32 to f32, the four ubyte ones, i32 / u32 / f32 to f64) over 16 inputs with ties, range ends, infinities and a NaN, and compares with Rust's as. It leaves out subnormal f32 inputs of v_cvt_f64_f32 (the comment says the driver flushes them) and accepts any NaN there; both are stated in the test.
performance: none at run time; one more GPU test in the suite.
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:7280090758 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/654#issuecomment-7280090758). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T13:36:33Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: 6d171e32577340e3224fc5d7803d3f673aa9232f 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::recomp::tests::gpu_int_to_float_conversions` passed and ran on the GPU here (no new SKIPPED line). review: no blocking finding; one new test in one test file, no change outside tests. It runs nine conversions (i32 / u32 to f32, the four ubyte ones, i32 / u32 / f32 to f64) over 16 inputs with ties, range ends, infinities and a NaN, and compares with Rust's `as`. It leaves out subnormal f32 inputs of `v_cvt_f64_f32` (the comment says the driver flushes them) and accepts any NaN there; both are stated in the test. performance: none at run time; one more GPU test in the suite. 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.
SzczepanGrela commented 2026-11-30 14:04:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SzczepanGrela on 2026-11-30T14:04:07Z.


merge-check
base: 9dfbe3ea66
head: 6d171e3257
merge: clean; staged tree 8c1ffad26d515b0d848429b638a92df0a58bb8a2.
build: cargo test -p xcl --lib --release --target x86_64-pc-windows-gnu --offline --locked -j 3 --no-run --message-format=json-render-diagnostics -> ok. Tier 0, test-only diff.
tests: Wine <unit.exe> gpu::recomp::tests::gpu_int_to_float_conversions --exact --nocapture --test-threads=1, in separate processes with XCL_DIRECT_DXIL=0 and =1 -> 1 passed, 0 failed, 0 ignored, 0 SKIPPED each. XCL_REQUIRE_GPU=wave64, XCL_NETWORK=0; private caches. Full workspace suite not rerun for this Tier 0 check.
review: Read the entire 58-line addition and current runner path. One new test, no production/build/dependency change. Original inputs and assertions unchanged. Both HLSL/DXC and direct DXIL pass on AMD. The test checks the first 16 lanes only; it explicitly excludes f32-subnormal-to-f64 comparison and accepts any NaN for that conversion. Those limits are preserved, not counted as coverage.
performance: No runtime cost outside tests. No timing or FPS claim.
verdict: safe to merge: no blocking finding in this Tier 0 test-only change; the targeted test passes through both backends on AMD/Wine.
hardware / tool and model: RX 9070 16 GB, RADV GFX1201 / Mesa 26.3.1-arch3.5; Ryzen 7 7700; CachyOS 7.3.6-3-cachyos, GE-Proton11-12 / Wine 11.0 Staging, vkd3d-proton 8293130ebe370b1+; Rust 1.97.1, Windows GNU release binaries; DXC/DXIL 1.9.2602.17. Codex, GPT-6 (exact serving variant not exposed).

Not tested

Native Windows/MSVC, other adapters, the full workspace suite, wave32/split-wave64 configurations, upper-lane numerical assertions, retail titles, scripts/smoke.ps1, or timing. XCL_SAMPLE_* unset.

AI use

Codex (GPT-6, exact serving variant not exposed) reviewed the diff, ran the merged test without edits, verified source/binary provenance and drafted this owner-authorized report.

<!-- greyfinch-sync:ivall/xcl:comment:7280784283 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/654#issuecomment-7280784283). Originally posted by [SzczepanGrela](https://github.com/SzczepanGrela) on 2026-11-30T14:04:07Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: 6d171e32577340e3224fc5d7803d3f673aa9232f merge: clean; staged tree 8c1ffad26d515b0d848429b638a92df0a58bb8a2. build: cargo test -p xcl --lib --release --target x86_64-pc-windows-gnu --offline --locked -j 3 --no-run --message-format=json-render-diagnostics -> ok. Tier 0, test-only diff. tests: Wine <unit.exe> gpu::recomp::tests::gpu_int_to_float_conversions --exact --nocapture --test-threads=1, in separate processes with XCL_DIRECT_DXIL=0 and =1 -> 1 passed, 0 failed, 0 ignored, 0 SKIPPED each. XCL_REQUIRE_GPU=wave64, XCL_NETWORK=0; private caches. Full workspace suite not rerun for this Tier 0 check. review: Read the entire 58-line addition and current runner path. One new test, no production/build/dependency change. Original inputs and assertions unchanged. Both HLSL/DXC and direct DXIL pass on AMD. The test checks the first 16 lanes only; it explicitly excludes f32-subnormal-to-f64 comparison and accepts any NaN for that conversion. Those limits are preserved, not counted as coverage. performance: No runtime cost outside tests. No timing or FPS claim. verdict: safe to merge: no blocking finding in this Tier 0 test-only change; the targeted test passes through both backends on AMD/Wine. hardware / tool and model: RX 9070 16 GB, RADV GFX1201 / Mesa 26.3.1-arch3.5; Ryzen 7 7700; CachyOS 7.3.6-3-cachyos, GE-Proton11-12 / Wine 11.0 Staging, vkd3d-proton 8293130ebe370b1+; Rust 1.97.1, Windows GNU release binaries; DXC/DXIL 1.9.2602.17. Codex, GPT-6 (exact serving variant not exposed). **Not tested** Native Windows/MSVC, other adapters, the full workspace suite, wave32/split-wave64 configurations, upper-lane numerical assertions, retail titles, `scripts/smoke.ps1`, or timing. `XCL_SAMPLE_*` unset. **AI use** Codex (GPT-6, exact serving variant not exposed) reviewed the diff, ran the merged test without edits, verified source/binary provenance and drafted this owner-authorized report.
Foniass commented 2026-12-01 03:53:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:53:42Z.


Triage (#1607) – head 6d171e3

Main has no dedicated GPU test for integer-to-float conversions: V_CVT_F32_U32 and V_CVT_F32_UBYTE1 only appear as helpers in other tests. #639 (same author) tests the opposite direction, float to int, and does not overlap. No problems found in the diff: the f64-from-f32 check skips denormals and accepts any NaN, which is right.
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:7300170765 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/654#issuecomment-7300170765). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:53:42Z. --- **Triage (#1607)** – head 6d171e3 Main has no dedicated GPU test for integer-to-float conversions: `V_CVT_F32_U32` and `V_CVT_F32_UBYTE1` only appear as helpers in other tests. #639 (same author) tests the opposite direction, float to int, and does not overlap. No problems found in the diff: the f64-from-f32 check skips denormals and accepts any NaN, which is right. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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!649
No description provided.