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

Manually merged
github merged 1 commit from gh-pr/74/head into gh-pr/74/base 2026-11-26 04:08:05 +00:00
Owner

@⁠certified-retart on GitHub · 2026-11-23 00:53 UTC · original
certified-retart:fix/mesh-dispatch-skip-no-gpu → main · +5 −0 · 1 files · 1 commits · merged 2026-11-23 10:29 UTC

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).
**@⁠certified-retart** on GitHub · 2026-11-23 00:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/74) `certified-retart:fix/mesh-dispatch-skip-no-gpu` → `main` · +5 −0 · 1 files · 1 commits · merged 2026-11-23 10:29 UTC `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`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:08:03 +00:00
github manually merged commit a8918b7e00 into gh-pr/74/base 2026-11-26 04:08:05 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 10:29 UTC · original

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!

**@⁠ivall** on GitHub · 2026-11-23 10:29 UTC · [original](https://github.com/xcl-dev/xcl/pull/74#issuecomment-7098054029) 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!
This discussion has been locked. Commenting is limited to contributors.
No description provided.