GPU: fall back to standard root signature flags when host runtime rejects 0xC01/0xC00 #626

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

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 05:54 UTC · original
LAKSHYA-cmd-tech:fix/root-signature-flags-fallback → main · +63 −8 · 1 files · 1 commits · open

Summary

Fixes #598.

On Windows 10 in-box D3D12 runtimes or environments without Agility SDK / SM 6.6 root signature 1.2+ support, the serializer rejects Root Signature 1.1 with directly indexed descriptor heap flags (0xC01 / 0xC00):

root signature: Unsupported bit-flag set (root signature flags c01)
host root signature refused error=The parameter is incorrect. (0x80070057)

When root signature creation failed, pipeline compilation was rejected (None), resulting in unhandled null pointer dereferences (0xc0000005 (read 0x68)) during subsequent draw/dispatch invocations.

Solution

  • When D3D12SerializeVersionedRootSignature or device.CreateRootSignature rejects the combined flags (ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT | CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED), gracefully fall back to standard root signature flags (ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT for graphics, NONE for compute).
  • Added unit test pipeline::host::tests::host_root_signature_serializes_and_creates.

Verification

  • cargo test -p victory-gpu -- --test-threads=1: 44 passed, 0 failed, 1 ignored.
  • cargo clippy -p victory-gpu --lib -- -D warnings: 0 warnings.
  • cargo run -p xtask -- policy: 151 files clean.
**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 05:54 UTC · [original](https://github.com/Marvisak/VIctory/pull/626) `LAKSHYA-cmd-tech:fix/root-signature-flags-fallback` → `main` · +63 −8 · 1 files · 1 commits · open ## Summary Fixes #598. On Windows 10 in-box D3D12 runtimes or environments without Agility SDK / SM 6.6 root signature 1.2+ support, the serializer rejects Root Signature 1.1 with directly indexed descriptor heap flags (`0xC01` / `0xC00`): ```text root signature: Unsupported bit-flag set (root signature flags c01) host root signature refused error=The parameter is incorrect. (0x80070057) ``` When root signature creation failed, pipeline compilation was rejected (`None`), resulting in unhandled null pointer dereferences (`0xc0000005 (read 0x68)`) during subsequent draw/dispatch invocations. ## Solution - When `D3D12SerializeVersionedRootSignature` or `device.CreateRootSignature` rejects the combined flags (`ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT | CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED`), gracefully fall back to standard root signature flags (`ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT` for graphics, `NONE` for compute). - Added unit test `pipeline::host::tests::host_root_signature_serializes_and_creates`. ## Verification - `cargo test -p victory-gpu -- --test-threads=1`: 44 passed, 0 failed, 1 ignored. - `cargo clippy -p victory-gpu --lib -- -D warnings`: 0 warnings. - `cargo run -p xtask -- policy`: 151 files clean.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:10:31 +00:00
Author
Owner

@⁠fromthemoonx on GitHub · 2026-11-24 06:09 UTC · original

Tested 772d294 (on main d2a4bae), plus one check on what the fallback root signature can host.

Environment: Windows 11 Pro build 26300, AMD Ryzen 7 5700X, 16 GB, NVIDIA GeForce RTX 3060 12 GB (driver 610.88), Rust 1.98.1 x86_64-pc-windows-msvc, debug.

Tested

  • cargo test --locked -p victory-gpu --lib: 44 passed, 0 failed, 1 ignored, including host_root_signature_serializes_and_creates. On this runtime the full flags are accepted, so the test only takes the first path; the fallback is never exercised here.
  • cargo test --locked --workspace: 265 passed, 0 failed, 4 ignored
  • cargo xtask policy: 151 files ok; clippy shows only main's host.rs:267 warning

Can the fallback root signature run a translated shader? Translated shaders reach their resources through createHandleFromHeap (victory-shader emit/shader.rs, heap_handle). That needs CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED / SAMPLER_HEAP_DIRECTLY_INDEXED on the root signature. To check, I gave victory-shader's test host (emit/host.rs, which builds its root signature with the same flags) the fallback's flags, i.e. ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT only, locally:

cargo test -p victory-shader emit:: result
full flags (as on main) 23 passed
fallback flags 16 passed, 7 failed: every GPU-run test, hardware: compute_pipeline failed: The parameter is incorrect.

So on this GPU, a pipeline built on the fallback root signature is refused at CreateComputePipelineState instead of at the root signature. It doesn't run. createHandleFromHeap is also SM 6.6, which the README lists as a requirement, so a runtime that rejects these flags probably can't take the translated shaders either way.

If the 0xc0000005 (read 0x68) in #598 is a draw or dispatch going ahead with no host pipeline, the fix may belong where a missing pipeline is handled; a refused pipeline would still crash it through this path. Do you have the stack of that crash from crashes.log?

Smaller notes:

  • More than half the diff is rustfmt reflow of code the PR doesn't otherwise change (GraphicsState input layout, mesh_pipeline's stream, code_bytes, the mesh refusal). Dropping that would make the change easier to review and conflict less with the other open PRs in pipeline/host.rs.
  • When serialization falls back, the original error text is no longer logged, so a log won't show that the fallback was taken.

Not tested: a Windows 10 in-box runtime that rejects the flags (not available here); no game data used.

AI-assisted (Claude Code) ran the checks and drafted this comment.

**@⁠fromthemoonx** on GitHub · 2026-11-24 06:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/626#issuecomment-7123641566) Tested `772d294` (on `main` `d2a4bae`), plus one check on what the fallback root signature can host. **Environment:** Windows 11 Pro build 26300, AMD Ryzen 7 5700X, 16 GB, NVIDIA GeForce RTX 3060 12 GB (driver 610.88), Rust 1.98.1 `x86_64-pc-windows-msvc`, debug. **Tested** - `cargo test --locked -p victory-gpu --lib`: 44 passed, 0 failed, 1 ignored, including `host_root_signature_serializes_and_creates`. On this runtime the full flags are accepted, so the test only takes the first path; the fallback is never exercised here. - `cargo test --locked --workspace`: 265 passed, 0 failed, 4 ignored - `cargo xtask policy`: 151 files ok; clippy shows only `main`'s `host.rs:267` warning **Can the fallback root signature run a translated shader?** Translated shaders reach their resources through `createHandleFromHeap` (`victory-shader` `emit/shader.rs`, `heap_handle`). That needs `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED` / `SAMPLER_HEAP_DIRECTLY_INDEXED` on the root signature. To check, I gave `victory-shader`'s test host (`emit/host.rs`, which builds its root signature with the same flags) the fallback's flags, i.e. `ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT` only, locally: | `cargo test -p victory-shader emit::` | result | |---|---| | full flags (as on `main`) | 23 passed | | fallback flags | 16 passed, **7 failed**: every GPU-run test, `hardware: compute_pipeline failed: The parameter is incorrect.` | So on this GPU, a pipeline built on the fallback root signature is refused at `CreateComputePipelineState` instead of at the root signature. It doesn't run. `createHandleFromHeap` is also SM 6.6, which the README lists as a requirement, so a runtime that rejects these flags probably can't take the translated shaders either way. If the `0xc0000005 (read 0x68)` in #598 is a draw or dispatch going ahead with no host pipeline, the fix may belong where a missing pipeline is handled; a refused pipeline would still crash it through this path. Do you have the stack of that crash from `crashes.log`? Smaller notes: - More than half the diff is rustfmt reflow of code the PR doesn't otherwise change (`GraphicsState` input layout, `mesh_pipeline`'s stream, `code_bytes`, the mesh refusal). Dropping that would make the change easier to review and conflict less with the other open PRs in `pipeline/host.rs`. - When serialization falls back, the original error text is no longer logged, so a log won't show that the fallback was taken. **Not tested:** a Windows 10 in-box runtime that rejects the flags (not available here); no game data used. AI-assisted (Claude Code) ran the checks and drafted this comment.
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 06:12 UTC · original

Thanks @⁠fromthemoonx for the detailed testing and review!

Updated in commit ac114f1:

  1. Clean minimal diff: Removed all unrelated rustfmt reflows (GraphicsState, mesh_pipeline, code_bytes). The diff now strictly touches
    oot_signature and adds the synthetic unit test host_root_signature_serializes_and_creates.
  2. Preserved warning on fallback: The original serialization rejection message is now logged with racing::warn!("root signature: runtime rejected directly-indexed flags ({}), retrying without them", ...) before the retry so runtime logs clearly show the rejection and fallback.

Regarding the ␀xc0000005 (read 0x68) at +0xb5a5f8 in #598:
Cross-referencing with the site map in #630 and reproduction in #622, +0xb5a5f8 is actually the title's auth subsystem uninitialized object read immediately following XUserAddAsync (caused by missing slot 0x30 GetMaxUsers in xuser.rs), rather than a GPU pipeline crash (addressed separately in #648).

Regarding translated compute shaders: as you observed, shaders relying on createHandleFromHeap strictly require SM 6.6 heap indexing flags. This fallback specifically benefits root signatures and graphics/menu pipelines using standard root parameters/views on runtimes or compatibility layers where in-box d3d12core rejects 0xC01.

**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 06:12 UTC · [original](https://github.com/Marvisak/VIctory/pull/626#issuecomment-7123690771) Thanks @⁠fromthemoonx for the detailed testing and review! Updated in commit ac114f1: 1. **Clean minimal diff**: Removed all unrelated rustfmt reflows (GraphicsState, mesh_pipeline, code_bytes). The diff now strictly touches oot_signature and adds the synthetic unit test host_root_signature_serializes_and_creates. 2. **Preserved warning on fallback**: The original serialization rejection message is now logged with racing::warn!("root signature: runtime rejected directly-indexed flags ({}), retrying without them", ...) before the retry so runtime logs clearly show the rejection and fallback. Regarding the ␀xc0000005 (read 0x68) at +0xb5a5f8 in #598: Cross-referencing with the site map in #630 and reproduction in #622, +0xb5a5f8 is actually the title's auth subsystem uninitialized object read immediately following XUserAddAsync (caused by missing slot 0x30 GetMaxUsers in xuser.rs), rather than a GPU pipeline crash (addressed separately in #648). Regarding translated compute shaders: as you observed, shaders relying on createHandleFromHeap strictly require SM 6.6 heap indexing flags. This fallback specifically benefits root signatures and graphics/menu pipelines using standard root parameters/views on runtimes or compatibility layers where in-box d3d12core rejects 0xC01.
Author
Owner

@⁠fromthemoonx on GitHub · 2026-11-24 06:38 UTC · original

Thanks, and for tracing #598's crash to the auth path; that settles my question.

You're right about which shaders the fallback helps. In lower.rs handle(), only descriptors loaded from a table (Source::Loaded, and Phis of those) go through heap_handle. Root CBVs and SRVs (root_cbv_handle / root_srv_handle), constant samplers (static samplers) and root constants don't. So a pipeline that reads only those doesn't need the heap flags, and the fallback lets it through.

Re-tested ac114f1 (same RTX 3060 machine):

  • the diff is now only root_signature and the test; the fallback logs the rejection before retrying
  • cargo test --locked -p victory-gpu --lib: 44 passed, 0 failed, 1 ignored; cargo test --locked --workspace: 265 passed, 0 failed, 4 ignored; cargo xtask policy: ok
  • one nit: cargo fmt --check wants the new test's let Some(host) = crate::host::host() else { return }; split over three lines (the other fmt and clippy output in this file is already on main)

AI-assisted (Claude Code).

**@⁠fromthemoonx** on GitHub · 2026-11-24 06:38 UTC · [original](https://github.com/Marvisak/VIctory/pull/626#issuecomment-7124147990) Thanks, and for tracing #598's crash to the auth path; that settles my question. You're right about which shaders the fallback helps. In `lower.rs` `handle()`, only descriptors loaded from a table (`Source::Loaded`, and `Phi`s of those) go through `heap_handle`. Root CBVs and SRVs (`root_cbv_handle` / `root_srv_handle`), constant samplers (static samplers) and root constants don't. So a pipeline that reads only those doesn't need the heap flags, and the fallback lets it through. Re-tested `ac114f1` (same RTX 3060 machine): - the diff is now only `root_signature` and the test; the fallback logs the rejection before retrying - `cargo test --locked -p victory-gpu --lib`: 44 passed, 0 failed, 1 ignored; `cargo test --locked --workspace`: 265 passed, 0 failed, 4 ignored; `cargo xtask policy`: ok - one nit: `cargo fmt --check` wants the new test's `let Some(host) = crate::host::host() else { return };` split over three lines (the other fmt and clippy output in this file is already on `main`) AI-assisted (Claude Code).
Author
Owner

@⁠Sharktooth12 on GitHub · 2026-11-24 06:41 UTC · original · edited 2026-11-24 06:45 UTC

Tested this PR on Windows 10 22H2 (19045.6466), GTX 1650, driver 32.0.15.9186.
Fresh clone, checked out pr-626, cargo build --release, then ran the title with --execute.

The fallback triggers, but the game still doesn't get a working host pipeline:

WARN victory_gpu::pipeline::host: root signature: runtime rejected directly-indexed flags
(Unsupported bit-flag set (root signature flags c01).), retrying without them
WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057)
shaders=[vertex dfafaf385b2f94e8, pixel 06295fb1d1aefb78]
(repeats for each pipeline)

victory_gpu::host: 19.8 fps, ... 0 draws/frame, dropped 3 without a host pipeline

Then it crashes about 6 seconds in:
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68)

Same crash address as before the PR. Same result with VICTORY_D3D12_WARP=1,
--console series-s and --unimplemented zero.

My guess (haven't read the shader emitter): the translated shaders use directly
indexed heaps, so a root signature without those flags can't be paired with them
and pipeline creation fails. The failed pipeline is also still dereferenced later.

Happy to test more builds or a debug log if that helps.

Cause (confirmed in the source): the shader emitter indexes the descriptor heaps
directly. crates/victory-shader/src/emit/mod.rs (lines 17-21) documents SM 6.6
ResourceDescriptorHeap[] / SamplerDescriptorHeap[] and says the root signature
needs CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED and SAMPLER_HEAP_DIRECTLY_INDEXED, and
emit/shader.rs:285 emits createHandleFromHeap.

So on a runtime that rejects those flags (stock Windows 10 without the Agility SDK),
dropping them only moves the failure: root signature creation succeeds, but
CreateGraphicsPipelineState then fails with 0x80070057 because the shaders
need heap indexing. The failed pipeline is then still dereferenced later, which
causes the 0xc0000005 crash.

Possible directions: ship/load the Agility SDK so the runtime accepts SM 6.6 root
signature flags, or emit a table-based fallback when the host lacks support. In
either case a refused pipeline probably shouldn't lead to a crash later.

**@⁠Sharktooth12** on GitHub · 2026-11-24 06:41 UTC · [original](https://github.com/Marvisak/VIctory/pull/626#issuecomment-7124196438) · edited 2026-11-24 06:45 UTC Tested this PR on Windows 10 22H2 (19045.6466), GTX 1650, driver 32.0.15.9186. Fresh clone, checked out pr-626, `cargo build --release`, then ran the title with --execute. The fallback triggers, but the game still doesn't get a working host pipeline: WARN victory_gpu::pipeline::host: root signature: runtime rejected directly-indexed flags (Unsupported bit-flag set (root signature flags c01).), retrying without them WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[vertex dfafaf385b2f94e8, pixel 06295fb1d1aefb78] (repeats for each pipeline) victory_gpu::host: 19.8 fps, ... 0 draws/frame, dropped 3 without a host pipeline Then it crashes about 6 seconds in: VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68) Same crash address as before the PR. Same result with VICTORY_D3D12_WARP=1, --console series-s and --unimplemented zero. My guess (haven't read the shader emitter): the translated shaders use directly indexed heaps, so a root signature without those flags can't be paired with them and pipeline creation fails. The failed pipeline is also still dereferenced later. Happy to test more builds or a debug log if that helps. Cause (confirmed in the source): the shader emitter indexes the descriptor heaps directly. crates/victory-shader/src/emit/mod.rs (lines 17-21) documents SM 6.6 `ResourceDescriptorHeap[]` / `SamplerDescriptorHeap[]` and says the root signature needs CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED and SAMPLER_HEAP_DIRECTLY_INDEXED, and emit/shader.rs:285 emits `createHandleFromHeap`. So on a runtime that rejects those flags (stock Windows 10 without the Agility SDK), dropping them only moves the failure: root signature creation succeeds, but CreateGraphicsPipelineState then fails with 0x80070057 because the shaders need heap indexing. The failed pipeline is then still dereferenced later, which causes the 0xc0000005 crash. Possible directions: ship/load the Agility SDK so the runtime accepts SM 6.6 root signature flags, or emit a table-based fallback when the host lacks support. In either case a refused pipeline probably shouldn't lead to a crash later.
Author
Owner

@⁠Sharktooth12 on GitHub · 2026-11-24 07:16 UTC · original

Follow-up test on Windows 10 22H2 (19045.6466), GTX 1650.

With this PR alone, pipelines were still refused (0x80070057), because the translated
shaders need the directly-indexed heap flags (emit/mod.rs lines 17-21).

I then made victory.exe opt in to the DirectX 12 Agility SDK:

  • build.rs with /EXPORT:D3D12SDKVersion,DATA and /EXPORT:D3D12SDKPath,DATA
  • exported D3D12SDKVersion = and D3D12SDKPath = ".\D3D12" from main.rs
  • Microsoft's D3D12Core.dll (package Microsoft.Direct3D.D3D12 ) in target\release\D3D12\

Result: the "runtime rejected directly-indexed flags" warning is gone, pipelines are
created, and the game now gets as far as the account/sign-in screen.
It then fails with: <PASTE THE LAST ERROR LINE(S) HERE>

So on Windows 10 this PR's fallback is not needed if the app ships the Agility SDK;
the full flags work. Redacted log attached. Happy to open a PR with the exports if you want it.

Expirimental:

powershell -ExecutionPolicy Bypass -File .\agility-test.ps1 -Game "game.exe location"

agility-test-change-to-dot-ps1.txt.txt

**@⁠Sharktooth12** on GitHub · 2026-11-24 07:16 UTC · [original](https://github.com/Marvisak/VIctory/pull/626#issuecomment-7124808102) Follow-up test on Windows 10 22H2 (19045.6466), GTX 1650. With this PR alone, pipelines were still refused (0x80070057), because the translated shaders need the directly-indexed heap flags (emit/mod.rs lines 17-21). I then made victory.exe opt in to the DirectX 12 Agility SDK: - build.rs with /EXPORT:D3D12SDKVersion,DATA and /EXPORT:D3D12SDKPath,DATA - exported D3D12SDKVersion = <NUMBER> and D3D12SDKPath = ".\D3D12\" from main.rs - Microsoft's D3D12Core.dll (package Microsoft.Direct3D.D3D12 <VERSION>) in target\release\D3D12\ Result: the "runtime rejected directly-indexed flags" warning is gone, pipelines are created, and the game now gets as far as the account/sign-in screen. It then fails with: <PASTE THE LAST ERROR LINE(S) HERE> So on Windows 10 this PR's fallback is not needed if the app ships the Agility SDK; the full flags work. Redacted log attached. Happy to open a PR with the exports if you want it. Expirimental: powershell -ExecutionPolicy Bypass -File .\agility-test.ps1 -Game "game.exe location" [agility-test-change-to-dot-ps1.txt.txt](https://github.com/user-attachments/files/35317490/agility-test-change-to-dot-ps1.txt.txt)
Author
Owner

@⁠DeerSilver on GitHub · 2026-11-24 11:01 UTC · original

Tested head df9ab3c merged onto main ffe310e (clean merge) on NVIDIA GeForce RTX 5060 Laptop GPU (Blackwell), driver 621.24, Windows 11 26300, Rust 1.98.1: pass. No game files: the test suite only.

  • The PR's new test passes. It uses the host GPU and ran on the RTX 5060 (DXGI adapter 0 on this laptop, so the host-device helpers return a device and the tests don't take their early return):
    • host_root_signature_serializes_and_creates
  • cargo test --workspace --locked: 343 passed, 0 failed, 6 ignored, against 342 passed / 6 ignored on main.
  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.

AI-assisted (Claude Code).

**@⁠DeerSilver** on GitHub · 2026-11-24 11:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/626#issuecomment-7129559258) Tested head `df9ab3c` merged onto `main` `ffe310e` (clean merge) on **NVIDIA GeForce RTX 5060 Laptop GPU** (Blackwell), driver 621.24, Windows 11 26300, Rust 1.98.1: **pass.** No game files: the test suite only. - The PR's new test passes. It uses the host GPU and ran on the RTX 5060 (DXGI adapter 0 on this laptop, so the host-device helpers return a device and the tests don't take their early return): - `host_root_signature_serializes_and_creates` - `cargo test --workspace --locked`: **343 passed, 0 failed, 6 ignored**, against 342 passed / 6 ignored on `main`. - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. AI-assisted (Claude Code).
Author
Owner

@⁠nopsled0x on GitHub · 2026-11-24 15:21 UTC · original

I tried this on Windows 10 22H2 (build 19045), release build, GPU driver 621.40. The PR's one commit (df9ab3c) is cherry-picked on top of current main (ffe310e), because the PR branch is based on 58fed37. Running the title with run ... --execute:

  • The host root signature refused warning no longer appears (0 occurrences). The retry without the directly-indexed flags is used instead: 236 runtime rejected directly-indexed flags warnings (228 with c00, 8 with c01).
  • Host pipeline creation is then refused instead, with the same 0x80070057: 236 host pipeline refused warnings, 8 of them for vertex+pixel pipelines (for example vertex dfafaf385b2f94e8, pixel 06295fb1d1aefb78) and 228 for compute shaders. The host pipeline library is also rejected once with the same error.
  • The last frame presented is frame 32, with draws=48 drawn=0 dispatches=0.
  • The title still stops with 0xc0000005 (read at 0x68) at victory-image-b99f876b74d4a77f.dll+0xb5a5f8, right after XUserAddAsync, exit code -1073741819. Without the PR, ffe310e stops at the same address; I saw the same on 8e79c80 in an earlier run, but I no longer have that log.

My reading, which is a hypothesis and not something I confirmed: the shaders need the directly-indexed flags, so a root signature without them is accepted but the pipelines that use it are refused, and the title still ends up with a null object. That would mean the PR removes the root signature refusal but not the cause of the crash on this setup. I did not check what the title does at +0xb5a5f8.

Not verified: the PR's test (host_root_signature_serializes_and_creates), cargo clippy, cargo test --workspace, Windows 11 or an Agility SDK runtime, and a second GPU or driver. The crash at this address is also described in #998, #789 and #741.

AI-assisted verification (Claude); the game was run locally by me.

**@⁠nopsled0x** on GitHub · 2026-11-24 15:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/626#issuecomment-7135883062) I tried this on Windows 10 22H2 (build 19045), release build, GPU driver 621.40. The PR's one commit (df9ab3c) is cherry-picked on top of current main (ffe310e), because the PR branch is based on 58fed37. Running the title with `run ... --execute`: - The `host root signature refused` warning no longer appears (0 occurrences). The retry without the directly-indexed flags is used instead: 236 `runtime rejected directly-indexed flags` warnings (228 with `c00`, 8 with `c01`). - Host pipeline creation is then refused instead, with the same `0x80070057`: 236 `host pipeline refused` warnings, 8 of them for vertex+pixel pipelines (for example vertex `dfafaf385b2f94e8`, pixel `06295fb1d1aefb78`) and 228 for compute shaders. The host pipeline library is also rejected once with the same error. - The last frame presented is frame 32, with `draws=48 drawn=0 dispatches=0`. - The title still stops with `0xc0000005` (read at `0x68`) at `victory-image-b99f876b74d4a77f.dll+0xb5a5f8`, right after `XUserAddAsync`, exit code `-1073741819`. Without the PR, `ffe310e` stops at the same address; I saw the same on `8e79c80` in an earlier run, but I no longer have that log. My reading, which is a hypothesis and not something I confirmed: the shaders need the directly-indexed flags, so a root signature without them is accepted but the pipelines that use it are refused, and the title still ends up with a null object. That would mean the PR removes the root signature refusal but not the cause of the crash on this setup. I did not check what the title does at `+0xb5a5f8`. Not verified: the PR's test (`host_root_signature_serializes_and_creates`), `cargo clippy`, `cargo test --workspace`, Windows 11 or an Agility SDK runtime, and a second GPU or driver. The crash at this address is also described in #998, #789 and #741. _AI-assisted verification (Claude); the game was run locally by me._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:23 UTC · original

Automated triage for the maintainers.

Proposed close. In crates/victory-gpu/src/pipeline/host.rs root_signature, this PR retries without CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED/SAMPLER_HEAP_DIRECTLY_INDEXED when the runtime rejects them. Translated shaders reach their descriptors through SM 6.6 heap indexing (victory-shader emit/mod.rs module docs, heap_handle in emit/lower.rs), and those shaders need the flags. So the fallback root signature serializes, but the pipelines built on it are refused.

The Windows 10 runs in this thread confirm this: after the fallback, every host pipeline is still refused with 0x80070057 (236 of 236 in one run), 0 draws are drawn, and the title crashes at the same address as without the PR. That crash was later traced to the auth path, not to this code, so "Fixes #598" does not hold. The new test only exercises the first path on a runtime that accepts the flags. The fallback also replaces a clear "root signature refused" error with a later, less obvious pipeline refusal.

On old runtimes, the fix is to load a runtime that supports these flags (Agility SDK, see #463/#969), which the maintainer would need to decide on. #1768 takes the same retry approach.

CI: no check runs on the head commit.

This pull request will be closed in 48 hours unless the author pushes a change or a maintainer removes the triage: proposed close label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:23 UTC · [original](https://github.com/Marvisak/VIctory/pull/626#issuecomment-7149501903) <!-- victory-triage v1 head=df9ab3c69172c64cd8638344390577334954bd04 verdict=proposed-close at=2026-11-25T01:23:49Z --> Automated triage for the maintainers. **Proposed close.** In `crates/victory-gpu/src/pipeline/host.rs` `root_signature`, this PR retries without `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED`/`SAMPLER_HEAP_DIRECTLY_INDEXED` when the runtime rejects them. Translated shaders reach their descriptors through SM 6.6 heap indexing (`victory-shader` `emit/mod.rs` module docs, `heap_handle` in `emit/lower.rs`), and those shaders need the flags. So the fallback root signature serializes, but the pipelines built on it are refused. The Windows 10 runs in this thread confirm this: after the fallback, every host pipeline is still refused with `0x80070057` (236 of 236 in one run), 0 draws are drawn, and the title crashes at the same address as without the PR. That crash was later traced to the auth path, not to this code, so "Fixes #598" does not hold. The new test only exercises the first path on a runtime that accepts the flags. The fallback also replaces a clear "root signature refused" error with a later, less obvious pipeline refusal. On old runtimes, the fix is to load a runtime that supports these flags (Agility SDK, see #463/#969), which the maintainer would need to decide on. #1768 takes the same retry approach. CI: no check runs on the head commit. This pull request will be closed in 48 hours unless the author pushes a change or a maintainer removes the `triage: proposed close` label. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/626/head:github-bot/gh-626'
git switch 'github-bot/gh-626'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-626'
git switch 'github-bot/gh-626'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-626'
git switch 'github-bot/gh-626'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-626'
git switch 'main'
git merge --squash 'github-bot/gh-626'
git switch 'main'
git merge --ff-only 'github-bot/gh-626'
git switch 'main'
git merge 'github-bot/gh-626'
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!626
No description provided.