Repository navigation
Shader tests: failures name the adapter that ran them - #1138
ayanbarosan wants to merge 2 commits into
Conversation
The VALU and waterfall tests run on D3D12's default adapter, DXGI's first, which on a laptop is often the integrated GPU. A failure said only "hardware", so testers reported the GPU they expected: the v_med3_f32 failures of Marvisak#726 and Marvisak#745 were filed as NVIDIA, but on an Optimus laptop the test fails on the Intel iGPU and passes on the RTX 3050 (Marvisak#726). The labels now carry the adapter's name, as in "hardware (Intel(R) UHD Graphics): v_med3_f32(1.0, 2.0, NaN) = 2". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DoubleD17
left a comment
There was a problem hiding this comment.
On ec69667, both the VALU and waterfall runners keep the loop's hardware or warp prefix and append the device's DXGI adapter name. With VICTORY_WARP=1, Host::new selects WARP for both iterations. If device creation succeeds, the first iteration can therefore report hardware (<WARP adapter name>), even though both ran on WARP. Could the prefix reflect the effective backend when the override is set? I checked the selection and formatting paths by source inspection. I did not run D3D12 or capture the adapter string.
AI-assisted.
With VICTORY_WARP=1, Host::new takes WARP for the hardware run as well, so that run's failures said "hardware (Microsoft Basic Render Driver)" although both runs were on WARP (DoubleD17, in review). Host::backend() reads the backend from the device's adapter: "warp" when it is flagged as software or has the Basic Render Driver's ids (vendor 0x1414, device 0x8c), "hardware" otherwise, followed by the adapter's name. The VALU and waterfall tests label their runs with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ter that ran them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mercuryVM
left a comment
There was a problem hiding this comment.
Tested 2eb4d03 on Windows 11, RTX 5070, MSVC:
cargo test -p victory-shader -- --test-threads=1passes on the head (120 passed, 1 ignored).- Merged into our fork: the workspace and shader tests pass, and clippy is clean both ways.
Naming the adapter from the device's own LUID, rather than from what Host::new was asked for, is the right source. It also catches VICTORY_WARP=1. The fallback to asked when DXGI can't be queried keeps the labels working.
AI-assisted (Claude Code).
|
@DoubleD17 Thanks, you're right: with 2eb4d03 reads the prefix from the device as well. A new A local probe (not pushed) printed this on the laptop from the description:
Thanks also to Zipettte for the RX 7700 XT run, and to mercuryVM for testing 2eb4d03 on an RTX 5070. AI-assisted (Claude Code). |
|
Automated triage for the maintainers. Needs rebase. This PR does not merge cleanly into current The content has not been reviewed yet; it will be once the branch is rebased onto Generated by Claude Code |
The 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, on
mainat ffe310e (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 (v_med3_f32 with NaN returns wrong side on NVIDIA (NVIDIA-specific test failure) #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