GPU: say when the D3D12 runtime refuses directly indexed heaps, and log the title's refused root signatures (#168) #317
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!317
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-317"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@adrianmjim on GitHub · 2026-11-26 19:56 UTC · original
adrianmjim:gpu/root-sig-refused→main· +187 −17 · 3 files · 2 commits · closed without mergingRefs #168.
What
crates/victory-gpu/src/host.rs). The runtime's own serializer is asked once whether it takes the directly indexed heap flags (CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED, 0x400 | 0x800) that every host pipeline's root signature uses. If it refuses them, one error says so, with the runtime's reason:the D3D12 runtime refuses directly indexed descriptor heaps (shader model 6.6), so every host pipeline will be refused; Windows 10's in-box runtime does this and needs the D3D12 Agility SDK runtime beside victory.exe. Before, this only showed as one refusal per pipeline, and nothing pointed at the runtime.crates/victory-gpu/src/root.rs). The title serializes root signatures at run time throughD3D12SerializeVersionedRootSignature, which victory forwards to the host serializer. When the host refuses one, a warninghost refused the title's root signaturegives thehr, the flags and the runtime's text. The title's error out pointer is nulled, so a refusal's blob is the host's. Before, the title gotE_INVALIDARGand no blob, and nothing was logged.pipeline/host.rs,root.rs):the_runtime_refuses_flags_it_does_not_knowchecks that an unknown flag is refused with the same text as #168's log. It also checks that a device reporting shader model 6.6 comes with a runtime that serializes the directly indexed flags. The converse is not asserted, since the runtime knows the flags whatever the card supports.host_refusals_reach_the_titlechecks that a refusal reaches the title as an error with the host's blob.Why
On Windows 10's in-box D3D12 runtime the serializer refuses those flags (
Unsupported bit-flag set (root signature flags c00)), whatever the card. Every host pipeline is then refused. The logs only showed per-pipeline refusals, and the title's own refusals were silent. #168's reporter then hit an access violation inside the title. Whether a silently refused title root signature leads to it is not shown; with this change, a run would say.Tested
4f62c2a):cargo test -p victory-gpu --lib -- root:: pipeline::host::gives 7 passed, 0 failed.why=Unsupported bit-flag set (root signature flags c00).The 7 module tests pass, and the fullvictory-gpulib gives 114 passed with only the knowndepth_bounds_control_a_title_drawfailure.Not tested: the title root-signature warning in the game, which needs the title's own calls.
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-26 19:58 UTC · original · reviewed
🟢 Approval recommended
There are no active review issues for the D3D12 root-signature diagnostic changes.
No open issues 🎉
What changed in this PR
Adds diagnostics for the D3D12 root-signature refusals reported in #168, making runtime incompatibility easier to identify without changing pipeline refusal behavior.
Changes:
crates/victory-gpu/src/root.rscrates/victory-gpu/src/pipeline/host.rscrates/victory-gpu/src/host.rsReview effort: Balanced
@lerapeurdu62280-debug on GitHub · 2026-11-26 20:08 UTC · original · approved these changes
Approving. This head (
00003e2) is the commit I tested on #168: Windows 10 Pro 19045, RX 6600. The device-creation error fires on the in-box runtime with the runtime's reason, it is absent with the Agility runtime from #44, and the 7 module tests pass in both cases.I read all three files:
root.rs:clear(error)before the host call, thennote_refusalreads the host's blob without taking a reference (the title owns it).host_refusals_reach_the_titlepasses a danglingerroron purpose, so it also proves the nulling. Bothserializeandserialize_versionedare covered.pipeline/host.rs:runtime_refusesasks the serializer once, with an empty 1.1 description;blob_textdedupes the old inline read;root_signatureis unchanged apart fromDIRECTLY_INDEXED. The test asserts success only where the device reports 6.6, which matches the "runtime, not card" point.host.rs: log-only, after the device is ready.Two non-blocking nits:
host refused the title's root signaturecould fire many times in a run, after the device-level error has already explained why. Logging it once per distinctflagsvalue (or atdebugafter the first) would keep the log readable.if sm66 { … }blocks can be one.I couldn't exercise the title-side warning in a real run (that needs the game).
@adrianmjim on GitHub · 2026-11-26 21:41 UTC · original
For
a-publier: the same change is ported in #351 (one conflict increate(), and the error no longer points at an Agility loader, since that line has none).@adrianmjim on GitHub · 2026-11-27 09:25 UTC · original
Closing: the maintainer's line is now
a-publier, and this change is there already. #351 merged it, and #384 is its follow-up (the null error pointer case and the review nits). Nothing here is needed onmainany more.Pull request closed