Retain original color and depth backing owners per recording list #2730

Closed
Tristan1019-user wants to merge 1 commit from upstream-pr/2730 into main
Tristan1019-user commented 2026-11-29 16:41:12 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5552822638 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2730). Originally posted by [Tristan1019-user](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!2730
No description provided.