Tests: check v_movrelsd_b32, v_movrelsd_2_b32 and v_movreld_b32 on the GPU #1158

Closed
mynzjerko wants to merge 1 commit from upstream-pr/1167 into main
mynzjerko commented 2026-11-24 12:47:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mynzjerko on 2026-11-24T12:47:37Z.


Add GPU test coverage for v_movrelsd_b32, v_movrelsd_2_b32, and non-VGPR v_movreld_b32 sources in both wave64 and wave32.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: add gpu_movrelsd_and_movrel_b32 covering ENC_VOP1 and ENC_VOP3 encodings, dynamic M0 indexing and 10-bit M0 masking, overlapping source/destination ranges, partial EXEC masking, and v_movreld_b32 with SGPR and inline-literal sources.

Tested

  • AMD Radeon RX 9070 (RDNA4, native wave64, driver 32.0.32029.2010), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300, rustc 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17, debug build
  • cargo test -p xcl --lib -- gpu_movrelsd_and_movrel_b32 --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (0 SKIPPED)
  • cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored (xcl --lib: 699 passed, 0 failed, 21 ignored; SKIPPED GPU tests: 0)

Not tested

  • NVIDIA / Intel GPUs, Linux / Wine, release build, retail titles (scripts/smoke.ps1; tests-only change)

AI use

  • Google Antigravity (Gemini 4 Neon) wrote the test, ran the builds and test suite locally, and drafted this description.
<!-- greyfinch-sync:ivall/xcl:issue:6582122579 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1167). Originally posted by [mynzjerko](https://github.com/mynzjerko) on 2026-11-24T12:47:37Z. --- Add GPU test coverage for `v_movrelsd_b32`, `v_movrelsd_2_b32`, and non-VGPR `v_movreld_b32` sources in both `wave64` and `wave32`. **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs`: add `gpu_movrelsd_and_movrel_b32` covering `ENC_VOP1` and `ENC_VOP3` encodings, dynamic `M0` indexing and 10-bit `M0` masking, overlapping source/destination ranges, partial `EXEC` masking, and `v_movreld_b32` with SGPR and inline-literal sources. **Tested** - AMD Radeon RX 9070 (RDNA4, native wave64, driver `32.0.32029.2010`), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300, `rustc 1.100.0` (`stable-x86_64-pc-windows-msvc`), DXC `1.9.2602.17`, debug build - `cargo test -p xcl --lib -- gpu_movrelsd_and_movrel_b32 --nocapture --test-threads=1`: 1 passed, 0 failed, 0 ignored (`0 SKIPPED`) - `cargo test --workspace -- --test-threads=4`: 742 passed, 0 failed, 41 ignored (`xcl --lib`: 699 passed, 0 failed, 21 ignored; `SKIPPED` GPU tests: 0) **Not tested** - NVIDIA / Intel GPUs, Linux / Wine, release build, retail titles (`scripts/smoke.ps1`; tests-only change) **AI use** - Google Antigravity (Gemini 4 Neon) wrote the test, ran the builds and test suite locally, and drafted this description.
fromthemoonx commented 2026-11-24 14:06:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T13:13:01Z.


NVIDIA (32-lane) run, since Not tested lists NVIDIA. On this card gpu_waves runs the test as wave32 and as split wave64.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (32-lane waves only), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools installed; rustc 1.100.0 stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug

  • Exact head 09865b2fde86c77cd2b29ddfa1dfd92e57374204, which is on current main 47efa2e (so also the merged result): cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.

  • gpu_movrelsd_and_movrel_b32 alone, 10 runs: 10 of 10 passed

  • It catches broken translations that the existing test misses (local edits to emit.rs, reverted after; each run together with the existing gpu_packed_math_dots_movrel):

    • v_movrelsd_b32 without its write offset ((Some(m0), None)): the new test fails (wave32 lane 0 v_movrelsd_b32 VOP1), and gpu_packed_math_dots_movrel passes
    • v_movrelsd_2_b32 with the two M0 fields swapped: the new test fails (wave32 lane 0 v_movrelsd_2_b32 VOP3 M0-masked), and gpu_packed_math_dots_movrel passes

    So before this PR, neither mistake would have been caught by a test.

Not tested

  • Native wave64 (32-lane card); release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the build, tests and the two local mutations on the machine above and wrote this report from the output.
<!-- greyfinch-sync:ivall/xcl:comment:7132513005 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1167#issuecomment-7132513005). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-24T13:13:01Z. --- NVIDIA (32-lane) run, since **Not tested** lists NVIDIA. On this card `gpu_waves` runs the test as wave32 and as split wave64. **Tested** - NVIDIA GeForce RTX 3060 12 GB (32-lane waves only), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools installed; rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; DXC 1.9.2602.17; debug - **Exact head `09865b2fde86c77cd2b29ddfa1dfd92e57374204`**, which is on current `main` `47efa2e` (so also the merged result): `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **742 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - `gpu_movrelsd_and_movrel_b32` alone, 10 runs: **10 of 10 passed** - **It catches broken translations that the existing test misses** (local edits to `emit.rs`, reverted after; each run together with the existing `gpu_packed_math_dots_movrel`): - `v_movrelsd_b32` without its write offset (`(Some(m0), None)`): the new test fails (`wave32 lane 0 v_movrelsd_b32 VOP1`), and `gpu_packed_math_dots_movrel` **passes** - `v_movrelsd_2_b32` with the two M0 fields swapped: the new test fails (`wave32 lane 0 v_movrelsd_2_b32 VOP3 M0-masked`), and `gpu_packed_math_dots_movrel` **passes** So before this PR, neither mistake would have been caught by a test. **Not tested** - Native wave64 (32-lane card); release build. **AI use** - Claude Code (Claude Opus 5.5) ran the build, tests and the two local mutations on the machine above and wrote this report from the output.
JoaoPauluu commented 2026-11-24 14:06:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T13:45:20Z.


A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler.

Tested

  • RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. 09865b2 as it is (based on 47efa2e), no uncommitted changes. The lib test binary runs under Wine.
  • gpu::recomp::tests::gpu_movrelsd_and_movrel_b32 (--exact, one process): ok, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s.

Not tested

  • the rest of the suite on this head; native Windows; AMD / native wave64.

AI use

  • Claude Code (Claude Opus 5.5) built the head, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
<!-- greyfinch-sync:ivall/xcl:comment:7133288293 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1167#issuecomment-7133288293). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-24T13:45:20Z. --- A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler. **Tested** - RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `09865b2` as it is (based on `47efa2e`), no uncommitted changes. The lib test binary runs under Wine. - `gpu::recomp::tests::gpu_movrelsd_and_movrel_b32` (`--exact`, one process): **ok**, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s. **Not tested** - the rest of the suite on this head; native Windows; AMD / native wave64. **AI use** - Claude Code (Claude Opus 5.5) built the head, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
upstream-sync closed this pull request 2026-11-25 00:07:14 +00:00

Pull request closed

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!1158
No description provided.