fix(gpu): retain every rebound stride table until list reset #645
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/lobomfz--VIctory-xmem!645
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-645"
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?
@tommiehansen on GitHub · 2026-12-05 22:50 UTC · original
tommiehansen:prc/stride-buffer-lifetime-20261205→main· +263 −4 · 4 files · 12 commits · openWhy
A command list can bind multiple descriptor heaps before execution. Retaining the stride table only on the first refresh allows subsequent tables to lose their last external owner before the GPU consumes them. This is a resource-lifetime bug, not an FPS optimization.
What changes
Retain every distinct stride table before the once-per-list refresh guard. Per-list identity deduplication retains one COM reference per resource; reset releases the references. The existing refresh cadence is unchanged. Credit: Larp #277.
Benchmark results — isolated Windows guard cost
Eight paired blocks; actual GPU readback checked separately.
This measures the isolated guard, not whole draw or frame time.
Why this should be merged
It prevents a use-after-release when descriptor heaps are rebound in one recorded list, with bounded retention and explicit cleanup. The added per-call CPU cost is disclosed; no gameplay performance claim is needed for this correctness fix.
Validation
Final CI at
29a9c75passes three real WARP compute dispatches reading A/B/A (96 exact dwords), after releasing external owners, stable COM references over 128 repeated bindings and reset cleanup. Restoring the original guard order reproduces one retained table instead of two. Initial retention and GPU readback also passed. The final workflow corrects only the negative-control exit wrapper. No runtime switch or AMD-specific dependency.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.