GPU: preserve RTV and DSV descriptor values across command-list cuts #1371
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/fxceless--victory-fork!1371
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1371"
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?
@spk-c on GitHub · 2026-11-26 19:22 UTC · original
spk-c:submit/target-replay→main· +86 −23 · 2 files · 1 commits · openProblem
When a title list is cut and its state replayed into a new host list, the original RTV/DSV CPU slots may already have been rewritten. Replay currently looks at those slots again, instead of the descriptor values captured by the original SetRenderTargets call.
Change
Snapshot descriptor words and resource identity at SetRenderTargets and reconstruct views from the snapshots on replay. Preserve current upstream target-format tracking and existing typed-null/missing-view behavior. The caller's resource lifetime contract remains unchanged; no new raw pointer dereference is introduced beyond the existing resource lookup path.
Verification
Directly based on upstream
52ac4ec. Fresh isolated workspace all-target/all-feature cargo check and Clippy -D warnings passed; syntheticrender_target_snapshot_preserves_original_descriptor_wordspassed; staged asset policy (2 files) and diff check passed. The test checks value capture rather than a full GPU replay. No gameplay claims. Full upstream policy currently also needs upstream #1357's oversized source-file split; CI/review pending.AI-assisted, adapted from fork commits 745b0d1 and 9059527. No proprietary assets.
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.