Repository navigation
Windows 10: the D3D12 Agility SDK runtime for victory.exe and the shader tests - #420
GamingRipperDoc wants to merge 2 commits into
Conversation
Windows 10's in-box D3D12 stops at shader model 6.5 and refuses root signatures with the directly indexed heap flags (c01), so every translated pipeline was refused and nothing drew (fxceless#84). victory.exe now exports D3D12SDKVersion (620) and D3D12SDKPath (.\D3D12\), and `cargo xtask agility` fetches Microsoft.Direct3D.D3D12 1.620.2 from nuget.org, checks its published SHA-512, and puts D3D12Core.dll and d3d12SDKLayers.dll in target\<profile>\D3D12\. The DLLs never enter the repository. Windows 11, or a missing folder, keeps the in-box runtime. `victory config` reports whether the runtime is in place, and the SM 6.5 error names the command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> [Ported onto fxceless/victory-fork: miniz_oxide is declared in xtask itself, since this tree's workspace uses zlib-rs and no longer lists it; show_config keeps the data_dir line above the d3d12 sdk lines.] (cherry picked from commit 19aec59, Marvisak/VIctory#175)
On Windows 10 the victory-shader test executables had no D3D12SDKVersion and D3D12SDKPath exports, so every host device stopped at shader model 6.5: the 7 emit::valu_tests failed and the device-backed tests skipped. The tests now export them (path ..\D3D12\, the folder `cargo xtask agility` fills) only when D3D12Core.dll is there: D3D12 does not fall back to the in-box runtime when the named one is missing. The build script watches the DLL only when it exists, so a missing runtime does not rebuild the crate every time; the xtask touches build.rs after installing it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit f3c7333)
|
Yes, functionally. #69 came first and carries the same two upstream PRs (Marvisak/VIctory#175 and #362). The one material difference is the manifest. Since #69 was branched, This PR declares I'm happy to close this in favour of #69 once its manifest is updated. In that case my RX 9070 XT / Windows 10 results in the description can count as an extra data point for #69. AI-assisted (Claude Code). |
|
@GamingRipperDoc This PR won't build on current main exactly because of you using I suggest closing both in favor of #402 which is minimal change, resolves conflicts and uses |
|
Closing this in favor of #402, as @domints suggested: it does the same thing (Agility SDK runtime for SM 6.6 on Windows 10), merges cleanly on current My Windows 10 22H2 + RX 9070 XT results from this PR still apply to the approach. I'll check #402 on the same machine and report there. No game data in this comment. AI-assisted (Claude Code). |
Windows 10 support: the D3D12 Agility SDK runtime for
victory.exeand for thevictory-shadertest executables. Ported from the upstream PRs Marvisak/VIctory#175 (by @kykifox1337-source) and Marvisak/VIctory#362.Why
Windows 10's in-box D3D12 stops at shader model 6.5 and refuses the root signatures every translated pipeline uses (directly indexed heaps, flags
0x400/0x800). Without a newer runtime, nothing draws on Windows 10 and the title crashes during init (upstream Marvisak/VIctory#348, a duplicate of Marvisak/VIctory#84). This tree has none of the upstream Agility work.What
Two commits, authorship kept:
4463b39(Windows 10: load the D3D12 Agility SDK runtime for shader model 6.6 Marvisak/VIctory#175):victory.exeexportsD3D12SDKVersion = 620/D3D12SDKPath = ".\D3D12\";cargo xtask agilityfetchesMicrosoft.Direct3D.D3D121.620.2 from nuget.org, checks its SHA-512, and unpacksD3D12Core.dll/d3d12SDKLayers.dllintotarget\<profile>\D3D12\(never into the repository);victory configreports the runtime. Port changes:miniz_oxideis declared inxtask/Cargo.tomlitself, since this workspace uses zlib-rs and doesn't list it, andshow_configkeeps thedata_dirline above the new lines.ff6649a(Shader tests: use the Agility SDK runtime on Windows 10 (stacked on #175) Marvisak/VIctory#362): thevictory-shadertest executables get the same exports (path..\D3D12\, since they live indeps\), only whenD3D12Core.dllis staged; without it they behave exactly as before.cargo xtask agilitytouchescrates/victory-shader/build.rsso the next build picks it up. Port change:lib.rskeeps this tree'sbvhmodule next to the test-onlyagilityone.Note: D3D12 does not fall back to the in-box runtime when the executable names a newer one that is missing (
D3D12_ERROR_INVALID_REDIST), so on any machine, Windows 11 included,victory.exefrom this branch needscargo xtask agilityonce. The test executables don't (their exports are conditional).Tested
Windows 10 22H2 (19045.7846), AMD RX 9070 XT (driver 32.0.32015.7029), Ryzen 9 9900X, Rust 1.98.1, on
main31714de:cargo xtask agilitycargo test -p victory-shader --libno SM 6.6 device)victory configd3d12 sdk : not beside the executable …d3d12 sdk : …\target\diag\D3D12\D3D12Core.dll (version 620)victory run, 60 s, no inputcargo test -p xtask: 6 passed.cargo clippy --workspace --all-targets --locked [--all-features] -- -D warnings: clean.cargo xtask policy: ok.No game data used.
AI-assisted (Claude Code); I ran everything above on my machine.