Retain original color and depth backing owners per recording list #2730
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2730"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by Tristan1019-user on 2026-11-29T16:41:12Z.
What it changes
Related: #2542 by @fuzeofficlal, which identified the bind-without-a-draw lifetime problem. This is an alternative to that implementation, not an independent discovery of the original defect. Its legal test resource setup informed the regression here.
Retain the actual host texture owner for a bound color/depth attachment on each recording list, including replay after a split. Retaining only the D3D12 resource is not the same as keeping its backing owner. Bind/switch cycles are deduplicated by owner and the list releases its references on reset. This can legitimately keep memory alive longer; it is not a VRAM-saving claim.
How it was tested
The hardware fixture binds and switches attachments 16 times over two lists, handles release on the title side, executes to completion, and checks exactly one reference released per list reset. An earlier negative control kept external references alive and failed the expected ownership assertion rather than submitting dangling resources. The test uses committed attachments, not comprehensive tile/alias stress. No game assets, proprietary SDK files or FPS claims.
Verified on the current PR base with an isolated Cargo target on Windows and the RTX 5080:
cargo test --locked -p victory-gpu --lib attachment_lifetime -- --ignored --test-threads=1, one hardware test passed (not skipped). Full suite not run.Pull request closed