kernelx: title memory is not made uncached or write-combined on the PC #3300
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3300"
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 Foniass on 2026-11-29T06:51:09Z.
The title's protections may carry PAGE_NOCACHE (0x200) or
PAGE_WRITECOMBINE (0x400): on the console that is how GPU-visible
memory is mapped. sanitize_protect passed them on to Windows, so the
CPU's own reads of those pages were uncached, and XCL reads title
memory a lot (texture and buffer uploads compare and copy it). The
protection given to Windows now keeps the standard access bits and
PAGE_GUARD only.
From amd-dev
108cbafa(raylitebull), split out of it: that commit alsodecodes XMemVirtualAlloc's flags (which raised the retail title's peak
commit from about 16 to 27 GB on an RTX 5070 Ti, left out) and stops
counting PAGE_GRAPHICS_NOACCESS as GPU-visible (a PR of its own).
What is in it
crates/xcl/src/hle/kernelx.rs:STD_PROTECT_MASK= standard access bits + PAGE_GUARD;sanitize_protectasserts for 0x2404, 0x1204 and PAGE_GUARDTested
cargo test --workspace --no-fail-fast -- --test-threads=4on5f3e7250: 2604 passed, 4 failed, 49 ignored. The 4 failures aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3(E_OUTOFMEMORYfromCreateComputePipelineState, seeds 70 / 545 / 1019 / 1507), the same as on main on this machine; they pass on another RTX 5070 Ti. SKIPPED GPU tests: 44 notices, almost allno wave64.Regression run
main:
this PR:
Not tested
AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-29T07:54:03Z.
merge-check
base:
fa204595head:
5f3e7250verdict: safe to merge
Merged cleanly onto
origin/main(fa204595) in a 5-PR batch (#3288,#3290,#3292,#3294,#3300) and verified on NVIDIA GeForce RTX 5070 Ti with DXC 1.9.2609.5:hle::kernelx::tests(with--test-threads=1): all passed.gpu::: 853 passed, 0 failed, 24 ignored (10.45 s, includingfuzz_validate_and_gpu_0..3).hle::d3d12x::(--test-threads=1, skipping 2 knownmain#3187uma_drivermixed-window tests): 1144 passed, 0 failed, 3 ignored (30.21 s).xcl --lib(--test-threads=1): 0 failed.-p xcl --test e2e(after rebuildingxcl-testtitle): 5 passed, 0 failed (including D3D12 debug layer + DRED).Build and test (Windows, no GPU)andPR description): green.Imported from ivall/xcl. Originally posted by throny on 2026-11-29T09:21:25Z.
merge-check claim
head:
5f3e725055Imported from ivall/xcl. Originally posted by throny on 2026-11-29T09:36:13Z.
merge-check
base:
d8bd9a38head:
5f3e725055merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2618 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at
d8bd9a38: 2618 passed, 0 failed, 49 ignored.review: no finding. PAGE_NOCACHE and PAGE_WRITECOMBINE are dropped by the standard protection mask, so every allocation, protection change, commit and placeholder path strips them; PAGE_GUARD stays. Nothing in crates/xcl/src tests these two bits. The changed asserts fail on main.
performance: not measured here.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).