Play: a shader-model probe with no answer on Windows 11 starts as before, without fetching the Agility SDK #3311
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3311
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3311"
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?
@ShalakZ on GitHub · 2026-11-29 21:36 UTC · original
ShalakZ:pr/d3d12-no-fetch-win11→main· +6 −0 · 1 files · 1 commits · openFollow-up to #210.
What it changes
#210 made
check_shader_modelfetch the D3D12 Agility SDK when thevictory shader-modelprobe gives no answer, for Windows 10 22H2. The code does not check the Windows version for that case, so it also fires on Windows 11. When stdin is not a terminal (a launcher, a script, a scheduled run), the answer is an automatic yes.victory playthen writes a script to%TEMP%and runs it withpowershell -ExecutionPolicy Bypass. The script downloadsD3D12Core.dllfrom nuget.org intoD3D12\beside the exe, and every later start loads that runtime.On Windows 11 the system's own Direct3D 12 runs shader model 6.6. When the probe gets no answer there, the card is in trouble (a hang just before, a driver reset or TDR recovery), and a different runtime cannot help. This change returns early in that one case (no answer from the probe, and Windows build 22000 or later). The start then goes on as it did before #210. Windows 10 keeps the fetch, and every case where the probe does answer is unchanged.
Known limit: on a non-MSVC build (the new
windows-gnubranch inapps/victory/build.rs, without/DELAYLOAD:d3d12.dll), Windows 11 21H2-23H2 could in theory give no device because of a runtime-version mismatch the fetch would fix. MSVC builds (rust-toolchain.toml) are not affected. If that case matters, the guard could also check the build target.How it was tested
D3D12\is never created.windows_build()(VICTORY_WINDOWS_BUILDoverride,RtlGetVersion) and the paths it skips.cargo testpassed for the crates it touches: yes (-p victory), on a branch from v2026.11.29.02 (f889bb07) with the same commit;apps/victory/src/play.rsis identical on this PR's base, but this exact head was not built or tested separately.Checked for overlap
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.