Tests: a machine with no GPU has no hardware adapter to check shaders on #1925
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!1925
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1925/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?
@fiestorra on GitHub · 2026-11-25 01:04 UTC · original
fiestorra:test/hardware-adapter-with-vram→main· +30 −6 · 1 files · 1 commits · merged 2026-11-25 01:12 UTCCI is red on
mainitself, on the same two tests every run, and the fix in42363abdoes not reach themMy pull request failed its check, so I looked at what failed and then at whether
mainfails the same way. It does — run45520251168on42363ab:Both are the hardware-only checks the commit
42363abwas written to skip on a machine without a GPU. They still run there, and the reason is in the shape of the check: it refuses a default adapter whoseDXGI_ADAPTER_FLAG_SOFTWAREbit is set, but on the runner the default adapter is not flagged software — and its device still refuses a wave of 32, which is what the second failure says in so many words. SoHost::new(false)succeeds, the tests believe they are on a GPU, and they take the hardware path.The fix I have (#1943) asks for an adapter that is a GPU by two signs rather than one: not flagged software and with dedicated video memory of its own. WARP and the basic render driver report none, so a runner has no hardware adapter,
Host::new(false)fails with "no hardware adapter", and both tests take the skip they already have. On a machine with a real card nothing changes — the adapter is the first one that has its own memory, which on a laptop with an integrated GPU is the same device DXGI picked before.Verification on this machine (RTX 4090 plus an integrated AMD, both with dedicated memory, session 0):
cargo test -p victory-shader --locked --lib246 passed, 3 ignored; the two tests run and pass there;cargo clippy --workspace --all-targetswith and without--all-featuresclean under-D warnings;rustfmt --checkon the file at one pre-existing hunk, the same asmain.I cannot run the runner itself, so the claim I am making is precise and limited: the failure says the "hardware" device cannot make a wave of 32, and a device with no dedicated video memory is not one of the machines those two checks are for. If the runner does have dedicated memory on a virtual adapter, my check will not skip and the tests will fail again — in that case the honest fix is to make the permute test skip on a refused pipeline whatever the adapter says, and I would rather do that with someone who can see the runner.
The same comment applies to the rest of my open pull requests: their checks are red for this reason, not for their content.
Written with an AI assistant.
@fiestorra on GitHub · 2026-11-25 01:09 UTC · original
The check is green with this change, and it is the one that unblocks the rest of my pull requests
Its own run:
45522997715—checkcompleted/success on the Windows runner. The two tests that fail on every run ofmain(gathers_at_a_level_match_the_hardwareandpermutes_read_the_lane_named_and_zero_from_lanes_left_out) now take their skip, because the test host has no adapter with dedicated video memory to call hardware.That also says something about the diagnosis rather than the symptom: the runner's default adapter is not flagged software, so the check added in
42363abdid not catch it, and the device it produced could not make a wave of 32. Asking for video memory of its own is what separates that machine from a real one.What it means for the queue:
mainis red for this reason, so every pull request based on it is red too — including four of mine (#1914, #1832, #1767, #1630), none of which touches the shader test host. I have stacked those four on top of this branch so their checks can run and go green, and I will rebase them ontomainthe moment this lands. Nothing in them depends on this change; the extra commit is there so a reviewer sees a green check instead of a red one they would have to read the log of.If it is easier the other way round — merge this first and let me rebase — that works too, and it is what I would prefer.
No game data is involved: adapter descriptions, test names and counts.
Written with an AI assistant.