startup: stop probing unmapped guest memory from the texture and no-op paths #3769
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3769
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3767"
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?
@Leyukaka on GitHub · 2026-12-01 17:41 UTC · original
Leyukaka:takeover-2245→main· +352 −9 · 10 files · 3 commits · openTakes over #2245 by @Its3rr0rsWRLD, which had no activity for 48 h. Their commits are kept unchanged; I will hand back if they resume. Supersedes #2245.
Changes
Texture publication and the no-op paths no longer probe guest memory that is not mapped yet, and a texture published by address is retried once the mapping exists.
Rebased the original patch onto
main959306d4and carried forward the merge resolutions by pigalot. The original commit message mentions export ordinal 23. The rebased code uses ordinal 28 and preserves the existing exports. Removed the 30-frame skip from SRV publication so a second call can succeed immediately after mapping. The existing probe fixture still expects one fault for a repeat on an ordinary reservation. The fixture now also maps the texel and samples it through the retried SRV. Also removed a BOM fromtests/xmem_mapped_bytes_check.py.Verification
Commit
aeee2fbcb,devpreset, targetsxmem_shim startup_queue_probe startup_stream_consumer:33/33 passed.
@R0Y00 on GitHub · 2026-12-02 02:09 UTC · original
The Linux job's final failed check is
tests/standin_exports_check.py. Please rebase, verify the export expectations against the updated stand-in, and rerun that check.@R0Y00 on GitHub · 2026-12-02 05:33 UTC · original · reviewed
I tested the clean merge tree with main
e958b8e8.python -B tests/standin_exports_check.pystill fails withxmem entries 56 != 54. The extra name and ordinal arex2w_xmem_mapped_bytesand 28; the current catalog classifies both as unmeasured. On the combined tree, changing the expected total to 56 and unmeasured count to 4 makes all 475 checks and all six mutation controls pass. Please update the expectations and add a named/ordinal equivalence assertion for the new export when rebasing.@R0Y00 on GitHub · 2026-12-02 22:25 UTC · original · requested changes
The current trial merge with
main67862ee4still failspython -B tests/standin_exports_check.pywithxmem entries 56 != 54; this is the same catalog failure as the old Linux job. There is also a lifetime issue inxmem_mapped_bytes(): it caches aGetProcAddressresult fromGetModuleHandleWindefinitely. The latter leaves the module reference count unchanged, and the graphics shim has no import dependency onxmem.dll, so the cached address can outlive the module. Please keep a reference for the lifetime of the cached pointer, or acquire a scoped reference around each call. The current queue probe loads xmem and keeps it loaded throughout, so it cannot verify this ownership requirement. Microsoft Win32 documentation.@R0Y00 on GitHub · 2026-12-03 02:44 UTC · original
I verified the export-catalog fix in a clean trial merge of
aeee2fbwith main at7db6f197. The XMem catalog has 56 entries: 52 implemented and four unmeasured. The new x2w_xmem_mapped_bytes entry and ordinal 28 both resolve as unmeasured. Updating only the expected totals to 56 and 52/4 gave 481 cases, with all six catalog mutations caught. python -B tests/startup_triage_run_check.py also passed. Please carry the two expectation updates into this PR when updating its base.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.