Shader tests: skip the GPU suites a device cannot run #1991
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!1991
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1991"
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?
@Calvix2k on GitHub · 2026-11-25 02:28 UTC · original
Calvix2k:codex/shader-tests-skip-1829→main· +98 −28 · 10 files · 3 commits · openPart of #1829.
Problem
The GPU probe suites fail on a host that cannot run what they ask for, instead of skipping like the rest of the crate does. Three separate limits, all seen on real reports:
semantics_tests::checkasserted!hosts.is_empty(), and therun_cases-style helpers invalu_tests,stride_tests,memory_tests,bvh_tests,diff_tests,waterfall_testsandsynthetic_testsended inassert!(ran > 0, "neither hardware nor WARP SM 6.6 device available")after already printing "skipped" per device. My Windows 10 host is one of these: the RX 7800 XT reports SM 6.5 and WARP SM 6.2, socargo test -p victory-shader --libwas 75 failed on a cleanmain.synthetic_tests::permutes_read_the_lane_named…asserted that the hardware pipeline for a wave of 32 must build, while WARP and Intel Xe-LP report 4/16 lanes (#1829) and correctly refuse it.Change
emit/host.rs:Host::wave32()readsD3D12_FEATURE_DATA_D3D12_OPTIONS1(WaveLaneCountMin..=WaveLaneCountMaxcovers 32).emit/synthetic_tests.rs: skip when the device cannot run a wave of 32; if it claims 32 lanes and the pipeline still fails, the test still panics, so this does not hide a real pipeline regression.emit/{semantics,valu,stride,memory,bvh,diff,waterfall,synthetic}_tests.rs: the "no device" asserts become skips, matching theeprintln!("… skipped")convention the same helpers already use per device.Verification
cargo test -p victory-shader --libon the RX 7800 XT / Windows 10 19045 host:main940d32fcargo clippy -p victory-shader --all-targets -- -D warningsclean,cargo xtask policy9 files ok.CI has an SM 6.6 device (its runs of this branch show the suites executing, not skipping), so nothing is lost where the features exist; the 5 arithmetic differences from #1829's Intel report are unchanged and untouched by this PR.
@DesertGamer on GitHub · 2026-11-25 02:39 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@upipibi on GitHub · 2026-11-25 03:00 UTC · original
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at
02aedf4.victory-shader: 244 passed, 3 failed, 3 ignored. The 3 are #1744's NVIDIA failures onmain(the twostride_testsheap-buffer reads andgathers_at_a_level_match_the_hardware).victory-gpu: 141 passed, 2 failed, with only the two NVIDIA heap-cap failuresmainalso has (dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views). Same asmainon this hardware. Not run: a title.AI-assisted (Claude Code).
@jeremygold02 on GitHub · 2026-11-25 03:38 UTC · original
Triage verdict — Keep capability skips, distinguish them from setup failures (
02aedf4)Evidence
Host::newalso returns errors from factory enumeration, device creation, and feature-query calls. For example,semantics_tests::checkdrops all those errors through.ok()and now returns a passing empty result when no host starts.Checks and limits
Next step
This verification was AI-assisted.
@Marvisak on GitHub · 2026-11-25 08:27 UTC · original · edited 2026-11-25 16:45 UTC
Automated triage for the maintainers.
Merge candidate. Re-reviewed at
9f53576, a rebase onto currentmainthat merges cleanly. Instride_tests.rs,main's new D16 tests are kept, and the skip pattern is applied only to the tests the PR touches.What it does:
crates/victory-shader/src/emit/no longer assert that a device ran. They call the newhost::no_device(test-only), which skips locally and panics whenCIis set. So a runner that loses SM 6.6 still fails instead of passing silently.semantics_tests::checknow keeps eachHost::newerror and includes it in that message. This covers the setup-error concern raised in an earlier comment.Host::wave32()reports that it cannot run 32-lane waves (fromD3D12_OPTIONS1WaveLaneCountMin/Max). A device that claims 32 lanes but refuses the pipeline now fails instead of being skipped.wave32()sits in thehostmodule, which is built only for tests or thehostfeature, so it adds no dead code to normal builds.CI: passing (
check).Generated by Claude Code
@Calvix2k on GitHub · 2026-11-25 16:39 UTC · original
Rebased onto
main 67e8ae1(9f53576). The only conflict wasstride_tests.rs, wheremainadded the D16 tests right after the clamp test: kept those tests and applied the skip pattern to the test the PR touches.Host::wave32()is unchanged.Compiles and clippy
-D warningsclean. KainanP's Intel table is the confirmation of the intent:permutebecomesno wave of 32 on this device; skippedinstead ofno pipeline. The PR is mergeable again.@catminou4 on GitHub · 2026-11-25 02:56 UTC · original · approved these changes
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main
940d32f69b,cargo test -p victory-shader --locked.144 passed / 0 failed / 2 ignored. GPU test suites skip on devices that can't run them — test-harness capability gating across 9 files; same cluster as #1911/#1919/#1925 (those conflict with main).
@fuzeofficlal on GitHub · 2026-11-26 19:29 UTC · original · requested changes
Tested locally merged onto
origin/main(63bcca43, Windows 11 x64, Rust 1.98.1 MSVC, RTX 5090 & WARP):VICTORY_WARP=0:emit::synthetic_tests::permutes(2 passed),emit::crosslane_tests::(5 passed),emit::waterfall_tests::(5 passed),emit::bvh_tests::(14 passed),emit::tests::(17 passed),emit::memory_tests::skipping pre-existingheap_direct_texture_reads_mark_their_heap_indexcrash (4 passed)VICTORY_WARP=1:emit::synthetic_tests::permutes— 1 passed, 1 FAILED (emit::synthetic_tests::permutes_mask_high_address_bits_and_divergent_branchespanicked atcrates/victory-shader/src/emit/synthetic_tests.rs:416:13: hardware: no pipeline for a wave of 32) (remaining checked WARP suites:crosslane_tests5/5,waterfall_tests5/5,bvh_tests14/14,emit::tests17/17,memory_tests5/5)cargo clippy --locked -p victory-shader --all-targets -- -D warnings(default and--all-features) — 0 warningscargo xtask policy— ok (191 files ok)Blocking issue
run_permute_cs(crates/victory-shader/src/emit/synthetic_tests.rs:415-419) still uses the unguardedassert!(warp || wave64, "{label}: no pipeline for a wave of 32")check instead ofif !host.wave32(), unlikepermutes_read_the_lane_named_and_zero_from_lanes_left_outright above it (349-355). On any Wave32-incapable primary adapter (and underVICTORY_WARP=1),permutes_mask_high_address_bits_and_divergent_branchesstill panics instead of skipping.Additional notes
Host::wave32()(crates/victory-shader/src/emit/host.rs:218-230) checksWaveLaneCountMin <= 32 && 32 <= WaveLaneCountMaxwithout checkingoptions.WaveOps.as_bool().permutes_read_the_lane_named_and_zero_from_lanes_left_out(synthetic_tests.rs:341-370) has nono_devicezero-run guard, so it can pass silently even withCIset if neither adapter runs.semantics_tests::check(semantics_tests.rs:551-562) overlaps with #2225'sHost::test_backends()loop.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.