Windows 10: the D3D12 Agility SDK runtime for victory.exe and the shader tests #420
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/420"
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?
Imported from fxceless/victory-fork. Originally posted by GamingRipperDoc on 2026-11-25T00:36:09Z.
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(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(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.
Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:41:29Z.
Is this a duplicate of #69?
Both port the upstream Agility SDK work for Windows 10 and shader tests. Please clarify any materially distinct functionality.
This is an automated message. If you believe it is incorrect, please reply with the relevant technical differences.
Imported from fxceless/victory-fork. Originally posted by GamingRipperDoc on 2026-11-25T04:10:39Z.
Yes, functionally. #69 came first and carries the same two upstream PRs (Marvisak/VIctory#175 and #362).
apps/victory/build.rs,apps/victory/src/agility.rs,crates/victory-shader/build.rsandxtask/src/agility.rsare byte-identical between the two.The one material difference is the manifest. Since #69 was branched,
mainreplacedminiz_oxidewithzlib-rsin[workspace.dependencies](3bff182). #69'sxtask/Cargo.tomlstill saysminiz_oxide.workspace = true. Merged onto currentmain(no text conflict), the workspace no longer loads:This PR declares
miniz_oxide = "0.9.1"(andsha2) inxtask/Cargo.tomlitself, so it builds on currentmain.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).
Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T06:00:21Z.
Thanks for clarifying. Since both PRs are functionally equivalent, I recommend closing #420 in favor of #69.
The manifest incompatibility should be addressed directly in #69 by updating its dependencies against current main. It does not warrant maintaining a separate PR for the same functionality.
Your Windows 10 and RX 9070 XT validation results would still be valuable as additional testing evidence in #69.
Imported from fxceless/victory-fork. Originally posted by domints on 2026-11-25T10:03:31Z.
@GamingRipperDoc This PR won't build on current main exactly because of you using
miniz_oxide, current main has nominiz_oxideanymore, and for at least 12 hours for that matter.#69 on the other hand, adds unnecessary
miniz_oxideback to the root Cargo.toml leaving app with two zip unpacking packages.I suggest closing both in favor of #402 which is minimal change, resolves conflicts and uses
zlib-rsinstead of just re-pullingminiz_oxide.System Initand presents 100% black frames with 3 draws/frame #949System Initand presents 100% black frames with 3 draws/frame #949Imported from fxceless/victory-fork. Originally posted by GamingRipperDoc on 2026-11-26T06:29:12Z.
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
main, and unpacks withzlib-rsinstead of bringingminiz_oxideback. This branch no longer builds onmainbecauseminiz_oxideis gone.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).
Pull request closed