GPU: report missing Shader Model 6.6 at device startup #3533
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3533"
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 andrewpozdnakov7-jpg on 2026-11-27T15:18:40Z.
Why
In #3530 and #1532, Windows 10 can create a D3D12 device and then repeatedly refuse the translated shaders' heap-indexed root signatures. Feature Level 12.0 alone does not establish Shader Model 6.6 support. DirectX dynamic-resource requirements
Change
Query Shader Model 6.6 on the selected device during host initialization. Report a lower model or a query error once, before pipeline creation. Reuse the result for the existing mesh shader check. The warning is informational.
Verification
Windows 10 22H2 (19045.6456), synthetic root signature with flags
0xC01and the normal host initialization path.63bcca4, in-box WARPE_INVALIDARGE_INVALIDARGVerified that both app-local DLLs were loaded. Host initialization completed in all three cases. Mesh support remained disabled on the in-box adapter and was enabled on app-local WARP. The GPU library suite on app-local WARP had 246 passing tests and one ignored. Strict GPU Clippy in both feature configurations and the asset policy passed.
Synthetic checks only. Coordination claim. AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T15:22:08Z.
Exact head
06beadepassed the Windows GitHub CI job. Locally, the same synthetic0xC01signature reproduced the Windows 10 in-box rejection described in #3530. The warning recorded SM 6.2 once, before the device-ready log. With app-local Agility 1.620.2 and WARP 1.0.22, the device reported SM 6.6, the signature serialized, and no Shader Model requirement warning appeared.Ready for maintainer review. If this patch is reused, please retain the Git author on cherry-pick or rebase, or use
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding it into another commit.AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-27T16:30:44Z.
Checked on AMD hardware, head
06beade: Windows 11, Radeon 780M (RDNA3 iGPU, current Adrenalin driver), toolchain 1.98.1.With a throwaway test calling
check_shader_modelandmesh_shaders()directly:HighestShaderModelasked 6.6 / 6.7 / 6.8check_shader_modelmesh_shaders()So on RDNA3 the startup check passes and mesh support is unchanged by the refactor.
cargo test -p victory-gpu: 231 passed, 0 failed on the 780M; withVICTORY_D3D12_WARP=1 --features diagnostics: 246 passed, 0 failed.AI-assisted (Claude).
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T00:52:06Z.
I tested
06beadetogether with #3633 in 304b493, which keeps both exact PR commits.On Windows 10 22H2 with the verified in-box WARP module, host startup reported Shader Model 6.2 and emitted the 6.6 requirement warning. The generated compute pipeline then went through the normal host pipeline path and the system runtime returned 0x80070057 in the serialization phase. This was the actual in-box serializer, with no injected failure in this run.
The two diagnostics therefore work together in the Windows 10 case. Strict all-features GPU Clippy and the asset policy check passed on the combined branch. The app-local WARP check for #3633 provides the successful pipeline control.
If you reuse the changes, please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg [email protected] if folding into another commit.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.