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

Closed
github-bot wants to merge 1 commit from github-bot/gh-2730 into main AGit
Owner

@⁠Tristan1019-user on GitHub · 2026-11-29 16:41 UTC · original
codex/retain-bound-attachment-owner → main · +93 −14 · 2 files · 1 commits · closed without merging

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.

**@⁠Tristan1019-user** on GitHub · 2026-11-29 16:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2730) `codex/retain-bound-attachment-owner` → `main` · +93 −14 · 2 files · 1 commits · closed without merging ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:43:39 +00:00
github-bot closed this pull request 2026-12-01 08:38:15 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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