Repository navigation
Tests: read back mirrored textures across writes and page remapping - #338
Conversation
|
when can i play? |
Exercise the merged GPU-view mirror path end to end on a synthetic R8 texture. Force watched Windows reservations outside the UMA windows, verify CPU rewrites reach the GPU, then verify a later lazy physical mapping overrides the mirror and unmapping restores it. Keep the GPU-view title address throughout and clean up reservations, physical pages and texture registration on failure. No retail data or runtime changes.
4f0699f to
bb436a0
Compare
|
Merged (a6f5f7a). Checked on an RX 9070 (RDNA4) on main a6f5f7a, together with #335, #322, #331, #330, #338, #318 and #332: |
Thank you. I will. |
|
Tested RTX 5060 Ti 8 GB (Blackwell, 32-lane waves), NVIDIA 621.24, Ryzen 5 5600X, Windows 11 Pro 26300 (native, Graphics Tools + XGameRuntime installed, so the debug-layer tests run), rustc 1.100.0 MSVC, debug, Pass: 671 passed, 0 failed, 41 ignored. SKIPPED: only the 2 Run and written with Claude Code (Claude Opus 5.5). |
Exercise the merged GPU-view mirror path end to end on a synthetic R8 texture. Force watched Windows reservations outside the UMA windows, verify CPU rewrites reach the GPU, then verify a later lazy physical mapping overrides the mirror and unmapping restores it. Keep the GPU-view title address throughout and clean up reservations, physical pages and texture registration on failure. No retail data or runtime changes.
What is in it
crates/xcl/src/hle/d3d12x/title_textures.rsfor the mirror behavior from KernelX: GPU-visible title memory outside the windows is write-watched (retail menu text complete) #252 and KernelX / title textures: a GPU view of the title's CPU memory reads the CPU view (retail intro video, no green screen) #283. It reads back the resulting 64 × 64 R8 texture, complementing the existing source-selection checks.Tested
cargo build --workspace(debug) andcargo build --locked --release -p xclcompleted.cargo test -p xcl --lib gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes -- --test-threads=1 --nocaptureexecuted on the physical GPU. One passed with no skip.cargo test --workspace -- --test-threads=4(debug): 671 passed, 0 failed, 41 ignored. 2 GPU cases reported a skip.gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64The maintainer separately tested merged main
a6f5f7aon an RX 9070 (RDNA4) with this change and six other PRs. They reported 636 unit tests passed, zero failed, and verified that the retail title drew its menu and continued past it. Maintainer's test reportRegression run
Both release builds ran the same title offline for 60 seconds, using separate fresh title-data directories and the same launch settings. The retail runs measure startup. The synthetic GPU test exercises the remapping sequence directly.
Main
PR
Not tested
Our local run covered one NVIDIA GPU and one Windows build. Intel GPUs and gameplay remain untested here. Optional sample-data tests were run without external sample files.
AI use
OpenAI Codex (GPT-6) assisted with adapting the test, checking for overlap, running validation, and preparing this submission. The production mirror fixes are credited to #252 and #283.