HLE/GPU: invalidate write trackers on 32-bit XMem allocation release and reuse #2824
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!2824
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2824"
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?
@VlREX on GitHub · 2026-11-25 21:32 UTC · original
VlREX:fix/xmem32-tracker-lifecycle→main· +116 −4 · 3 files · 2 commits · draftSummary
Notify GPU write trackers when 32-bit XMem allocations
are released and reused. Complementary to #2612.
Reproduced failure
new allocation was invisible: clean=true, taken=[]
Native verification
Ryzen 5 3600X / RX 5700 XT / Windows 10
Rust 1.98.1
Baseline:
13f91caTested head:
88c5ea1Remaining: full XMem integration regression,
workspace/HLE results and concurrent copy-back review.
No gameplay or FPS claims.
AI-assisted development (ChatGPT).
Native verification by VlREX.
@fuzeofficlal on GitHub · 2026-11-25 22:41 UTC · original
Verified
88c5ea1dmerged ontomain(f3578e3) on Windows 11:watch::tests::release_and_reuse_marks_the_whole_title_allocation(--ignored --exact): 1/1 passed.watch::tests: 15/15 passed (1 ignored);victory-hlemodules::xmem::tests: 12/12 passed.cargo clippy --locked -p victory-gpu -p victory-hle --all-targets -- -D warnings(default &victory-gpu/diagnostics): 0 warnings;cargo xtask policy:190 files ok.release_title_allocation: walkingVirtualQuery(AllocationBase == address && Type == MEM_PRIVATE) captures multi-protection regions split byPAGE_GUARDwhile rejecting interior pointers; performingVirtualFree(MEM_RELEASE)insideguards()before clearingg.protectedand callingremapped()avoids callingVirtualProtecton freed/reused VA space and clearschanged/armed/alias_ofatomically without lock-order issues.Looks clean and ready to merge.
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.