GPU: invalidate root bindings when a root signature changes #1447
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1448"
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?
Imported from Marvisak/VIctory. Originally posted by Luizbc2 on 2026-11-24T18:05:10Z.
Summary
SetGraphicsRootSignatureandSetComputeRootSignaturecurrently route to a no-op. The draw state therefore keeps root tables, views, and constants from an earlier signature. Track both title root signatures and clear only the bindings for the signature that changes. Rebinding the same signature keeps the existing arguments.This follows D3D12 command-list root-signature semantics. The host root signature used by the translated pipeline is still bound by the existing draw path.
Testing
cargo test --workspace --lib --locked --offline changing_root_signatures_invalidates_only_the_matching_bindingsThe test sets a graphics table, root view, and constants alongside compute constants. It confirms that setting the same graphics signature keeps all bindings, changing it clears only graphics bindings, and setting the compute signature to null clears its bindings. Verified locally on Windows against
ffe310e.AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T21:01:52Z.
Tested on Windows 11, RTX 4070 SUPER (driver 621.14), with the repo toolchain, merged into current
main(ffe310e):cargo test -p victory-gpumainmain+ this PRmain,--all-featuresmain+ this PR,--all-featurescargo clippy --all-targets -- -D warnings, with and without--all-features: clean.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:28:33Z.
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-gpu/src/draw.rs,crates/victory-gpu/src/list.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.