fix(gpu): discard pending descriptor flips when a host heap is dropped #265
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by brainbudt on 2026-11-26T13:42:01Z.
Problem
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.