Shader tests: a skipped device says why it was skipped #1290
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1290
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1290/head"
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?
@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 UTCThe 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
@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:Clean diagnostic improvement across all 7 \Host::new\ skip sites.
AI-assisted; synthetic tests only, no game files.
@Calvix2k on GitHub · 2026-11-24 21:18 UTC · original
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.