Opt victory.exe into the D3D12 Agility SDK for Windows 10 #1518
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!1518
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1518/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?
@mauri9911 on GitHub · 2026-11-24 18:42 UTC · original
mauri9911:agility-sdk→main· +45 −0 · 4 files · 1 commits · closed without mergingProblem
On Windows 10 the game opens and the menus run at 30 fps, but anything translated draws black. The log shows, for every host pipeline:
Flags
0xC00areCBV_SRV_UAV_HEAP_DIRECTLY_INDEXEDandSAMPLER_HEAP_DIRECTLY_INDEXED(SM 6.6). The D3D12 runtime that ships inside Windows 10 predates them, so all draws are dropped (drawn=0). The host also reports only SM 6.5 for the GPU, and thevalu_tests/waterfall_teststhat need an SM 6.6 device fail with "neither hardware nor WARP SM 6.6 device available".Change
victory.exeexportsD3D12SDKVersionandD3D12SDKPath(thebuild.rsadds the two/EXPORTlink args). That is the documented way to opt into the D3D12 Agility SDK: the runtime then loadsD3D12\D3D12Core.dllfrom next to the executable.Microsoft.Direct3D.D3D121.619.x).I first tried
ID3D12SDKConfiguration::SetSDKVersionat runtime; it fails withDXGI_ERROR_INVALID_CALLon Windows 10 19044 for every path/version I tried, so the exports are the way that works there.Testing
Only on one machine: Windows 10 IoT LTSC 21H2 (19044), RTX 5060 Ti, Agility SDK 1.619.6.
drawn=0, constantroot signature flags c01warnings.drawn=2481draws per frame in the same stage, intro and loading art render.cargo clippy --workspace --all-targets --locked -- -D warningspasses, also with--all-features.Not covered: the unit tests that create a GPU device still do not use the Agility SDK (only
victory.exeexports the symbols), so those 15 tests still fail on Windows 10. I have not tested Windows 11 or an AMD GPU.With this the title gets further on an NVIDIA GPU, but rendering is still incomplete (many shaders do not translate yet) and the GPU can still time out, as the README already warns.
🤖 Generated with Claude Code
Translated shaders use SM 6.6 directly indexed heaps (root signature flags 0xC00). The D3D12 runtime inside Windows 10 refuses them: every host root signature is rejected ("Unsupported bit-flag set (root signature flags c01)"), all draws are dropped and the screen stays black. victory.exe now exports D3D12SDKVersion and D3D12SDKPath (build.rs adds the /EXPORT link args), which makes the runtime load D3D12\D3D12Core.dll from next to the executable when it exists. Without that file nothing changes, and Windows 11 needs none of it. The DLL is Microsoft's and is not added to the repository; the README says where to get it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>@EduBertozzi on GitHub · 2026-11-24 18:43 UTC · original
For whoever reviews this: the same fix already has open PRs. #175 uses the same approach (exe exports plus
cargo xtask agility), #463 does it conditionally, #968 combines it with other changes, and #969 uses a different mechanism (ID3D12SDKConfiguration1::CreateDeviceFactory, no exe exports).Two of them are tested on Windows 10 19045 with a GTX 1060:
VICTORY_D3D12_AGILITY, the shader and GPU suites pass, 123 + 50, where without it they fail for lack of SM 6.6 (comment).Merging one of them makes the others conflict, so it may help to compare against those before picking one.
AI-assisted (Claude Code).
@mauri9911 on GitHub · 2026-11-24 18:52 UTC · original
Closing as a duplicate of #969 (same fix through ID3D12SDKConfiguration1::CreateDeviceFactory). I tested #969 on Windows 10 build 19044 without KB5029331 with an RTX 5060 Ti and posted the results there: #969
Pull request closed