GPU: find free descriptor runs across the search cursor #932

Open
github-bot wants to merge 2 commits from github-bot/gh-932 into main AGit
Owner

@⁠avt0m4t48 on GitHub · 2026-11-25 13:08 UTC · original
avt0m4t48:fix/dynamic-descriptor-cursor → main · +40 −19 · 1 files · 2 commits · open

The 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.

**@⁠avt0m4t48** on GitHub · 2026-11-25 13:08 UTC · [original](https://github.com/fxceless/victory-fork/pull/932) `avt0m4t48:fix/dynamic-descriptor-cursor` → `main` · +40 −19 · 1 files · 2 commits · open The 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](https://github.com/uiliannn/VItoriaBr/commit/b37344f5) 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](https://github.com/avt0m4t48/victory-fork/actions/runs/45620553393) AI-assisted using Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:54:06 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
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.
git fetch -u origin '+refs/pull/932/head:github-bot/gh-932'
git switch 'github-bot/gh-932'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-932'
git switch 'github-bot/gh-932'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-932'
git switch 'github-bot/gh-932'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-932'
git switch 'main'
git merge --squash 'github-bot/gh-932'
git switch 'main'
git merge --ff-only 'github-bot/gh-932'
git switch 'main'
git merge 'github-bot/gh-932'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.