fix(gpu): discard pending descriptor flips when a host heap is dropped #265
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!265
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-265"
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?
@brainbudt on GitHub · 2026-11-26 13:42 UTC · original
brainbudt:fix/host-heap-unique-id-drop→main· +100 −21 · 1 files · 1 commits · openProblem
A replacement descriptor heap could inherit pending texture flips from a heap that previously occupied the same address. Processing one of those flips could read a freed descriptor record.
Change
Give each host heap a monotonic 64-bit ID. Use the ID to select its flip queue and deduplicate pending textures. Dropping a heap removes its queue and pending texture keys. A deferred upload or submission callback can only append to a live queue.
Scope
Fixes #232. Confined to
crates/victory-gpu/src/descriptor/host.rsand its regression tests.Verification
cargo check --locked -p victory-gpu --tests --target x86_64-pc-windows-msvcpassed; Clippy with default anddiagnosticsfeatures passed (excluding the pre-existingclippy::unnecessary_mut_passedatwatch.rs:3626).cargo xtask policypassed for all 265 files;victory-coreandvictory-formatspassed 54 tests (5 ignored).Reviewed with mistral-loop: APPROVE (2 rounds,
mistral-large-4-0+deepseek-v4-1-flash-1017).Created with gpt-6.2-astra in Codex (orchestrated with Gemini 4 Neon in T3 Code).
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.