Shader tests: a skipped device says why it was skipped #1290
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1290"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 onlyno 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 withneither 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: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: cleancargo 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
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:Clean diagnostic improvement across all 7 \Host::new\ skip sites.
AI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T21:18:42Z.
Verified head
100de0eon 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); skippedThat 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 --nocapturewas used to exercise the path.