GPU: reuse dirty descriptor set allocations between heap passes #1373

Open
github-bot wants to merge 1 commit from github-bot/gh-1373 into main AGit
Owner

@⁠spk-c on GitHub · 2026-11-26 19:25 UTC · original
spk-c:submit/dirty-descriptor-reuse → main · +25 −1 · 1 files · 1 commits · open

Change

Drain the existing dirty buffer-descriptor HashSet under the same mutex rather than replacing it with a new set every pass. Retains the allocation; writes after the drain still belong to the next pass. Does not change descriptor ordering guarantees or the scan cadence. This is a minimal alternative to the more extensive bitset approach in #1190.

Verification

Direct base 52ac4ec. Clean isolated workspace all-target/all-feature cargo check and Clippy -D warnings passed. New dirty_descriptor_drain_retains_capacity regression executed on a host heap with WARP requested: all entries drained, second drain empty, capacity retained, subsequent write observed. Staged asset policy and diff checks passed. No frame-rate claim; full upstream policy still has the source-size issue covered by #1357. CI/review pending.

AI-assisted, extracted from fork a34963d; no title assets.

**@⁠spk-c** on GitHub · 2026-11-26 19:25 UTC · [original](https://github.com/fxceless/victory-fork/pull/1373) `spk-c:submit/dirty-descriptor-reuse` → `main` · +25 −1 · 1 files · 1 commits · open ## Change Drain the existing dirty buffer-descriptor HashSet under the same mutex rather than replacing it with a new set every pass. Retains the allocation; writes after the drain still belong to the next pass. Does not change descriptor ordering guarantees or the scan cadence. This is a minimal alternative to the more extensive bitset approach in #1190. ## Verification Direct base 52ac4ec. Clean isolated workspace all-target/all-feature cargo check and Clippy -D warnings passed. New `dirty_descriptor_drain_retains_capacity` regression executed on a host heap with WARP requested: all entries drained, second drain empty, capacity retained, subsequent write observed. Staged asset policy and diff checks passed. No frame-rate claim; full upstream policy still has the source-size issue covered by #1357. CI/review pending. AI-assisted, extracted from fork a34963d; no title assets.
AI-assisted extraction of a34963d, with capacity and repeated-drain regression.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:47:21 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1373/head:github-bot/gh-1373'
git switch 'github-bot/gh-1373'

Merge

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