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

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3533 into main
andrewpozdnakov7-jpg commented 2026-11-27 15:18:40 +00:00 (Migrated from github.com)

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

<!-- greyfinch-sync:Marvisak/VIctory:issue:5529009554 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3533). Originally posted by [andrewpozdnakov7-jpg](https://github.com/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](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://github.com/Marvisak/VIctory/issues/1633#issuecomment-7221727922). AI-assisted with Codex.
andrewpozdnakov7-jpg commented 2026-11-27 15:22:08 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T15:22:08Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7221970237 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3533#issuecomment-7221970237). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T15:22:08Z. --- 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.
kilolimaVI commented 2026-11-27 16:30:44 +00:00 (Migrated from github.com)

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_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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7223346288 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3533#issuecomment-7223346288). Originally posted by [kilolimaVI](https://github.com/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_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).
andrewpozdnakov7-jpg commented 2026-11-28 00:52:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T00:52:06Z.


I tested 06beade together 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7231249784 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3533#issuecomment-7231249784). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T00:52:06Z. --- I tested 06beade together with #3633 in [304b493](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/304b493b612f55f6d6954c6b6df412b47ff6f44b), 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](https://github.com/Marvisak/VIctory/pull/3633#issuecomment-7231200772) 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3533:upstream-pr/3533'
git switch 'upstream-pr/3533'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/3533'
git switch 'upstream-pr/3533'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3533'
git switch 'upstream-pr/3533'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3533'
git switch 'main'
git merge --squash 'upstream-pr/3533'
git switch 'main'
git merge --ff-only 'upstream-pr/3533'
git switch 'main'
git merge 'upstream-pr/3533'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!3533
No description provided.