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!351
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/351/head"
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 21:40 UTC · original
adrianmjim:publier/root-sig-refused→a-publier· +187 −17 · 3 files · 3 commits · merged 2026-11-26 22:30 UTCRefs #168. This is #317 (against
main) ported to this line,a-publiercd8dfc0.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 only a newer D3D12 runtime (the Agility SDK) takes them. This line has no Agility loader (that is #44 onmain), so the message names the runtime and does not point atcargo xtask agility. 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.Port
cd8dfc0.pipeline/host.rsandroot.rsapplied as they are.host.rshad one conflict:create()ends with aHost { .. }literal here rather thanHost::from_device. The check sits right afterhost D3D12 device ready.Tested
a-publiercd8dfc0+ the 3 commits), Windows 11 26300, RX 7900 XT, in-box runtime:cargo build -p victorybuilds without warnings.cargo test -p victory-gpu --lib -- --test-threads=1 root:: pipeline::host::gives 19 passed, 0 failed. That includes the two new tests.main, Windows 10 Pro 19045, RX 6600, by @lerapeurdu62280-debug on #168:why=Unsupported bit-flag set (root signature flags c00).main, not on this branch.Not tested here: Windows 10 on this branch, the full
victory-gpusuite, and the title root-signature warning in the game.@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-26 21:43 UTC · original · reviewed
🟡 Changes recommended
Both forwarding functions lose refusal diagnostics when callers omit the error-blob output; they should capture, log, and release a local host error blob while preserving caller ownership when an output pointer is supplied.
1 open issue
What changed in this PR
Ports the diagnostics from #317 to this branch to help identify the D3D12 runtime limitations reported in #168. This improves logging without adding Agility SDK loading or changing runtime support.
Changes:
crates/victory-gpu/src/root.rscrates/victory-gpu/src/pipeline/host.rscrates/victory-gpu/src/host.rsReview effort: Balanced
@ -117,2 +152,2 @@)}let hr =unsafe { std::mem::transmute::<usize, Serialize>(address)(&desc, version, blob, error) };@Copilot on GitHub · 2026-11-26 21:43 UTC · original
If the title passes null for the optional error-blob output, both forwarding functions also pass null to the host serializer, so this warning always has an empty
whyeven when the runtime could explain the refusal. That loses the diagnostic this PR is intended to provide for callers that do not request error blobs. Capture a local host error blob when the title's output pointer is null, log its text, and release that local blob afterward; keep ownership with the title when it supplies an output pointer.@lerapeurdu62280-debug on GitHub · 2026-11-26 21:47 UTC · original
Tested
6482e72ona-publier, Windows 10 Pro 19045, RX 6600 (in-box runtime; this line has no Agility loader), no game files. As on #317, I used a throwaway test (not pushed) that installs atracing_subscriberand callscrate::host::host()once.ERROR victory_gpu::host: 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 only a newer D3D12 runtime (the Agility SDK) takes them why=Unsupported bit-flag set (root signature flags c00).the_runtime_refuses_flags_it_does_not_knowandhost_refusals_reach_the_title: pass.victory-gpulib: 388 passed, 2 failed. Both fail oncd8dfc0alone on this PC:views_are_made_beside_the_heap_and_copied_in(AMD descriptor bytes, #288) anddepth_bounds_pipeline_loads_and_filters_draws(here it stops at the refused root signature; #328 is the WARP side).The code is the same as #317, which I read through there; my two nits from that review (one warning per distinct
flags, the twoif sm66blocks) still apply and are still non-blocking.AI-assisted: yes (Claude Code)
@MamaLeVrai on GitHub · 2026-11-26 22:31 UTC · original
Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at
6482e72:cargo test --release -p victory-gpu --lib, three runs: 388 passed, 1 failed, 34 ignored each. The one failure,descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in, fails the same way oncd8dfc0on this card (#288 fixes it). A fourth run also failedwatch::tests::a_write_opens_the_view_it_goes_throughonce; thatwatchtest area is flaky on this card on the base too.AI-assisted (Claude Code); no game data.
@ -117,2 +152,2 @@)}let hr =unsafe { std::mem::transmute::<usize, Serialize>(address)(&desc, version, blob, error) };@adrianmjim on GitHub · 2026-11-26 23:01 UTC · original
Fixed in the follow-up #384 (this PR was merged before it): both forwarders go through one helper that gives the host an out pointer of ours when the title passes none, logs its text and releases the blob. A new test,
a_refusal_without_an_error_pointer_keeps_the_hosts_reason, fails without the change.@adrianmjim on GitHub · 2026-11-26 23:01 UTC · original
@lerapeurdu62280-debug both of your nits are in #384, the follow-up, since this one was merged first: the title-side warning now comes once per distinct
flags(repeats atdebug), and the twoif sm66blocks are one. Thanks for testing this on Windows 10, and @MamaLeVrai for the RDNA 2 run.