GPU: find free descriptor runs across the search cursor #932
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!932
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-932"
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?
@avt0m4t48 on GitHub · 2026-11-25 13:08 UTC · original
avt0m4t48:fix/dynamic-descriptor-cursor→main· +40 −19 · 1 files · 2 commits · openThe dynamic descriptor allocator searches from its cursor to the end of the heap, then resumes at the beginning. A free range that starts before the cursor and ends after it was split between those two passes. The allocator could reject an allocation that fit and cache the false miss until the next release.
Allow the second pass to read up to the requested count minus one slots past the cursor. The search still prefers starts at or after the cursor and never joins the physical end of the heap to the start. Related VItoriaBr regression
Windows WARP reproduced the rejection with the original search and passed both dynamic allocator tests with the patch. An exhaustive eight-slot reference comparison, the Rust check for tests on the MSVC target, and the asset-policy check passed locally. Windows run
AI-assisted using Codex.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.