Root signatures require RS 1.1 direct-heap flags unconditionally: hosts that refuse them lose the pipeline and the draw #19

Open
opened 2026-11-26 03:31:22 +00:00 by github-bot · 0 comments
Owner

@⁠itsonewi on GitHub · 2026-11-25 23:38 UTC · original

Where

crates/victory-gpu/src/pipeline/host.rs:1019-1041 (root_signature) builds every host root signature as version 1.1 with both heap-directly-indexed flags, unconditionally:

Flags: input
    | D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED
    | D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED,   // 0xC00

There is no capability query before it and no second attempt after it. If serializing or creating that signature fails, build() logs and returns None (pipeline/host.rs:595-598):

Err(e) => { tracing::warn!(error = %e, ?shaders, "host root signature refused"); return None; }

and the draw or dispatch that needed it is then dropped (a dispatch without a host pipeline dropped).

What hosts hit it

#12 (Windows 10 22H2 19045, RX 6600, driver 32.0.21045.29003) has all three lines in order:

WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c00).
WARN victory_gpu::pipeline::host: host root signature refused error=0x80070057 shaders=[compute 052a2316a03b9ba1]
WARN victory_gpu::draw: a dispatch without a host pipeline dropped

The first line is this file's own error-blob message (tracing::warn!("root signature: {}", ...)), so the refusal comes from the platform's root-signature serializer, before any pipeline reaches the driver. The same 0x80070057 shape for compute shader 2cc4c197ee29e291 on an RTX 5070 is reported as the baseline in #4.

Why it is worth a fix

  • On such a host the affected pipelines can never exist, so their draws and dispatches are dropped for the whole session, silently, with one warn per pipeline.
  • It is invisible under -Safe in #12 because those dispatches are not issued there, which makes "the same with and without -Safe" read as unrelated when it is really "not exercised".
  • Nothing in the log says what the host is missing or what would make it work, so the report cannot be turned into a driver/OS bug.

Suggestion

Ask once per device and cache the answer (the root-signature tier / D3D12_FEATURE_D3D12_OPTIONS, or the serializer itself with a 1.1-and-flags signature at device creation):

  • If the flags are refused: log once, naming the missing capability and the required Windows/driver level, and name the first few shader hashes affected.
  • Either fall back for shaders that do not index the heaps directly, or keep refusing the pipeline but stop the silent per-draw drop: count them per hash and print the total, so a missing picture is attributable.

Not checked

I have no build and no GPU here; everything above is source at 0a43566 plus the log lines in #12 and #4. I have not run the code and have not confirmed which capability query is the right one on every host.

AI use

AI-assisted review (source reading and text). No game files, no build, no hardware run.

**@⁠itsonewi** on GitHub · 2026-11-25 23:38 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/19) ## Where `crates/victory-gpu/src/pipeline/host.rs:1019-1041` (`root_signature`) builds **every** host root signature as version 1.1 with both heap-directly-indexed flags, unconditionally: ```rust Flags: input | D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED, // 0xC00 ``` There is no capability query before it and no second attempt after it. If serializing or creating that signature fails, `build()` logs and returns `None` (`pipeline/host.rs:595-598`): ```rust Err(e) => { tracing::warn!(error = %e, ?shaders, "host root signature refused"); return None; } ``` and the draw or dispatch that needed it is then dropped (`a dispatch without a host pipeline dropped`). ## What hosts hit it #12 (Windows 10 22H2 19045, RX 6600, driver 32.0.21045.29003) has all three lines in order: ``` WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c00). WARN victory_gpu::pipeline::host: host root signature refused error=0x80070057 shaders=[compute 052a2316a03b9ba1] WARN victory_gpu::draw: a dispatch without a host pipeline dropped ``` The first line is this file's own error-blob message (`tracing::warn!("root signature: {}", ...)`), so the refusal comes from the platform's root-signature serializer, before any pipeline reaches the driver. The same `0x80070057` shape for compute shader `2cc4c197ee29e291` on an RTX 5070 is reported as the baseline in #4. ## Why it is worth a fix - On such a host the affected pipelines can **never** exist, so their draws and dispatches are dropped for the whole session, silently, with one warn per pipeline. - It is invisible under `-Safe` in #12 because those dispatches are not issued there, which makes "the same with and without `-Safe`" read as unrelated when it is really "not exercised". - Nothing in the log says what the host is missing or what would make it work, so the report cannot be turned into a driver/OS bug. ## Suggestion Ask once per device and cache the answer (the root-signature tier / `D3D12_FEATURE_D3D12_OPTIONS`, or the serializer itself with a 1.1-and-flags signature at device creation): - If the flags are refused: log **once**, naming the missing capability and the required Windows/driver level, and name the first few shader hashes affected. - Either fall back for shaders that do not index the heaps directly, or keep refusing the pipeline but stop the silent per-draw drop: count them per hash and print the total, so a missing picture is attributable. ## Not checked I have no build and no GPU here; everything above is source at `0a43566` plus the log lines in #12 and #4. I have not run the code and have not confirmed which capability query is the right one on every host. ## AI use AI-assisted review (source reading and text). No game files, no build, no hardware run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:22 +00:00
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/avatarmanz--VIctory-7900XTX#19
No description provided.