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

Merged
sklsp merged 1 commit from upstream-pr/1290 into main 2026-11-25 00:22:03 +00:00
sklsp commented 2026-11-24 17:10:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by sklsp on 2026-11-24T17:10:34Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:issue:6587290903 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1290). Originally posted by [sklsp](https://github.com/sklsp) on 2026-11-24T17:10:34Z. --- 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)
geiyiliyabumo commented 2026-11-24 18:05:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T17:34:59Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7139408661 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1290#issuecomment-7139408661). Originally posted by [geiyiliyabumo](https://github.com/geiyiliyabumo) on 2026-11-24T17:34:59Z. --- 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.*
Calvix2k commented 2026-11-24 21:28:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T21:18:42Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144761104 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1290#issuecomment-7144761104). Originally posted by [Calvix2k](https://github.com/Calvix2k) on 2026-11-24T21:18:42Z. --- 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.
upstream-sync closed this pull request 2026-11-25 01:06:09 +00:00
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
Marvisak/VIctory!1290
No description provided.