GPU: a refused title root signature still says why with no error pointer, and warns once per flags (follow-up to #351) #384
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!384
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-384"
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 23:01 UTC · original
adrianmjim:publier/root-sig-followup→a-publier· +104 −24 · 2 files · 2 commits · openFollow-up to #351 (merged), for the review points that came in after it was merged. Refs #168.
What
crates/victory-gpu/src/root.rs). Point raised in the review of #351: the title may pass no error out pointer toD3D12SerializeRootSignatureorD3D12SerializeVersionedRootSignature. Both forwarders then passed none to the host either, sohost refused the title's root signaturehad an empty reason. Both now go through one helper,forward():flags, and repeats go todebug.pipeline/host.rs): the two consecutiveif sm66blocks ofthe_runtime_refuses_flags_it_does_not_knoware one.a_refusal_without_an_error_pointer_keeps_the_hosts_reasonchecks that the host's reason is returned throughforward()when the title's pointer is null, and thatserialize_versionedwith a null error pointer still refuses.Tested
RX 7900 XT, Windows 11 26300, in-box runtime, on
a-publier4eb6cfd:cargo test -p victory-gpu --lib -- --test-threads=1 root:: pipeline::host::gives 20 passed, 0 failed (19 + the new test).forward()passing the title's null pointer straight through, the new test fails. So it covers the case.cargo build -p victory-gpu --testsbuilds without warnings in the changed files.rustfmt --checkpasses onroot.rs.pipeline/host.rsis only the two-line change, without reformatting the rest of the file.Not tested: Windows 10 on this follow-up, and the title-side warning in the game.
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-26 23:02 UTC · original · reviewed
🟢 Approval recommended
No active review issues remain for the root-signature diagnostic and warning-deduplication changes.
No open issues 🎉
What changed in this PR
This follow-up to #351 improves GPU root-signature refusal diagnostics, preserving the host’s reason when the title omits an error output pointer and reducing repeated warnings.
Changes:
crates/victory-gpu/src/root.rscrates/victory-gpu/src/pipeline/host.rsReview effort: Balanced
@lerapeurdu62280-debug on GitHub · 2026-11-26 23:36 UTC · original
Windows 10 Pro 19045, in-box D3D12 runtime (no Agility SDK), Radeon RX 6600 (RDNA 2), driver 32.0.21045, at
61b2cb9:cargo test -p victory-gpu --lib -- --test-threads=1 root:: pipeline::host::: 19 passed, 1 failed. The newa_refusal_without_an_error_pointer_keeps_the_hosts_reasonpasses.depth_bounds_pipeline_loads_and_filters_draws(0x80070057). It fails the same way on the base4eb6cfdwithout this PR: Windows 10's in-box runtime refuses the directly indexed heap flags, so it is the environment, not this change.@MamaLeVrai on GitHub · 2026-11-27 00:22 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
61b2cb9:cargo test --release -p victory-gpu --lib397 passed, 0 failed, 34 ignored.AI-assisted (Claude Code); no game data.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.