Repository navigation
Windows 10: the D3D12 Agility SDK runtime for shader model 6.6 (upstream #362) - #69
simplesmenterafael wants to merge 5 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>
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>
…y-runtime # Conflicts: # apps/victory/src/main.rs
…ows 10
Windows 10's in-box D3D12 stops at shader model 6.5, so no SM 6.6
device existed on this machine and 22 victory-shader GPU tests failed
("no SM 6.6 device available"). This merges Marvisak/VIctory#362
(stacked on fxceless#175): victory.exe and the victory-shader test executables
export D3D12SDKVersion/D3D12SDKPath, and `cargo xtask agility` fetches
Microsoft.Direct3D.D3D12 1.620.2 (SHA-512 checked) into
target/<profile>/D3D12/. Nothing of Microsoft's enters the repository.
One conflict, in crates/victory-shader/src/lib.rs: this fork's
`pub mod bvh;` and the PR's `mod agility;`; both kept.
Checked on Windows 10 19045, RTX 3050 (driver 32.0.16.2124),
Ryzen 5 3600, rustc 1.98.1: cargo test --workspace --locked
--no-fail-fast 498 passed, 0 failed, 7 ignored (was 22 failed);
both clippy runs from CI clean; cargo xtask policy ok. The title was
not run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merged xtask agility command named sha2 = "0.10" in xtask's own manifest; this repository keeps every external crate in [workspace.dependencies]. Pinned at the version Cargo.lock already has (0.10.9, MIT OR Apache-2.0), so the lock file does not change. Checked with cargo test --workspace --locked (498 passed, 0 failed, 7 ignored), both clippy runs from CI and cargo xtask policy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Title run with this branch (
Before ( Run and written with Claude Code (Claude Opus 5.5). |
|
I checked exact head I tested a follow-up that gates the exports on the installed Core DLL at build time and makes the installer invalidate both Cargo build scripts. The PE and directive controls, installer-style invalidation fixture, six xtask tests, and Windows-target app check with AI-assisted using Codex. |
|
A data point for this approach on AMD + Windows 10, and two notes. They come from #401, now closed as a duplicate of this PR. Machine: Windows 10 Pro 22H2 (19045), Radeon RX 7900 XTX, Adrenalin 32.0.32015.7029, i7-13700KF, Rust 1.98.1. No game data used.
Note 1:
Note 2: victory-gpu's tests get no exports here. victory-gpu's unit-test harness also creates host devices: |
|
This PR has merge conflicts. I suggest closing both this and #420 (which also has conflicts, but also doesn't resolve |
Brings Marvisak/VIctory#362 (stacked on Marvisak/VIctory#175, for Marvisak/VIctory#84) into this fork: Windows 10's in-box D3D12 runtime stops at shader model 6.5, so on Windows 10 no SM 6.6 device exists and every translated pipeline is refused. Both upstream PRs are still open; this takes them as they are, plus one manifest fix.
What is in it
19aec59,f3c7333and its merge of upstreammain, authors kept):victory.exeexportsD3D12SDKVersion = 620andD3D12SDKPath = ".\D3D12\"(apps/victory/build.rs,apps/victory/src/agility.rs);victory configsays whether the runtime is beside the executable.victory-shader's test executables export the same two symbols (path..\D3D12\), only when the runtime is intarget\<profile>\D3D12\(crates/victory-shader/build.rs,src/agility.rs). Without it nothing changes.cargo xtask agilitydownloadsMicrosoft.Direct3D.D3D121.620.2 from nuget.org, checks the SHA-512 nuget.org publishes, and putsD3D12Core.dllandd3d12SDKLayers.dllintarget\{debug,release,diag}\D3D12\. Nothing of Microsoft's enters the repository.cargo xtask agility; the README's getting-started section (upstream part, upstream's own text) mentions it.crates/victory-shader/src/lib.rs: this fork'spub mod bvh;and the PR'smod agility;, both kept.sha2moved to[workspace.dependencies](0.10.9, the versionCargo.lockalready has; MIT OR Apache-2.0). The upstream PR named it inxtask/Cargo.tomlonly.Tested
rustc 1.98.1 (48a229cea 2026-09-01).mainat90228a7, no runtime): the RTX 3050 reports SM 0x65 and WARP SM 0x62 (checked with a small probe outside the repo).cargo test --workspace --locked --no-fail-fast: 474 passed, 22 failed, 7 ignored: all 22 arevictory-shaderGPU tests (no SM 6.6 device available). Separately,victory-loader'scrash::tests::unwinds_like_the_system_walkfails intermittently on this machine (Windows 10: unwinds_like_the_system_walk fails about half the time (RtlCaptureStackBackTrace returns no frames) Marvisak/VIctory#742, unrelated; it passed in the runs counted here).cargo xtask agilityrun):cargo test --workspace --locked --no-fail-fast: 498 passed, 0 failed, 7 ignored (the 2 extra tests are the newxtask agilityones);victory-shader210 passed, 2 ignored, no device skipped (hardware and WARP both ran).cargo clippy --workspace --all-targets --locked -- -D warnings: clean.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: clean.cargo xtask policy: 174 files ok.Before / after
Title run: NOT RUN at the time of opening (will be reported in a comment if done).
Not tested / known limits
cargo xtask agility); a fresh clone on Windows 10 still fails the GPU tests until it is.VICTORY_*switch and noshortcut:.Asset policy
cargo xtask policypasses. The Agility SDK DLLs and the NuGet package are kept undertarget\only; nothing derived from the game is included.AI use
Claude Code with Claude Opus 5.5: found the existing upstream work, read the PR's code before running it, merged it and resolved the conflict, moved
sha2, ran the tests and checks above, and wrote this description. The user asked for the merge, the push and this PR.🤖 Generated with Claude Code