GPU: release dynamic descriptor slots only to the host heap that allocated them #28
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by wike1701 on 2026-11-27T09:05:02Z.
Port of fxceless/victory-fork#1324 (commit \52ac4ec, GPL-3.0).
Problem
\draw::State::dynamic\ tracks dynamic descriptor slot ranges by the title heap's pointer address, and \descriptor::release_dynamic\ releases them on whichever \HostHeap\ is currently registered at that address when a command list is reset or dropped. If the title releases a shader-visible heap while lists referencing it are still alive and a new heap is allocated at the same address, resetting the older list frees dynamic slots belonging to the new heap. On NVIDIA (where \VICTORY_DYNAMIC_SLOTS=524288\ is enabled by default), two live command lists can then collide on the same dynamic slots.
Fix
Verification