GPU: forget descriptor range caches when their heap is destroyed #1372
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!1372
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1372"
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?
@spk-c on GitHub · 2026-11-26 19:23 UTC · original
spk-c:submit/heap-range-cache→main· +42 −4 · 2 files · 1 commits · openProblem
Both the regular and marked buffer-view passes keep process-wide caches keyed by HostHeap addresses. A destroyed heap can leave cached shadow references behind; a new heap reusing that address can inherit stale cache state.
Change
Use upstream's existing monotonic heap ID (#1324) for both caches and remove both entries at title heap destruction, after releasing the shader-heap registry lock. Drop cached resource references after the cache locks have been released. Keep marked-pass forgotten-entry propagation, alt-mode reset, and the original full-scan cadence unchanged. This is a narrow alternative to the older fork's per-heap cache approach, adapted for current upstream.
Verification
Direct base
52ac4ec. Clean isolated workspace all-target/all-feature cargo check and Clippy -D warnings passed. Synthetic regression heap_range_cache_forgets_both_passes passed (only the specified heap's entries removed). Staged asset policy and diff checks passed. The regression does not exercise a live COM heap destruction or GPU race. Upstream full policy still has the pre-existing source-size issue addressed by #1357. CI/review pending.AI-assisted, inspired by fork b5cbfbc; no title assets.
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.