kernelx: report the physical memory layout (XMemGetPhysicalMemoryLayout) #3316
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3316"
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 ivall/xcl. Originally posted by illu0x on 2026-11-29T07:38:04Z.
Export
XMemGetPhysicalMemoryLayout, which was auto-stubbed. A title that queries the split between standard- and GPU-optimal-bandwidth physical memory (XMEM_PHYSICAL_MEMORY_LAYOUT) now gets an answer instead of a stub. XCL has one memory pool with no bandwidth split on the PC, so both page numbers are 0 — all title memory counts as GPU-optimal from page 0, matching the single fast-memory poolXMemGetWorkingSetStatisticsalready reports. A null layout returns FALSE withERROR_INVALID_PARAMETER.Part of #1833.
What is in it
kernelx: report the physical memory layout (XMemGetPhysicalMemoryLayout)— new export, implementation and unit test, incrates/xcl/src/hle/kernelx.rsTested
stable-x86_64-pc-windows-msvc, debug; GPU AMD Radeon RX 6600cargo test --workspace -- --test-threads=4: 2469 passed, 1 failed, 29 ignored, 0 SKIPPEDhle::kernelx::tests::physical_memory_layout_writes_both_page_numberspasses.gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, is a pre-existing RDNA2-only wave32WaveReadLaneAtGPU/CPU mismatch (the documentedamd_reduced_seedsfamily, HANDOFF.md). It fails identically onmainwith this change stashed, and is unrelated to kernelx.Regression run
Both runs on one retail title (title id
b41e6560), AMD RX 6600, 60 s measured,XCL_PREPARE=0(pipelines built on demand; identical flags for both, so the comparison is fair):Head vs main: 1438 / 1501 frames = 96%, peak commit 18011 / 17206 MB = 105%, no device removal, no crash. The title does not call
XMemGetPhysicalMemoryLayout, so this is a no-regression check on the surrounding runtime rather than a test of the new path.Not tested
AI use
🤖 Generated with Claude Code
Pull request closed