GPU draw: compare resolved host heap pointers to prevent descriptor heap ABA #1443
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1444"
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 Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T18:02:52Z.
Summary
Fixes \VIC-BT-013\ (tracked in #1242) in \crates/victory-gpu/src/draw.rs:
Verification
AI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T20:23:57Z.
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.
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T20:28:18Z.
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