Shader tests: the runner's Basic Render Driver counts as software, which its flags don't say #1919
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!1919
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1919/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?
@BastienRodz on GitHub · 2026-11-25 00:56 UTC · original
BastienRodz:shader-tests/basic-render-driver→main· +5 −1 · 1 files · 1 commits · closed without mergingWhat's wrong
42363abmakes the shader test host refuse a software default adapter, so that hardware-only checks don't run on WARP. It checks onlyDXGI_ADAPTER_FLAG_SOFTWARE:GitHub's Windows runner exposes the Microsoft Basic Render Driver (vendor
0x1414, device0x8c), which is WARP but doesn't set that flag. CI onmainat42363abstill fails the same two tests (https://github.com/Marvisak/VIctory/actions/runs/45520251168):emit::synthetic_tests::gathers_at_a_level_match_the_hardware:hardware: lane 4 against its gather, left[66.0, 67.0, 35.0, 34.0], right[65.0, 66.0, 34.0, 33.0];emit::synthetic_tests::permutes_read_the_lane_named_and_zero_from_lanes_left_out.Every open PR's CI is red because of them.
@imjustprism's probe on the runner shows the cause directly: adapter 0 is
"Microsoft Basic Render Driver" vendor 0x1414 device 0x8c flags 0x0, adapter 1 is the same driver withflags 0x2(the oneEnumWarpAdapterreturns), andD3D12CreateDevice(None)takes adapter 0. Microsoft's DXGI overview ("New info about enumerating adapters for Windows 8") describes this case: with no working display driver, the primary adapter is the Basic Render Driver (0x1414 / 0x8c), with outputs and withoutDXGI_ADAPTER_FLAG_SOFTWARE.What the fix does
Host::new(false)also refuses the adapter when it is the Basic Render Driver by its ids (VendorId == 0x1414 && DeviceId == 0x8c), the check #1752 used. One condition incrates/victory-shader/src/emit/host.rs. Real hardware is unaffected.Tests
On GitHub's
windows-latestwith the upstream CI's commands (clippy-D warningswith and without--all-features, thencargo test --workspace --locked), everything passes, andvictory-shaderhas 246 passed and 0 failed, both tests included: https://github.com/BastienRodz/VIctory/actions/runs/45521523469No game data used. AI-assisted with Claude Code.
🤖 Generated with Claude Code
@imjustprism on GitHub · 2026-11-25 01:06 UTC · original
i was about to open the same fix and found this one first, so here is what i measured instead. a probe test on github's
windows-latestrunner printed:so the runner lists it twice and the default one has no software flag, which is why
42363ablet it through. microsoft's dxgi overview ("new info about enumerating adapters for windows 8") gives the 0x1414 / 0x8c identity and describes this case: with no working display driver the primary adapter is the basic render driver, with outputs and withoutDXGI_ADAPTER_FLAG_SOFTWARE.the same check (flag, or that vendor and device) on top of
42363abran the full workflow green on my fork's runner, 702 passed, bothgathers_at_a_level_match_the_hardwareandpermutes_read_the_lane_named_and_zero_from_lanes_left_outok: https://github.com/imjustprism/VIctory/actions/runs/45522777941if unit tests for the check are wanted (basic render driver without the flag, flagged adapter, a gpu, microsoft's vendor with another device), i have them on
imjustprism:tests/basic-render-default-adapterand can send them after this lands.@BastienRodz on GitHub · 2026-11-25 01:08 UTC · original
Thanks, both. @imjustprism, your probe and the DXGI doc reference are in the description now: they show why the flag alone can't catch it. Your unit tests for the check would be a good follow-up once this lands. @WhiteAssassins: I kept the condition inline to keep the diff to one condition. If the maintainer prefers a named
is_software(&DXGI_ADAPTER_DESC1)that imjustprism's tests can target, I'll change it.@BastienRodz on GitHub · 2026-11-25 01:14 UTC · original
Superseded by
ccfb029onmain: it picks the first adapter that isn't flagged software and has dedicated video memory, which leaves out the runner's Basic Render Driver as well. Thanks to imjustprism and WhiteAssassins for the probe and the review.Pull request closed