GPU: say once when the host adapter lacks shader model 6.6 #527
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!527
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-527"
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?
@rustnoob-dev on GitHub · 2026-11-27 09:29 UTC · original
rustnoob-dev:gpu-fallback-warning→a-publier· +39 −4 · 2 files · 1 commits · openWhat
When the host D3D12 device is made, check its shader model once and log an error if it is below 6.6.
Why
create_preferred_device()picks a high-performance adapter that runs shader model 6.6. When no adapter runs it, it falls back to DXGI's default device without checking it. The adapter named byVICTORY_D3D12_ADAPTERis not checked either. On such a device every translated pipeline is refused later, one at a time, and the log never says that the GPU itself is the reason.This adds one line at startup that names the adapter and its shader model, for example:
The run is not stopped, so WARP and CI paths behave as before. It complements #285 (
victory doctor): the check also happens on every run, not only when someone runs the doctor.Changes
victory-gpu/src/host.rs: shader model check after the device is created, next to the existing #168 runtime check; a smallshader_model_text()helper with a unit test.victory-shader/src/emit/host.rs:shader_model()madepubso the runtime reuses it instead of duplicating the query.Testing
cargo check -p victory-gpuandcargo clippy -p victory-gpu -p victory-shader --all-targets -- -D warningspass.@MamaLeVrai on GitHub · 2026-11-27 11:40 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
b39714b:victory-gpu397 passed, 0 failed, 34 ignored;victory-shader303 passed, 0 failed, 4 ignored.AI-assisted (Claude Code); no game data.
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.