GPU draw: compare resolved host heap pointers to prevent descriptor heap ABA #1444
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
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
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
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/Marvisak--VIctory!1444
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1444/head"
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?
@geiyiliyabumo on GitHub · 2026-11-24 18:02 UTC · original
geiyiliyabumo:fix/draw-heap-pointer-aba→main· +83 −13 · 1 files · 1 commits · closed without mergingSummary
Fixes \VIC-BT-013\ (tracked in #1242) in \crates/victory-gpu/src/draw.rs:
Verification
AI-assisted; synthetic tests only, no game files.
@acetonahard-code on GitHub · 2026-11-24 20:23 UTC · original
Heads-up: this looks like the same fix as #1331 (opened about 30 minutes earlier). Both change
draw.rsso heaps are rebound when the resolved hostID3D12DescriptorHeappointers change, instead of the title's heap addresses. That closes the same reuse/ABA case. The two PRs conflict indraw.rs, so only one can land as-is.Tested on Windows 11, RTX 4070 SUPER (driver 621.14), with the repo toolchain, merged into current
main(ffe310e):cargo test -p victory-gpumainmain+ this PRmain,--all-featuresmain+ this PR,--all-featurescargo clippy --all-targets -- -D warnings, with and without--all-features: clean.cargo fmt --checkwould put thesync_heapssignature on one line.mainisn't rustfmt-clean either.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.
@geiyiliyabumo on GitHub · 2026-11-24 20:28 UTC · original
Thanks @acetonahard-code for catching the overlap and running the RTX 4070 SUPER verification! I checked #1331 and it was indeed opened earlier with the exact same host-COM-identity fix (and avoids cloning on the fast path by borrowing
&ID3D12DescriptorHeap). Closing this PR in favor of #1331 to keep the queue clean.AI-assisted; synthetic tests only, no game files.
Pull request closed