fix(victory-gpu): retire kept host resources when releasing dynamic descriptor slots #446
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/446"
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 LooperSalty/AnyXboxX. Originally posted by Lewandox on 2026-11-26T18:55:22Z.
Summary
Rebased onto the
#409combined base (which already removed the 200 µs polling sleep fromHostHeap::dynamic).Fixes a VRAM / host-resource retention leak in
victory-gpu/src/descriptor/host.rs:HostHeap::release(first, n)previously cleared only thetakenbitmap and left every released dynamic slot'sself.kept[index]holding itsID3D12ResourceCOM reference until the slot was later overwritten.HostHeap::releasedrainsself.kept[index]for each released dynamic slot and retires the old resources viacrate::host::retire_resource(old)after dropping theself.nextmutex, matchingHostHeap::keepand preventing evicted textures/buffers from staying pinned in VRAM/shared memory.descriptor::host::tests::release_clears_kept_resources_for_dynamic_slots.Relates to #412.
Verification
cargo test -p victory-gpu descriptor::host::tests::release_clears_kept_resources_for_dynamic_slots(default and--features diagnostics)