kernelx: implement XMemIsToolsMemAvailable answering false on retail #864
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!864
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-864"
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?
@n-romanovich on GitHub · 2026-11-24 07:00 UTC · original
n-romanovich:kernelx/xmem-tools-mem→main· +7 −0 · 1 files · 1 commits · openOn retail consoles, devkit / tooling memory is not available, and
XMemIsToolsMemAvailable answers FALSE (0). Retail game executables
import this from xmem.dll to verify memory status during startup;
without an HLE export, XCL fell back to an unresolved stub.
Unit test covers the return value.
What is in it
crates/xcl/src/hle/kernelx.rs: implementXMemIsToolsMemAvailablereturning 0, export inKERNELX_EXPORTS, and unit testxmem_tools_mem_unavailable_on_retailTested
cargo test -p xcl --lib xmem_tools_mem_unavailable_on_retail: 1 passed, 0 failedxcl inspect game_scarlett_master.exe: 587 functions from 68 DLLs, 0 unimplemented stubs (xmem.dll: 12 HLE, 0 stubs)Regression run
Main (
5478c4a7c1ae5adba127c8d27018d7fdbf3a8725):PR (
c371d6ec529be7423c8c0c5769655bc99e3fb674):Not tested
AI use
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@dcastell1 on GitHub · 2026-11-24 07:50 UTC · original
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean
main@beaa245(713 passed, 0 failed, 41 ignored on this box):One more passing test than main: XMemIsToolsMemAvailable answering false is covered; nothing else changes verdict.
Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
@n-romanovich on GitHub · 2026-11-24 08:03 UTC · original
Thanks for the review!
@SlopTart on GitHub · 2026-11-24 08:09 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
fa01b91onto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 706 passed, 10 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit ofgpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes(new flake, see #718 addendum).XMemIsToolsMemAvailablegreen.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@throny on GitHub · 2026-11-24 22:59 UTC · original
Two contributors checked independently and found that this PR makes the same change as #563: #1607, group D60. They suggest keeping #563. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@JJAutoCompare on GitHub · 2026-11-25 05:45 UTC · original
Empirical test report (fa01b911)
Verified xcl-dev/xcl PR #864 at
fa01b911183db09a92c5cdda669b1ec5fbdc8e09in a clean detached worktree.Hardware / environment
1.100.0 (0ef1bc386 2026-11-09)and DXC1.9.2609.5 (01b62ad47). Cargo used the unoptimized test profile with debug info and incremental compilation disabled.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both commands ran outsideInvoke-ArcTest.ps1without acquiring the Arc GPU mutex.Commands and results
cargo test --workspace --no-runbuilt the workspace test executables and exited with code 0.cargo test -p xcl --lib xmem_tools_mem_unavailable_on_retail -- --nocaptureexited with code 0. The captured harness summary reported 1 passed, 0 failed, 0 ignored, and 693 filtered out. A case-sensitive scan found 0SKIPPEDlines.AtomicU32::fetch_updateinxgameruntime.Observed behavior
The targeted test called
XMemIsToolsMemAvailable()directly and verified that it returned0(FALSE). The function and test use no D3D12 or GPU calls.Not tested
The full GPU workspace suite and game smoke runs were omitted. Title import resolution and startup were outside the scope of the direct unit test.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr864-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 10:02 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.