kernelx: implement XMemIsToolsMemAvailable and route xmem.dll #563
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!563
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/563/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?
@Ivankiosan on GitHub · 2026-11-24 01:50 UTC · original
Ivankiosan:kernelx-xmem-tools-mem→main· +20 −0 · 3 files · 1 commits · merged 2026-11-25 01:06 UTCImplement
XMemIsToolsMemAvailableinkernelxand routexmem.dlltoKERNELX.On Xbox consoles, tooling/debug memory is exclusive to DevKits. In retail titles,
XMemIsToolsMemAvailable()always returns0(FALSE), matching the behavior of sibling tooling APIs inkernelx.rslikeToolingMemoryStatus. This resolves the final remaining stub imported by the retail title Scarlett package (game_scarlett_master.exe).What is in it
crates/xcl/src/hle/kernelx.rs: implementXMemIsToolsMemAvailablereturning 0 (FALSE) and add unit testcrates/xcl/src/hle/mod.rs: add"xmem.dll"toKERNELXroute listcrates/xcl/src/resolver.rs: add unit test verifyingxmem.dllimports route toKERNELXTested
cargo test --workspace -- --test-threads=4: 673 passed, 0 failed, 37 ignoredSKIPPEDGPU tests on adapter: nonegame_scarlett_master.exe):xcl inspectreduced unresolved imports from 1 stub to 0 stubs (587/587 imports resolved)Regression run
Not tested
XMemIsToolsMemAvailableAI use
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@fromthemoonx on GitHub · 2026-11-24 02:03 UTC · original
NVIDIA run, since Not tested lists NVIDIA GPUs.
Tested
70f9fce18ebb395051b81723c2ab1d9c20f670ff, clean worktreestable-x86_64-pc-windows-msvc; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0); debugcargo build --workspace, thencargo test --workspace -- --test-threads=4: 682 passed, 0 failed, 41 ignored (lib 642 / 0 / 21)hle::kernelx::tests::xmem_is_tools_mem_available_returns_false,resolver::tests::xmem_imports_route_through_kernelxgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareXCL_SAMPLE_*not setNot tested
smoke.ps1run here. The change is CPU-side, so the GPU vendor should not matter to it.AI use
@MesshM on GitHub · 2026-11-24 03:33 UTC · original
Test run of
70f9fce18ebb395051b81723c2ab1d9c20f670ffon AMD RDNA4. I merged it onto currentmain91f9a5elocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 694 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 654 passed, 0 failed, 21 ignoredSKIPPED;xmem_is_tools_mem_available_returns_falseandxmem_imports_route_through_kernelxpass.Review:
xmem.dlljoins the module names resolved againstKERNELX(likekernel32legacy.dll). Onmainnothing routedxmem.dll, so its imports were stubs; now any of its functionskernelxalready has resolve there and the rest stay stubs, so I see no regression. Returning FALSE matches a retail console. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@raylitebull on GitHub · 2026-11-25 00:56 UTC · original
Diff check on
70f9fce:XMemIsToolsMemAvailable(returning0) tokernelx::exports()and routingxmem.dllcleanly unblocks retail titles that query tooling memory availability.RX 9060 XT) and NVIDIA (RTX 3060), withPR descriptionpassing.Next step to unblock merge: Please rebase onto current
mainso CI runsBuild and test (Windows, no GPU)on the head.