Repository navigation
Windows 10: load the D3D12 Agility SDK runtime for shader model 6.6 - #175
kykifox1337-source wants to merge 1 commit into
Conversation
|
The test target does not compile, so the GPU suite cannot run: The library builds; only No game data used. |
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>
e3c0ebc to
19aec59
Compare
|
Thanks for checking. That error does not come from this PR: it touches nothing in I rebased onto current
AI-assisted (Claude Code); I ran the above myself. |
|
Tested
One thing that does not hold here is the doc comment in That is Suggestions:
AI-assisted (Claude Code); I ran everything above on my machine. |
|
Tested
Control, same build with
So I see the same no-fallback behaviour Proudnoob4 reported with No game data in this report. AI-assisted (Claude Code); everything above was run on my machine. |
|
Tested on Windows 10 19045 with an RTX 3060 Ti (driver 32.0.16.1714). With the Agility runtime the title gets through the menus and loading and reaches the world. On the two review points above (no fallback, and the hint for
Each case, run on the title:
Happy to rebase these onto this branch as a PR against it if that's easier. AI-assisted (Claude Code); the runs above were on my machine. |
|
Test report for this PR together with #362 (the tests part), on another Windows 10 + NVIDIA machine. Counts only, no title data. Machine: Windows 10 Pro 22H2 (19045), NVIDIA GeForce RTX 3050 (driver 32.0.16.2124), AMD Ryzen 5 3600, 16 GB. Before (no Agility runtime): the in-box runtime reports SM 0x65 on the RTX 3050 and SM 0x62 on WARP. After (#362 merged, Separately, I have not run the title with this yet. AI use: run and written with Claude Code (Claude Opus 5.5); the numbers are from real runs on the machine above. |
|
Test report: Windows 10 + AMD RDNA3, with the title, stacked on #1798. Machine: Windows 10 22H2 (19045), Ryzen 7 5800X, Radeon RX 7800 XT (driver 32.0.24027.1012), 32 GB, MSVC x64, Rust 1.98.1.
Series X needs commit headroom; that is not a defect of this PR. On the same machine the Series X profile reaches frame 128 and then stops with Series S is stable. Two runs (60 s and 135 s): 4,096 frames presented, 20,480/20,480 draws and 2,048/2,048 dispatches, no device removal, no crash, 30 fps. The window is still black at that point on upstream – it looks like the loading stage, and is separate from this PR. Doc nit: the module comment says that without the |
|
Addendum to the AMD result above: on this Windows 10 + RX 7800 XT machine the boot/first-boot screens stay black at 30 fps even with Agility (all draws executed, no warnings, GPU ~2% busy, input changes the UI draw count, standard and separated layouts alike, fresh cache alike). Filed with measurements as #1854 so it does not get mixed into this PR's Windows 10 shader-model fix. |
|
Automated triage for the maintainers. Closing because another open pull request covers the same change. See #463. Windows 10 D3D12 runtime opt-in done with an xtask that downloads a package with curl (new 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. |
Fixes #84.
What
Windows 10's in-box D3D12 stops at shader model 6.5. It refuses every translated pipeline's root signature (
Unsupported bit-flag set (root signature flags c01): the directly indexed CBV/SRV/UAV and sampler heap flags), so nothing draws.apps/victory/src/agility.rs+apps/victory/build.rs:victory.exeexportsD3D12SDKVersion = 620andD3D12SDKPath = ".\D3D12\"(/EXPORT:…,DATA, MSVC only).dumpbin /exportslists both.cargo xtask agility: downloadsMicrosoft.Direct3D.D3D121.620.2 from nuget.org with the systemcurl, checks it against the SHA-512 nuget.org's catalog publishes, and unpacksD3D12Core.dllandd3d12SDKLayers.dll(forVICTORY_D3D12_DEBUG) intotarget\{debug,release,diag}\D3D12\. The package is cached intarget\agility\. The zip is read withminiz_oxide(already a workspace dependency);sha2is the one new dependency, used by xtask only.D3D12\folder, keeps the in-box runtime.victory configreports whether the runtime is beside the executable. The shader model 6.5 error invictory-shadernames the command. README: a Windows 10 note and the command under Getting started.D3D12SDKVersion.Tested
Windows 10 22H2 (19045), i7-8700K, RTX 2070 SUPER, Rust 1.98.1, on
main9aef3d9, release build, real title:+0xb5a5f8(read0x68) after about 9 sThe crash without the runtime looks like a consequence of nothing being drawn; I did not chase it further.
cargo xtask policy,cargo fmt --checkon the changed files,cargo clippy -p victory -p xtask --all-targets: clean (one existing warning inxmem.rs).cargo test -p xtask: passes.Not related to this change, seen on
mainhere:victory-gputests do not compile:mod testsis defined twice incrates/victory-gpu/src/host.rs(lines 252 and 1974).net::only_loopback_is_reachablefails on Windows 10 (WinHttpGetProxySettingsEx); Loader: run on Windows 10 (clear the IAT directory) #44 fixes it.emit::valu_testsfail with "neither hardware nor WARP SM 6.6 device available": test executables do not export the Agility SDK symbols. A follow-up could give them the runtime or skip without an SM 6.6 device.AI-assisted: written with Claude Code. I ran everything above on my machine.
🤖 Generated with Claude Code