Known holes under Wine: a placeholder told by VirtualQuery when class 7 is not answered (#59) #200
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/200"
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 avatarmanz/VIctory-7900XTX. Originally posted by amine23012004 on 2026-11-26T11:22:52Z.
Known holes under Wine: a placeholder told by
VirtualQuerywhen class 7 is not answered (#59)Problem. Wine answers
NtQueryVirtualMemoryclass 7 withSTATUS_INVALID_INFO_CLASS, sowatch::placeholderwas false for every block: no hole was ever known and each block was asked about at every asking — 13,000–23,000VirtualQuerycalls a frame behind Wine's single virtual-memory lock (#59).Fix. Only when class 7 fails with
STATUS_INVALID_INFO_CLASS, a block counts as a placeholder ifVirtualQuerysays it isMEM_RESERVE+MEM_PRIVATE+AllocationProtect == PAGE_NOACCESSover the whole block (the only protectionMEM_RESERVE_PLACEHOLDERtakes). Plain read-write orSEC_RESERVEreservations don't pass, so an ordinaryVirtualAlloccommit there is still seen. Windows answers class 7: unchanged there. One file,crates/victory-gpu/src/watch.rs.This is the version with @zocram4cc's correction from #59 (the first fallback made any
MEM_RESERVEpage a hole and broke 4watch::tests under Proton). Their measurements on Proton / RX 6900 XT: questions about holes 18,520 → 2 a frame, copies 49.4 → ~34 ms a frame;watch::under Proton 54 passed / 1 failed (holes_are_known_until_the_runtime_tells, which asserts a plainPAGE_NOACCESSreservation is not a placeholder — only class 7 can tell those apart).Verification. Windows CI on my fork: clippy
-D warnings+ default and diagnostics test suites green (fork PR #3, which also carries the LAND_ECHO change). I have no Wine rig: the Proton numbers above are zocram4cc's.Credit: Kayotic1337 (class-7 finding) and zocram4cc (measurements + correction), #59.
🤖 Generated with Claude Code
Imported from avatarmanz/VIctory-7900XTX. Originally posted by flamme-demon on 2026-11-26T22:05:01Z.
Tested and working under Proton. With this PR the per-frame line says
0 questions about holesin every run here (about 15 runs of 5 to 12 minutes), where reports without it count thousands a frame (#59, #111). No regression seen.Setup: RX 7900 XTX (RDNA 3), Mesa RADV 26.2.4, Proton Experimental 20261112 with its wineserver rebuilt with the view tree, vkd3d-proton master
71cae09, Microsoft'sd3dcompiler_47; mainc9c932c+ #151, #166, #200, #201, #274; diagnostics build, Series S (VICTORY_UPSCALER=6). Linux runs in a KVM guest with the card passed through.Tested by Claude Code (Claude Opus 5.5) on my machine; I only watched the picture. No captures posted (asset policy).
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.