Shader tests: a skipped device says why it was skipped #1290

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

@⁠sklsp on GitHub · 2026-11-24 17:10 UTC · original
sklsp:shader-tests/show-device-error → main · +42 −21 · 4 files · 1 commits · merged 2026-11-25 00:22 UTC

The GPU shader tests dropped Host::new's error, so a machine without a usable device printed only no SM 6.6 hardware device; skipped. On Windows 10 without the Agility SDK (#84) the hardware adapter reports SM 6.5 and WARP SM 6.2; the 15 VALU and waterfall tests then fail with neither hardware nor WARP SM 6.6 device available, and nothing points at the runtime.

The seven skip sites (valu_tests.rs, waterfall_tests.rs, diff_tests.rs, emit/mod.rs) now print the error:

no SM 6.6 hardware device (the device supports SM 0x65 only); skipped
no SM 6.6 warp device (the device supports SM 0x62 only); skipped

Test code only; no behaviour change.

Checked on Windows 10 22H2, RTX 3060 + RTX 3090, at ffe310e:

  • cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features: clean
  • cargo test -p victory-shader: 105 passed / 15 failed, the same as before the change (the 15 are the Windows 10 runtime limit, #84), now with the reason printed

🤖 Generated with Claude Code

**@⁠sklsp** on GitHub · 2026-11-24 17:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/1290) `sklsp:shader-tests/show-device-error` → `main` · +42 −21 · 4 files · 1 commits · merged 2026-11-25 00:22 UTC The GPU shader tests dropped `Host::new`'s error, so a machine without a usable device printed only `no SM 6.6 hardware device; skipped`. On Windows 10 without the Agility SDK (#84) the hardware adapter reports SM 6.5 and WARP SM 6.2; the 15 VALU and waterfall tests then fail with `neither hardware nor WARP SM 6.6 device available`, and nothing points at the runtime. The seven skip sites (`valu_tests.rs`, `waterfall_tests.rs`, `diff_tests.rs`, `emit/mod.rs`) now print the error: ``` no SM 6.6 hardware device (the device supports SM 0x65 only); skipped no SM 6.6 warp device (the device supports SM 0x62 only); skipped ``` Test code only; no behaviour change. **Checked** on Windows 10 22H2, RTX 3060 + RTX 3090, at `ffe310e`: - `cargo clippy --workspace --all-targets --locked -- -D warnings`, with and without `--all-features`: clean - `cargo test -p victory-shader`: 105 passed / 15 failed, the same as before the change (the 15 are the Windows 10 runtime limit, #84), now with the reason printed 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The GPU shader tests dropped Host::new's error, so a machine without a
usable device printed only "no SM 6.6 hardware device; skipped". On
Windows 10 without the Agility SDK (#84) the hardware adapter reports
SM 6.5 and WARP SM 6.2; the 15 VALU and waterfall tests then fail with
"neither hardware nor WARP SM 6.6 device available" and nothing says
the runtime is the cause. The seven skip sites now print the error:

    no SM 6.6 hardware device (the device supports SM 0x65 only); skipped
    no SM 6.6 warp device (the device supports SM 0x62 only); skipped

Checked on Windows 10 22H2, RTX 3060 + RTX 3090: both clippy runs of CI
pass; the victory-shader tests give the same 105 passed / 15 failed as
before, now with the reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:26:32 +00:00
github manually merged commit 100de0e97a into gh-pr/1290/base 2026-11-26 04:26:32 +00:00
Author
Owner

@⁠geiyiliyabumo on GitHub · 2026-11-24 17:34 UTC · original

Independent verification of \100de0e\ on Windows 11 / AMD Radeon RX 9060 XT (RDNA4, \gfx1200) / Rust 1.98.1 MSVC:

  • Merge check vs \main\ (\ fe310e): clean
  • \cargo test -p victory-shader --lib valu_tests: 13 passed, 0 failed
  • \cargo clippy -p victory-shader --all-targets -- -D warnings\ (default and --all-features): clean
  • \cargo xtask policy: 154 files ok

Clean diagnostic improvement across all 7 \Host::new\ skip sites.

AI-assisted; synthetic tests only, no game files.

**@⁠geiyiliyabumo** on GitHub · 2026-11-24 17:34 UTC · [original](https://github.com/Marvisak/VIctory/pull/1290#issuecomment-7139408661) Independent verification of \100de0e\ on **Windows 11 / AMD Radeon RX 9060 XT (RDNA4, \gfx1200\) / Rust 1.98.1 MSVC**: - Merge check vs \main\ (\ fe310e\): clean - \cargo test -p victory-shader --lib valu_tests\: **13 passed, 0 failed** - \cargo clippy -p victory-shader --all-targets -- -D warnings\ (default and \--all-features\): clean - \cargo xtask policy\: 154 files ok Clean diagnostic improvement across all 7 \Host::new\ skip sites. *AI-assisted; synthetic tests only, no game files.*
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-24 21:18 UTC · original

Verified head 100de0e on a Windows 10 x64 machine whose system D3D12 runtime tops out at SM 6.5, with no Agility runtime:

no SM 6.6 hardware device (the device supports SM 0x65 only); skipped no SM 6.6 warp device (the device supports SM 0x62 only); skipped

That is exactly the missing reason from #1605: the tests still fail when neither device exists (existing
an > 0 assertion), but the log now says why instead of only "skipped". The message comes from both backends and names the highest shader model the device reports.

cargo test -p victory-shader --locked v_fract_f32_never_returns_one -- --test-threads=1 --nocapture was used to exercise the path.

**@⁠Calvix2k** on GitHub · 2026-11-24 21:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/1290#issuecomment-7144761104) Verified head 100de0e on a Windows 10 x64 machine whose system D3D12 runtime tops out at SM 6.5, with no Agility runtime: ` no SM 6.6 hardware device (the device supports SM 0x65 only); skipped no SM 6.6 warp device (the device supports SM 0x62 only); skipped ` That is exactly the missing reason from #1605: the tests still fail when neither device exists (existing an > 0 assertion), but the log now says why instead of only "skipped". The message comes from both backends and names the highest shader model the device reports. `cargo test -p victory-shader --locked v_fract_f32_never_returns_one -- --test-threads=1 --nocapture` was used to exercise the path.
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1290
No description provided.