GPU: report missing Shader Model 6.6 at device startup #3533

Open
github-bot wants to merge 1 commit from github-bot/gh-3533 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 15:18 UTC · original
andrewpozdnakov7-jpg:codex2/host-shader-model-startup → main · +47 −21 · 1 files · 1 commits · open

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 0xC01 and the normal host initialization path.

Build and runtime Queried model Root signature serialization Startup warnings for this requirement
Main 63bcca4, in-box WARP 6.2 E_INVALIDARG 0
This branch, in-box WARP 6.2 E_INVALIDARG 1, before the device-ready log
This branch, Agility 1.620.2 and WARP 1.0.22 6.6 Accepted 0

Verified 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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 15:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/3533) `andrewpozdnakov7-jpg:codex2/host-shader-model-startup` → `main` · +47 −21 · 1 files · 1 commits · open ## 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](https://microsoft.github.io/DirectX-Specs/d3d/HLSL_SM_6_6_DynamicResources.html#device-capability) ## 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 `0xC01` and the normal host initialization path. | Build and runtime | Queried model | Root signature serialization | Startup warnings for this requirement | | --- | --- | --- | --- | | Main `63bcca4`, in-box WARP | 6.2 | `E_INVALIDARG` | 0 | | This branch, in-box WARP | 6.2 | `E_INVALIDARG` | 1, before the device-ready log | | This branch, Agility 1.620.2 and WARP 1.0.22 | 6.6 | Accepted | 0 | Verified 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](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633). AI-assisted with Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:22:37 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 15:22 UTC · original

Exact head 06beade passed the Windows GitHub CI job. Locally, the same synthetic 0xC01 signature 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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 15:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/3533#issuecomment-7221970237) Exact head `06beade` passed the [Windows GitHub CI job](https://github.com/Marvisak/VIctory/actions/runs/46023768034/job/140589771104). Locally, the same synthetic `0xC01` signature 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.
Author
Owner

@⁠kilolimaVI on GitHub · 2026-11-27 16:30 UTC · original

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_model and mesh_shaders() directly:

780M WARP
HighestShaderModel asked 6.6 / 6.7 / 6.8 0x66 / 0x67 / 0x68 (all ok) 0x66 / 0x67 / 0x68 (all ok)
check_shader_model true, no warning true, no warning
mesh_shaders() true true

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; with VICTORY_D3D12_WARP=1 --features diagnostics: 246 passed, 0 failed.

AI-assisted (Claude).

**@⁠kilolimaVI** on GitHub · 2026-11-27 16:30 UTC · [original](https://github.com/Marvisak/VIctory/pull/3533#issuecomment-7223346288) 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_model` and `mesh_shaders()` directly: | | 780M | WARP | |---|---|---| | `HighestShaderModel` asked 6.6 / 6.7 / 6.8 | 0x66 / 0x67 / 0x68 (all ok) | 0x66 / 0x67 / 0x68 (all ok) | | `check_shader_model` | true, no warning | true, no warning | | `mesh_shaders()` | true | true | 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; with `VICTORY_D3D12_WARP=1 --features diagnostics`: 246 passed, 0 failed. AI-assisted (Claude).
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3533/head:github-bot/gh-3533'
git switch 'github-bot/gh-3533'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3533'
git switch 'github-bot/gh-3533'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3533'
git switch 'github-bot/gh-3533'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3533'
git switch 'main'
git merge --squash 'github-bot/gh-3533'
git switch 'main'
git merge --ff-only 'github-bot/gh-3533'
git switch 'main'
git merge 'github-bot/gh-3533'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3533
No description provided.