Windows 10: root signatures refused ("Unsupported bit-flag set, flags c01") — fixed by enabling the D3D12 Agility SDK #753

Open
opened 2026-11-24 09:34:58 +00:00 by nic0manz · 4 comments
nic0manz commented 2026-11-24 09:34:58 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by nic0manz on 2026-11-24T09:34:58Z.


Problem

On Windows 10 the title crashes during Game Init (frame 0). Just before the
crash, the host refuses several root signatures:

WARN victory_gpu::pipeline::host: root signature:
Unsupported bit-flag set (root signature flags c01).
WARN victory_gpu::pipeline::host: host root signature refused
error=E_INVALIDARG (0x80070057)

followed by:

unhandled exception 0xc0000005 at victory-image-...dll+0xb5a5f8 (read 0x68: nothing mapped there)

Flags 0x400/0x800 (CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED /
SAMPLER_HEAP_DIRECTLY_INDEXED) need SM 6.6 dynamic resources, which the inbox
D3D12 runtime on Windows 10 does not support. The README lists Windows 10 as
supported.

Fix that worked for me

Enabling the D3D12 Agility SDK (Microsoft.Direct3D.D3D12 1.620.2):

apps/victory/src/main.rs:

#[unsafe(no_mangle)]
pub static D3D12SDKVersion: u32 = 620;

#[unsafe(no_mangle)]
pub static D3D12SDKPath: &[u8; 9] = b".\\D3D12\\\0";

apps/victory/build.rs:

println!("cargo:rustc-link-arg-bins=/EXPORT:D3D12SDKVersion");
println!("cargo:rustc-link-arg-bins=/EXPORT:D3D12SDKPath");

and copying D3D12Core.dll and d3d12SDKLayers.dll from the NuGet package
(build/native/bin/x64) into target/release/D3D12/.

With this, the root signature warnings are gone and the title gets past Game Init.

It might be worth adding this to the project (or documenting it), since the
README lists Windows 10 as supported.

System

  • Windows 10 (build: 22H2 19045.7846)
  • NVIDIA RTX 3060, driver 621.01
  • Title version 930.048.020
<!-- greyfinch-sync:Marvisak/VIctory:issue:6578813998 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/753). Originally posted by [nic0manz](https://github.com/nic0manz) on 2026-11-24T09:34:58Z. --- ## Problem On Windows 10 the title crashes during Game Init (frame 0). Just before the crash, the host refuses several root signatures: WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c01). WARN victory_gpu::pipeline::host: host root signature refused error=E_INVALIDARG (0x80070057) followed by: unhandled exception 0xc0000005 at victory-image-...dll+0xb5a5f8 (read 0x68: nothing mapped there) Flags 0x400/0x800 (CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED / SAMPLER_HEAP_DIRECTLY_INDEXED) need SM 6.6 dynamic resources, which the inbox D3D12 runtime on Windows 10 does not support. The README lists Windows 10 as supported. ## Fix that worked for me Enabling the D3D12 Agility SDK (Microsoft.Direct3D.D3D12 1.620.2): apps/victory/src/main.rs: #[unsafe(no_mangle)] pub static D3D12SDKVersion: u32 = 620; #[unsafe(no_mangle)] pub static D3D12SDKPath: &[u8; 9] = b".\\D3D12\\\0"; apps/victory/build.rs: println!("cargo:rustc-link-arg-bins=/EXPORT:D3D12SDKVersion"); println!("cargo:rustc-link-arg-bins=/EXPORT:D3D12SDKPath"); and copying D3D12Core.dll and d3d12SDKLayers.dll from the NuGet package (build/native/bin/x64) into target/release/D3D12/. With this, the root signature warnings are gone and the title gets past Game Init. It might be worth adding this to the project (or documenting it), since the README lists Windows 10 as supported. ## System - Windows 10 (build: 22H2 19045.7846) - NVIDIA RTX 3060, driver 621.01 - Title version 930.048.020
LAKSHYA-cmd-tech commented 2026-11-24 11:04:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T10:17:55Z.


Regarding root signature refusal on Windows 10 (Unsupported bit-flag set (root signature flags c01)):

In addition to Agility SDK activation, we have implemented an in-engine fallback path in crates/victory-gpu/src/pipeline/host.rs:
If the host runtime refuses versioned root signature serialization or creation due to 0xC01/0xC00 (D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED), root_signature() catches E_INVALIDARG, warns, and immediately retries without the directly-indexed flags.

Commit and verification available in:
https://github.com/LAKSHYA-cmd-tech/VIctory/commit/df9ab3c69172c64cd8638344390577334954bd04

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128585744 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/753#issuecomment-7128585744). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T10:17:55Z. --- Regarding root signature refusal on Windows 10 (`Unsupported bit-flag set (root signature flags c01)`): In addition to Agility SDK activation, we have implemented an in-engine fallback path in `crates/victory-gpu/src/pipeline/host.rs`: If the host runtime refuses versioned root signature serialization or creation due to `0xC01`/`0xC00` (`D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED`), `root_signature()` catches `E_INVALIDARG`, warns, and immediately retries without the directly-indexed flags. Commit and verification available in: `https://github.com/LAKSHYA-cmd-tech/VIctory/commit/df9ab3c69172c64cd8638344390577334954bd04`
RID-Games commented 2026-11-24 11:04:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by RID-Games on 2026-11-24T10:07:35Z.


fix/root-signature-flags-fallback ([df9ab3c](https://github.com/LAKSHYA-cmd-tech/VIctory/commit/df9ab3c)) in the LAKSHYA-cmd-tech fork (pipeline/host.rs, +63/−8) falls back to standard root signature flags when the host runtime rejects 0xC01/0xC00 — a code-level fix for the in-box runtime case (this issue and #749), complementing the Agility SDK workaround in the title. Windows-only to test; not verified here. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128349701 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/753#issuecomment-7128349701). Originally posted by [RID-Games](https://github.com/RID-Games) on 2026-11-24T10:07:35Z. --- [`fix/root-signature-flags-fallback`](https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/root-signature-flags-fallback) (`[df9ab3c](https://github.com/LAKSHYA-cmd-tech/VIctory/commit/df9ab3c)`) in the LAKSHYA-cmd-tech fork ([`pipeline/host.rs`](https://github.com/LAKSHYA-cmd-tech/VIctory/blob/df9ab3c/crates/victory-gpu/src/pipeline/host.rs), +63/−8) falls back to standard root signature flags when the host runtime rejects 0xC01/0xC00 — a code-level fix for the in-box runtime case (this issue and #749), complementing the Agility SDK workaround in the title. Windows-only to test; not verified here. AI-assisted.
Sunkiller-qc commented 2026-11-24 13:02:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Sunkiller-qc on 2026-11-24T12:54:11Z.


This is #84: Windows 10's in-box D3D12 stops at SM 6.5, so root signatures with CBV_SRV_UAV/SAMPLER_HEAP_DIRECTLY_INDEXED are refused and the title then crashes at +0xb5a5f8 (see #348 and #741). Loading the Agility SDK runtime, the way you did, is exactly what #175 does (cargo xtask agility).

The flag fallback branch mentioned above (#626) doesn't fix it on its own. On #828 the pipelines were still refused with it, and on #84 Zilumz1 got a PSO refusal when the flags were dropped. I'd close this as a duplicate of #84.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132075495 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/753#issuecomment-7132075495). Originally posted by [Sunkiller-qc](https://github.com/Sunkiller-qc) on 2026-11-24T12:54:11Z. --- This is #84: Windows 10's in-box D3D12 stops at SM 6.5, so root signatures with `CBV_SRV_UAV/SAMPLER_HEAP_DIRECTLY_INDEXED` are refused and the title then crashes at `+0xb5a5f8` (see #348 and #741). Loading the Agility SDK runtime, the way you did, is exactly what #175 does (`cargo xtask agility`). The flag fallback branch mentioned above (#626) doesn't fix it on its own. On #828 the pipelines were still refused with it, and on #84 Zilumz1 got a PSO refusal when the flags were dropped. I'd close this as a duplicate of #84.
Marvisak commented 2026-11-25 04:07:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:50:34Z.


Automated triage for the maintainers.

This is the Windows 10 in-box D3D12 failure tracked in #84: root signatures with flags c01 are refused (root_signature in crates/victory-gpu/src/pipeline/host.rs always sets the heap-indexing flags), and the title then crashes at +0xb5a5f8. Your fix exports the Agility SDK version and path from victory.exe. Open PR #463 carries the same change, and #969 loads the runtime another way. Please review or build on #463 rather than opening another PR.

The flag-fallback branch mentioned in the comments corresponds to open PRs #626 and #1768. Reports on #84 and #828 show pipelines are still refused with that fallback alone.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152291436 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/753#issuecomment-7152291436). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:50:34Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T12:54:11Z at=2026-11-25T03:50:33Z --> Automated triage for the maintainers. This is the Windows 10 in-box D3D12 failure tracked in **#84**: root signatures with flags `c01` are refused (`root_signature` in `crates/victory-gpu/src/pipeline/host.rs` always sets the heap-indexing flags), and the title then crashes at `+0xb5a5f8`. Your fix exports the Agility SDK version and path from `victory.exe`. Open PR **#463** carries the same change, and #969 loads the runtime another way. Please review or build on #463 rather than opening another PR. The flag-fallback branch mentioned in the comments corresponds to open PRs #626 and #1768. Reports on #84 and #828 show pipelines are still refused with that fallback alone. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
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#753
No description provided.