Shader tests: failures name the adapter that ran them #1138
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!1138
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1138"
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?
@ayanbarosan on GitHub · 2026-11-24 16:07 UTC · original
ayanbarosan:tests/name-the-adapter→main· +58 −4 · 3 files · 2 commits · openThe GPU tests in
victory-shaderrun on D3D12's default adapter, which on a laptop is often the integrated GPU, and a failure only sayshardware. So testers report the GPU they expect: thev_med3_f32failures in #726 and #745 were filed as NVIDIA, but on an Optimus laptop the test fails on the Intel iGPU and passes on the RTX 3050 (#726).Change: the labels of
run_cases(emit/valu_tests.rs) andrun(emit/waterfall_tests.rs) are read from the device (GetAdapterLuid,EnumAdapterByLuid,GetDesc1) by a newHost::backend(). It giveshardwareorwarpfrom the adapter's software flag or the Basic Render Driver's ids, so withVICTORY_WARP=1both runs saywarp, then the adapter's name, whichHost::adapter()gives on its own. A failure now reads:Two commits, 3 files, +58 −4.
Host::newis untouched, and the branch merges cleanly with #233, #439, #1483 and #1487, which also changeemit/host.rs. Related: point 1 of #1132 proposes making the discrete GPU the default test device, which #1487 does. That is independent of this change and fits with it: whichever adapter runs a test, a failure names it.Tested at
2eb4d03, onmainatffe310e(i5-11400H, Intel UHD + RTX 3050 Laptop, Windows 11 build 26300):cargo test --workspace --locked --no-fail-fast: 341 passed, 1 failed, 6 ignored, as on main. The one failure isv_med3_f32_matches_rdna2_with_nanon the Intel UHD (#726), and its message above now names the adapter.cargo test -p victory-shader --locked --lib -- --test-threads=1withVICTORY_WARP=1: 120 passed, 0 failed, 1 ignored. A local probe printedwarp (Microsoft Basic Render Driver)for both runs.cargo clippy --workspace --all-targets --locked -- -D warnings, also with--all-features: clean. rustfmt: clean.No game data used.
🤖 Generated with Claude Code
@Zipettte on GitHub · 2026-11-24 18:01 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
ec69667:cargo test -p victory-shaderpasses, 120 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@ayanbarosan on GitHub · 2026-11-24 20:03 UTC · original
@DoubleD17 Thanks, you're right: with
VICTORY_WARP=1the first run was labeledhardwarealthough both ran on WARP.2eb4d03reads the prefix from the device as well. A newHost::backend()sayswarpwhen the device's adapter is flagged as software or has the Basic Render Driver's ids (vendor 0x1414, device 0x8c, the ids #439'shardware()checks), andhardwareotherwise, followed by the adapter's name. The loop's prefix is used only when the adapter can't be read.Host::newis still untouched.A local probe (not pushed) printed this on the laptop from the description:
VICTORY_WARP=1Host::new(false).backend("hardware")hardware (Intel(R) UHD Graphics)warp (Microsoft Basic Render Driver)Host::new(true).backend("warp")warp (Microsoft Basic Render Driver)warp (Microsoft Basic Render Driver)cargo test -p victory-shader --locked --lib -- --test-threads=1by default: 119 passed, 1 failed, 1 ignored. The failure is #726 on the Intel UHD, with the same message as in the description. WithVICTORY_WARP=1: 120 passed, 0 failed, 1 ignored. clippy (--all-targets, also with--all-features) and rustfmt are clean. The branch still merges cleanly with #233, #439, #1483 and #1487.Thanks also to Zipettte for the RX 7700 XT run, and to mercuryVM for testing
2eb4d03on an RTX 5070.AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 00:37 UTC · original
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-shader/src/emit/host.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.