[removed by author] #327
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!327
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/327/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?
@thegl0w on GitHub · 2026-11-21 22:17 UTC · original
gpu-alias/device-attach→main· +833 −6 · 11 files · 6 commits · merged 2026-11-22 04:51 UTC[removed by author]
On the console a graphics allocation is GPU-visible at its CPU address as soon as it exists. era_title_gpu is a process-wide registry that the desktop xmem.dll now routes its graphics memory types through: - track and untrack register the region with era_query, as before; - once a D3D12 device is attached, every tracked allocation is opened as an era_gpu_alias heap and mapped in an era_title_va::Table, and later allocations are aliased when they are tracked; - translate, locate (buffer and offset) and shader_view (packed ranges with buffers in slot order for TitleLookup) serve a D3D12 layer. An allocation that cannot be aliased stays tracked without a translation, and attach reports the first such failure after trying every allocation. detach drops the aliases and keeps tracking. xmem.dll keeps its four exports and imports and does not load D3D12; xmem_shim_exports now checks that. How a separate D3D12 layer reaches the registry across the DLL boundary is left to the lead's export decision. gpu_alias_registry_{warp,hardware} track allocations before and after attach, including unaliasable interior blocks, and drive TitleLookup on the GPU from the registry's shader view: 15 addresses, 12 hits, matching CPU reads. untrack, detach and re-attach are checked against the same translations. era_gpu_alias.h now guards WIN32_LEAN_AND_MEAN and NOMINMAX, since xmem_shim.cpp defines them too. Co-Authored-By: Claude Opus 5.5 <[email protected]>f847956with the debug layer b6b3fd197621a65e5348b785515github-bot referenced this pull request2026-11-27 01:50:25 +00:00
github-bot referenced this pull request2026-11-27 01:50:28 +00:00
@R0Y00 on GitHub · 2026-11-22 03:45 UTC · original
state()first allocatesStatewith throwingnew, but the public registry paths arenoexcept. In particular,track()callsstate()before entering itsbad_allochandler. If that first allocation fails while servicing XMemAlloc, the process terminates instead of following the allocation-failure path. Please make first-use initialization safe for these entry points and keep registry/device destruction out of DLL teardown. A focused failure-path check should demonstrate that a failed first track leaves no partial registration and can be retried.@R0Y00 on GitHub · 2026-11-22 03:49 UTC · original
For this PR, keep the registry private to the module that owns it (option c) and preserve the four XMem exports. The direct-linked fixture can claim attach/lookup behavior within that module. A D3D12 client in another DLL needs a single shared registry and a two-DLL fixture proving it sees allocations from the real xmem provider. Please leave that cross-module ABI for the first such consumer. The outstanding noexcept allocation-failure review still applies.
github-bot referenced this pull request2026-11-27 01:51:59 +00:00
runtime: give xmem graphics allocations desktop GPU addresses on attachto [removed by author]