fix(gpu/descriptor): purge deferred upload queues on HostHeap drop (#282) #376
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/376"
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 Androtim/MiniVI. Originally posted by RUIZ-Enrique-25002136 on 2026-12-03T07:51:13Z.
Summary
Purges deferred upload/flip entries (
UPLOAD_WAITS,PENDING_LIST_FLIPS,FLIPS,NEW_PENDING) when aHostHeapis dropped, preventing lingeringArc<HostTexture>references or address-reuse aliasing across destroyed shader-visible descriptor heaps.Addresses #282 (Pass #7
[P2]#4).Changes
crates/victory-gpu/src/descriptor/host.rs:purge_pending_for_heap(heap: usize)clearing entries keyed byheapacrossUPLOAD_WAITS(dropping removedArc<HostTexture>outside the lock),PENDING_LIST_FLIPS(updatingPENDING_LIST_COUNT),FLIPS, andNEW_PENDING.Drop for HostHeapcallingpurge_pending_for_heap(std::ptr::from_ref(self) as usize).purge_pending_for_heap_clears_target_heap_entries_only.Rig Specs Tested On
x86_64)victory-gpucrate; full clippy & tests verified on GitHub Actionswindows-latestCI)x86_64) — Windowsx86_64-pc-windows-msvcCI verifies compilation, clippy, and unit testsRun Settings & Profile
origin/mainVICTORY_*Overrides: N/AMeasurements & Verification
cargo clippy --workspace --all-targets --locked -- -D warnings(verified on GitHub Actionswindows-latestCI)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(verified on GitHub Actionswindows-latestCI)cargo test --locked -p xtask-> 8 passed, 0 failedcargo xtask policy->asset policy: 349 files okcargo test -p victory-gpu --locked -- --test-threads=1(verified on GitHub Actionswindows-latestCI)