Windows 10: the host device stops at shader model 6.5 (needs the D3D12 Agility SDK) #84
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Marvisak/VIctory. Originally posted by Proudnoob4 on 2026-11-24T00:20:24Z.
What happens
On Windows 10 the in-box D3D12 runtime reports shader model 6.5 at most. VIctory requires 6.6 (
crates/victory-shader/src/emit/host.rs:91,crates/victory-gpu/src/host.rs:375), so even on a GPU that supports 6.6 (an RTX 4080 here):victory translate <shaders> --validate --pipelinesstops withError: the device supports SM 0x65 only.What fixes it here
The D3D12 Agility SDK. I exported its two symbols from
victory.exeand put Microsoft'sD3D12Core.dllbeside it:I also copied
D3D12Core.dll(andd3d12SDKLayers.dll, for the debug layer) from theMicrosoft.Direct3D.D3D121.620.2 NuGet package intotarget\<profile>\D3D12\.dumpbin /exportsthen lists both symbols.With that:
translate --validate --pipelineson a 40-shader sample creates 40/40 pipelines on the 4080. Without the SDK the run stops at the error above.Environment
Windows 10 22H2 19045.6456, i5-13600K, RTX 4080 (driver 621.01), main
97c78d1. AI-assisted (Claude); I ran everything above myself.The DLL can't be committed under the asset policy, so shipping it needs a fetch step or a README note. If you want that route, I can open a PR with the exports and an
xtaskthat downloads the pinned NuGet package and checks its hash.Imported from Marvisak/VIctory. Originally posted by nopsled0x on 2026-11-24T00:57:29Z.
Confirmed on a second machine, and on Blackwell: Windows 10 22H2 (19045), RTX 5060 Ti 16 GB, NVIDIA 610.88, Ryzen 7 5700X3D, main
9aef3d9, release build. Counts only.victory translate <40-container sample> --validate --pipelines:mainas isError: the device supports SM 0x65 onlymain+ your two exports (D3D12SDKVersion = 620,D3D12SDKPath = ".\D3D12\") andD3D12Core.dll+d3d12SDKLayers.dllfromMicrosoft.Direct3D.D3D121.620.2 (Microsoft-signed) intarget\release\D3D12\The 7 that do not get a pipeline stop in the translator, not on the device (computed barycentrics, a 64-bit image atomic, a lane mask read as data, a scalar memory read as data, an untraced descriptor, an address not from a root parameter, one mesh shader over the 32768-byte output limit).
One packaging trap worth handling in the fetch step: with the exports in the exe but no
D3D12\D3D12Core.dllbeside it,D3D12CreateDevicefails outright ("the host exe's D3D12 SDK version configuration is invalid") instead of falling back to the in-box runtime, so a release that ships the exports must ship or fetch the DLL too.Also on Windows 10 here: the 7
emit::valu_tests(v_fract,v_med3,v_sin/v_cos, f16/f32) fail onmainwith "no SM 6.6 hardware device; skipped / no SM 6.6 warp device; skipped" and then theassert!(ran > 0)atvalu_tests.rs:203, the same root cause; the test binaries don't carry the Agility exports, so they keep failing there even with this fix.AI-assisted (Claude Code); I ran everything above myself.
Imported from Marvisak/VIctory. Originally posted by kykifox1337-source on 2026-11-24T01:07:17Z.
I opened #175 for this, built on the exports and
xtaskdownload you described here (thanks for the fix and the offer to write it).cargo xtask agilityfetchesMicrosoft.Direct3D.D3D121.620.2 from nuget.org, checks its published SHA-512, and putsD3D12Core.dllandd3d12SDKLayers.dllintarget\<profile>\D3D12\.On Windows 10 19045 with an RTX 2070 SUPER, the title went from every root signature refused (
flags c01) and 0 draws, then a crash after about 9 s, to every draw run on the host and no crash in 3 minutes.AI-assisted (Claude Code); I ran the tests on my machine.
Imported from Marvisak/VIctory. Originally posted by colehammond65 on 2026-11-24T06:58:21Z.
Windows 10 build 26300 + PR #175 result. The app-local Agility SDK 1.620.2 loaded correctly and the run reached the world with zero pre-failure root-signature refusals. The debug layer still could not initialize because this build reports the Graphics Tools feature as unknown, but the runtime itself worked. Full report: https://github.com/Marvisak/VIctory/pull/334#issuecomment-7123911055
AI-assisted test report.
Imported from Marvisak/VIctory. Originally posted by Zilumz1 on 2026-11-24T08:40:10Z.
Windows 10 + pre-RDNA AMD (Polaris): what the Agility runtime does and doesn't fix
Machine: Windows 10 Pro, AMD Radeon RX 580 2048SP (Polaris / GCN4), Adrenalin driver 31.0.21925.1001.
mainatba7d873, Rust 1.98.1, MSVC 14.44.D3D12Core.dllfrom NuGetMicrosoft.Direct3D.D3D121.620.2. All results are from real runs on this machine using synthetic shaders and no title data. The probes were temporary tests inemit/valu_tests.rs, not committed.1. Device caps, in-box runtime vs. Agility 1.620.2
CheckFeatureSupportSo the Agility runtime gives Polaris SM 6.6 with full 64-bit atomics. It doesn't give mesh shaders, and the card only runs 64-lane waves.
2. Heap-indexing flags: the Agility runtime is required, and a retry without the flags doesn't help
I lowered a real GFX10 compute shader through
build_valu_cs(cs_6_6,createHandleFromHeap) and created its PSO directly on the hardware device:*_HEAP_DIRECTLY_INDEXED0x80070057, "Unsupported bit-flag set (root signature flags 601)")0x800700570x80070057A fallback that drops the flags (as #623 currently does) only moves the failure from root-signature serialization to PSO creation. The working fix is #175 / #463 for
victory.exeand #486 for the test binaries. I posted details on #623.3.
WaveSize(32)compute shaders are refused on 64-lane-only hardwarelower.rs:395-398declaresWaveSizeequal to the console program's width when a compute shader uses cross-lane operations (v_mbcnt, DPP,ds_swizzle, permutes, readlane/writelane, or masks read as data), or when it's a single wave with LDS. The console title mixes wave32 and wave64 programs, and RDNA2 runs both.On this card with the Agility runtime:
v_mbcnt_lo_u32_b32declaresWaveSize(32).dxil.dllvalidates it, butCreateComputePipelineStaterefuses it with0x80070057.WaveSize) creates its PSO fine.So on Polaris (and older GCN, 64 lanes only), every wave32 compute program with cross-lane operations will be refused. NVIDIA and Intel hosts (32 lanes) have the mirror problem with the wave64 programs the README already mentions ("some compute programs need a GPU with 64-lane waves"). Only RDNA hosts, which accept both widths, avoid both cases.
Suggestions:
WaveLaneCountMin..Maxonce at device creation, next to the existinghost mesh shader supportline. Then a "pipeline refused" report shows straight away whether this is the cause.4. Mesh shaders: Polaris can't reach the world
The mesh shader tier stays "not supported" even with SM 6.6, and the world uses mesh pipelines (README: "mesh shaders for the world"). On GCN 4 and older, VIctory can at best reach the menus. Unless the README already intends that, its "a Direct3D 12 GPU with shader model 6.6 (and mesh shaders for the world)" line could say this explicitly for Windows 10 users.
5. Test suite on this machine
cargo test --workspaceonmain: everything passes except the 8 GPUvalu_tests(neither hardware nor WARP SM 6.6 device available).victory-shadertests on6179b10. They run on hardware; WARP stays below 6.6.Glad to run further probes on this card on request.
AI-assisted (probe code and write-up); every number above is from a real run on this machine.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:46:44Z.
Automated triage for the maintainers.
Still confirmed on current
main(13f91ca). Without the Agility SDK runtime, a Windows 10 host stays at shader model 6.5 and refuses the translated root signatures (flagsc01).mainstill exports neitherD3D12SDKVersionnorD3D12SDKPath. The open PRs for this are:apps/victory/build.rs, based on13f91ca, merges cleanly)Confirmations so far:
ffe310e)67e8ae1). With the exports (as in #2460) andD3D12Core.dll1.614.1, it reached SM 6.6 and the world with no crash and no driver reset.The packaging trap reported earlier still applies to any fix: with the exports but no
D3D12\D3D12Core.dllbeside the exe, device creation fails outright instead of falling back. #1881 is a further report of this stop.The NVIDIA world removal (
0x887A0006, no breadcrumbs) seen after these runs is tracked in #71, not here.Generated by Claude Code
valu_testspass on hardware #473Imported from Marvisak/VIctory. Originally posted by AsterionXeity on 2026-11-25T02:51:13Z.
Another confirmation on Windows 10 Pro build 19045 (WDDM 2.7), NVIDIA RTX 4080 SUPER, driver 32.0.16.1088, at
ffe310e.Without the Agility SDK, the 15
victory-shaderGPU tests failed with "neither hardware nor WARP SM 6.6 device available". After exportingD3D12SDKVersion = 620andD3D12SDKPath = ".\D3D12\\"fromvictory.exeand placingD3D12Core.dllfromMicrosoft.Direct3D.D3D121.620.2 intarget\release\D3D12\, the host device reached SM 6.6. The title then booted through the first-boot screens and menus at 30 fps and loaded into the world. If the exports are present but theD3D12folder is missing, device creation fails with "The D3D12 SDK version configuration of the host exe is invalid".In the world it ran at about 0.3 fps with only text visible, then the GPU was removed (
0x887A0006, no breadcrumbs), the same as #597.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by CocoBeans64 on 2026-11-25T17:22:25Z.
Confirmation on Windows 10 Pro 22H2 (19045.7846), AMD RX 6800 XT, driver 32.0.21045.5002, Ryzen 7 7800X3D, at upstream
67e8ae1.Without the Agility SDK the device reports SM 0x65 (hardware) and 0x62 (WARP), and every pipeline is refused (root signature flags c01). With
D3D12SDKVersion = 614/D3D12SDKPath = ".\D3D12\"exported fromvictory.exe(same approach as #2460) andD3D12Core.dllfromMicrosoft.Direct3D.D3D121.614.1, the hardware device reports SM 6.6. A diag run then reaches the world: the intro, a short playable stretch with the camera at about 1 fps, and the next cutscene. There was no crash and no driver reset, and some areas were unlit, as the README says. WARP 1.0.22 next to the exe also gives SM 6.6, but runs out of commit (72 GB) while loading.Imported from Marvisak/VIctory. Originally posted by dux14 on 2026-11-29T06:04:55Z.
Consolidating the
+0xb5a5f8(read0x68) reports here, since they are spread across #741, #2521, #598 and #753. Checked againstmain63bcca4.The offset is only where the title dereferences a pipeline that was never created, so it matches this issue only when
root signature flags c01/c00andhost root signature refused (0x80070057)precede it on Windows 10 without a stagedD3D12Core.dll. A crash at this offset without those refusals (e.g. the Wine/vkd3d-proton data point in #2521) is a different cause.Same cause, refusals and crash both in the report: #598, #741, #746, #753, #828, #1990, #2521, the closed #348 and #998, and two not linked yet, both on
63bcca4: #3530 (Windows 10 19045, RTX 3060 Laptop) and #3696 (Windows 10 19045, RX 6700 XT). Probably the same, but the reporter's own text lacks the refusals or the crash: #766, #789, #804, #1532, #1881, #2463, #2652. Different cause: #1216, #1622, #1854, #3567.Still open on
main(noD3D12SDKVersion/D3D12SDKPathexport). Runtime-loading PRs: #2460, #969 and #3667 (mergeable) and #463 (conflicts). #626 (flag fallback) is also open.