Shader tests: skip the GPU suites a device cannot run #1989
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-25T02:28:45Z.
Part 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.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:56:51Z.
Review: APPROVED
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).
Imported from Marvisak/VIctory. Originally posted by DesertGamer on 2026-11-25T02:39:25Z.
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.
Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-25T03:00:23Z.
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).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T03:38:19Z.
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T08:27:10Z.
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
upstream-sync referenced this pull request2026-11-25 11:05:06 +00:00
upstream-sync referenced this pull request2026-11-25 13:02:57 +00:00
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-25T16:39:05Z.
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.Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T19:29:48Z.
Review: CHANGES_REQUESTED
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.Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T17:22:39Z.
I checked
9f53576with the current #3593 head1dbf4f4on Windows 10 build 19045. The two heads merge cleanly.constant_compares_run63bcca4, localno SM 6.6 devicepanicCI=1CI=1On app-local WARP the wave32 and wave64 scalar-join tests from #3593 also executed and passed. All three tests passed with each D3D12 debug-layer setting, with zero skips. This is a local
CI=1check of the test behavior. The actual Windows CI for #3593 is green on its own head. #3593 Windows CIAI-assisted with OpenAI Codex. Synthetic tests only.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.