hle(xmem): pool-back MEM_COMMIT calls inside reserved XMemVirtualAlloc ranges on macOS #506
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by Sheffy007 on 2026-11-27T22:31:14Z.
Summary
On macOS, one-step
XMemVirtualAlloc(NULL, size, MEM_RESERVE | MEM_COMMIT, ...)backs the allocation with aPoolviaxmem_physical::back_with_poolso the native GPU backend can resolve title addresses throughPoolTable(a017f770).However, when the title reserves virtual address space first (
XMemVirtualAlloc(NULL, size, MEM_RESERVE, ...)or aPAGES_64Kplaceholder) and commits granules or sub-ranges later viaXMemVirtualAlloc(at, size, MEM_COMMIT, ...)orVirtualAlloc(at, size, MEM_COMMIT, ...)(as ina_placeholder_reservation_commits_in_parts),xmem_posix.rs:161-172andhost_posix.rs:267-278call plainmem::commit(mach_vm_protect) on anonymous VM pages without creating pool backing.As a result, any GPU resource, descriptor heap buffer view, constant buffer, vertex/index buffer, or command placed in two-step committed
XMemVirtualAllocmemory is invisible toPoolTable, failing withtitle address ... is not in a mapped poolor leaving multi-page buffer views as the null view (a buffer view over title memory with a gap stays the null view).Refs #15, #258
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Sheffy007 on 2026-11-27T22:31:15Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T22:31:26Z.
Claimed by @Sheffy007. Open a draft pull request with
Refs #506in its description within 24 hours, or the claim expires.