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

Open
opened 2026-11-26 04:13:55 +00:00 by github-bot · 4 comments
Owner

@⁠nic0manz on GitHub · 2026-11-24 09:34 UTC · original

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
**@⁠nic0manz** on GitHub · 2026-11-24 09:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/753) ## 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:55 +00:00
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 10:17 UTC · original

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

**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 10:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/753#issuecomment-7128585744) 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`
Author
Owner

@⁠RID-Games on GitHub · 2026-11-24 10:07 UTC · original · edited 2026-11-24 10:22 UTC

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.

**@⁠RID-Games** on GitHub · 2026-11-24 10:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/753#issuecomment-7128349701) · edited 2026-11-24 10:22 UTC [`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.
Author
Owner

@⁠Sunkiller-qc on GitHub · 2026-11-24 12:54 UTC · original

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.

**@⁠Sunkiller-qc** on GitHub · 2026-11-24 12:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/753#issuecomment-7132075495) 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.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:50 UTC · original

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

**@⁠Marvisak** on GitHub · 2026-11-25 03:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/753#issuecomment-7152291436) <!-- 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)_
This discussion has been locked. Commenting is limited to contributors.
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#753
No description provided.