fix(gpu/descriptor): purge deferred upload queues on HostHeap drop (#282) #376
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!376
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@RUIZ-Enrique-25002136 on GitHub · 2026-12-03 07:51 UTC · original
RUIZ-Enrique-25002136:fix/descriptor-heap-drop-purge→main· +99 −0 · 1 files · 1 commits · merged 2026-12-03 08:02 UTCSummary
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)