GPU tests: skip mesh_dispatch test when no SM 6.6 GPU is available #73

Merged
certified-retart merged 1 commit from upstream-pr/74 into main 2026-11-23 10:29:17 +00:00
certified-retart commented 2026-11-23 00:53:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by certified-retart on 2026-11-23T00:53:18Z.


gpu::recomp::mesh_dispatch::tests::gpu_dispatch_matches_native_wave64_reference checked dxc::location() before compiling, then called runner::dispatch(...).unwrap() without checking runner::adapter().

On a machine without an SM 6.6 D3D12 runtime (for example Windows 10 22H2 build 19045 with inbox D3D12Core.dll 10.0.19041.5794, even with an RTX 5070, or a headless runner), every other recompiler GPU test skips cleanly via runner::skip_test("no GPU") while this test panics:

called `Result::unwrap()` on an `Err` value: "NVIDIA GeForce RTX 5070: no SM 6.6"

This adds the same runner::adapter() check before DXC compilation (matching gpu_ready_wave32() in gpu/recomp/tests.rs) so it prints SKIPPED ...: no GPU and honors XCL_REQUIRE_GPU.

Validation

Windows 10 Pro 10.0.19045, RTX 5070 (XCL_ADAPTER=0), Rust 1.100.0 x86_64-pc-windows-msvc, DXC 1.9.2602.17:

  • Before: cargo test --workspace -- --test-threads=2 failed on gpu_dispatch_matches_native_wave64_reference (no SM 6.6).
  • After: cargo test --workspace -- --test-threads=2 passed (372 passed, 0 failed, 34 ignored, 43 SKIPPED ...: no GPU).
  • XCL_REQUIRE_GPU=mesh cargo test -p xcl --lib gpu_dispatch_matches_native_wave64_reference fails as expected (no GPU, but XCL_REQUIRE_GPU=mesh).
<!-- greyfinch-sync:ivall/xcl:issue:6550052166 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/74). Originally posted by [certified-retart](https://github.com/certified-retart) on 2026-11-23T00:53:18Z. --- `gpu::recomp::mesh_dispatch::tests::gpu_dispatch_matches_native_wave64_reference` checked `dxc::location()` before compiling, then called `runner::dispatch(...).unwrap()` without checking `runner::adapter()`. On a machine without an SM 6.6 D3D12 runtime (for example Windows 10 22H2 build 19045 with inbox `D3D12Core.dll` `10.0.19041.5794`, even with an RTX 5070, or a headless runner), every other recompiler GPU test skips cleanly via `runner::skip_test("no GPU")` while this test panics: ```text called `Result::unwrap()` on an `Err` value: "NVIDIA GeForce RTX 5070: no SM 6.6" ``` This adds the same `runner::adapter()` check before DXC compilation (matching `gpu_ready_wave32()` in `gpu/recomp/tests.rs`) so it prints `SKIPPED ...: no GPU` and honors `XCL_REQUIRE_GPU`. ## Validation Windows 10 Pro `10.0.19045`, RTX 5070 (`XCL_ADAPTER=0`), Rust 1.100.0 `x86_64-pc-windows-msvc`, DXC 1.9.2602.17: - Before: `cargo test --workspace -- --test-threads=2` failed on `gpu_dispatch_matches_native_wave64_reference` (`no SM 6.6`). - After: `cargo test --workspace -- --test-threads=2` passed (`372 passed, 0 failed, 34 ignored`, `43` `SKIPPED ...: no GPU`). - `XCL_REQUIRE_GPU=mesh cargo test -p xcl --lib gpu_dispatch_matches_native_wave64_reference` fails as expected (`no GPU, but XCL_REQUIRE_GPU=mesh`).
upstream-sync closed this pull request 2026-11-24 06:57:02 +00:00
ivall commented 2026-11-24 07:00:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T10:29:29Z.


Merged. Tested on Windows 11 with an RX 9070 (RDNA4): cargo test --workspace green with the retail samples (shader pack, console DLLs, texture archive), also with XCL_SPLIT_WAVE64=1 (the 32-lane split path forced on RDNA). Unicorn Overlord and XDefiant run with this round merged. Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7098054029 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/74#issuecomment-7098054029). Originally posted by [ivall](https://github.com/ivall) on 2026-11-23T10:29:29Z. --- Merged. Tested on Windows 11 with an RX 9070 (RDNA4): `cargo test --workspace` green with the retail samples (shader pack, console DLLs, texture archive), also with `XCL_SPLIT_WAVE64=1` (the 32-lane split path forced on RDNA). Unicorn Overlord and XDefiant run with this round merged. Thanks!
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!73
No description provided.