GPU: release buffer-pass copies with their descriptor heap #1276
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!1276
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1276"
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?
@UwUCammie on GitHub · 2026-11-26 09:09 UTC · original
UwUCammie:fix/retire-heap-view-caches→main· +52 −0 · 2 files · 1 commits · openDropping a shader-visible view heap left its buffer copies in both heap-pass caches. Both tables use the address of the host heap as the key. That kept the copies alive and allowed a later heap allocated at that address to inherit the old ranges.
Remove both entries when the view heap drops. Release the copies after unlocking the tables so GPU resource destruction stays outside the critical sections. Command lists that still use a copy keep their own reference.
The new test puts a real GPU buffer copy in both caches and releases the descriptor heap. It failed before the fix. The lifetime test, descriptor tests and heap-pass tests all passed on an RX 7900 XT with RADV 26.3.1 under Wine (13 tests).
@Proudnoob4 on GitHub · 2026-11-26 15:13 UTC · original
RTX 4080 / Win10 verification (
989e5c6)Ported
#1276(impl Drop for HostHeap->crate::draw::forget_heap_ranges(self)) onto ourVIctory-NVIDIAtree (RANGEShoisted out ofheap_buffer_pass):draw::tests::dropping_a_descriptor_heap_releases_buffer_pass_cachepassed (weak.upgrade().is_none()immediately ondrop(heap)).0.6667):0/230black frames,4,582draws/frame, zero crashes or descriptor/shadow lifetime issues.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.