GPU: fix missed descriptor tables across the allocation cursor #148
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/148"
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 Zettrox/ztrx. Originally posted by syrrath-creator on 2026-11-25T14:53:50Z.
The dynamic descriptor allocator can reject a table that fits. Reserve all but the last 80 slots of a view heap, allocate 32, then release those 32. All 80 slots are now free. The old search cursor divides them into 32 and 48 slots, so
dynamic(64)returnsNone. The failure cache can then reject further requests of the same size, and a draw or dispatch that needs the table can be skipped.The search now wraps candidate start positions while keeping each table physically contiguous. An occupied slot rules out every candidate start up to that slot. The first valid position in next-fit order wins. The existing allocation lock, release handling and failure cache are preserved.
90b529fafter one successful fenced compute dispatch on a physical RTX 4090. The fixed allocator returned the requested 64 slots. The unit test also checks every occupation mask, cursor and request size for heaps with one through nine slots (67,578 cases).Reproduce the hardware regression and soak · Reproduce the CPU comparison. Developed and tested with Codex.
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.