Repository navigation
Shader tests: use the Agility SDK runtime on Windows 10 (stacked on #175) - #362
GamingRipperDoc wants to merge 3 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 (Marvisak#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>
|
Tested PR #362 at head
Behavior covered: Checks stored and deflated synthetic ZIP extraction and that the runtime SDK version matches both exported constants; no SDK download is run. |
Detect the staged package on the first build and provide a tracked opt-in after an earlier inbox build. Check the runtime selected by D3D12 and use the binding fixtures on compatible newer inbox runtimes. Derived from Marvisak#362 (19aec59 and f3c7333). Co-authored-by: kykifox1337-source <kykifox1337@gmail.com> Co-authored-by: GamingRipperDoc <3869080+GamingRipperDoc@users.noreply.github.com>
|
Tested
The one conflict with main is in With this in place I also added GPU tests for AI-assisted (Claude Code); run on my machine. |
…y-runtime # Conflicts: # apps/victory/src/main.rs
|
Tested commit Ran following command
Also there's a local patch that refuses validators older than 1.6. Without it, the test process dies with |
|
Tested PR #362 on Windows 10 IoT Enterprise LTSC (build 19044). Hardware:
After the Agility SDK runtime was present: Command: cargo test -p victory-shader --lib -- --test-threads=1Results:
Before the runtime was available, 15 shader tests failed with:
After testing with the runtime, all 15 failures disappeared. No GTA VI game data was used. |
|
Automated triage for the maintainers. Closing because another open pull request covers the same change. See #486. Stacked on #175 and contains it (the curl downloader, If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
Stacked on #175 (its commit
19aec59is the first one here); review that first. Follows up its note that the 7emit::valu_testsstill fail on Windows 10.Why they fail
D3D12 picks the Agility SDK runtime from exports on the process's executable. #175 adds them to
victory.exe, but thevictory-shadertests run in their own test executable, which has none. So on Windows 10 every host device stops at shader model 6.5, and:emit::valu_testsfail (neither hardware nor WARP SM 6.6 device available);emit::stub_pipeline_is_createdand thediff_teststhat need a device printno SM 6.6 device; skippedand pass without running.What
crates/victory-shader/src/agility.rs(test builds only): the same two statics asapps/victory/src/agility.rs, withD3D12SDKPath = "..\D3D12\". Test executables are in<profile>\deps\; the runtimecargo xtask agilitywrites is in<profile>\D3D12\, so nothing is copied.crates/victory-shader/build.rs: exports them (/EXPORT:…,DATA, MSVC only) only when<profile>\D3D12\D3D12Core.dllexists. D3D12 does not fall back to the in-box runtime when an executable names a newer one that is missing (D3D12_ERROR_INVALID_REDIST, as Proudnoob4 found on Windows 10: load the D3D12 Agility SDK runtime for shader model 6.6 #175), so exporting unconditionally would break these tests on every machine that has not run the xtask, Windows 11 included. Without the runtime nothing is exported and the tests behave as onmain.rustc-link-arg-testsis refused for a package without atests/target, so it usesrustc-link-arg; the only executables this library links are its test executables.cargo xtask agilityupdatesbuild.rs's modification time after installing the runtime, so the nextcargo testpicks it up without acargo clean.D3D12SDKVersionin step with the package now checks both copies.Tested
Windows 10 22H2 (19045.7846), AMD RX 9070 XT, Rust 1.98.1:
victory-shadertestsno SM 6.6 device; skippedD3D12SDKPath,D3D12SDKVersiontarget\debug\D3D12removedmain)cargo xtask agility,cargo testrecompilesvictory-shaderonce and passes 69/69.cargo test -p victory-shader --no-runcompiles nothing.cargo test --workspace --no-fail-fast: the only failure left isnet::only_loopback_is_reachable(net: only_loopback_is_reachable test panics on Windows 10 (WinHttpGetProxySettingsEx missing) #118, fixed by net: skip newer-Windows-only exports in only_loopback_is_reachable #152).cargo clippy -p victory-shader -p xtask --all-targets --all-features: clean.rustfmt --checkon the changed files: clean.cargo xtask policy --staged: 6 files ok.cargo test -p xtask: 6 passed.Not tested on Windows 11. There nothing changes unless someone runs
cargo xtask agility; then the tests use runtime 620 instead of the in-box one.No game data used.
AI-assisted (Claude Code); I ran everything above on my machine.
🤖 Generated with Claude Code