GPU: release buffer-pass copies with their descriptor heap #1273
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-26T09:09:11Z.
Dropping 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).
image_bvh_*node tests #1307Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-26T15:13:52Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.