Retain original color and depth backing owners per recording list #2730
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2730
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@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 mergingWhat 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