upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authorkurrutako <kurrutako@users.noreply.github.com>2026-11-25 18:02:47 +0100
committerkurrutako <kurrutako@users.noreply.github.com>2026-11-25 18:02:47 +0100
commitca00cc0e0338d27ff018f94d9a7e6e3da58abe7d (patch)
tree9d2d0b2b0e75d9e165826efc89df805ed9e4cb87 /runtime/test/gameinput_test.cpp
parent9e7720c9e764211e0021aa23907d2d3ecd58963f (diff)
xmem: a slot-31 copy leaves the title's own mappings at the paired CPU range
copy_page_mappings (queue slot 31, CopyPageMappingsBatchX) mirrors every page it maps or unmaps at a GPU-only destination onto the paired CPU range (title_gpu_views::to_cpu). It did so even where the title had mapped that CPU page itself with XMemMapPhysicalPages or XMemMapPhysicalPagesScatter: a copy replaced the title's page, and an unmap (kind 2) left the title's CPU page reserved. The title's next read of it faulted, and the run ended. The console's CopyPageMappingsBatchX edits only the GPU-only range's page table, so a CPU page holding a mapping of the title's (physical, scatter or a slot-31 copy onto that address) is now left as it is. Pages the mirror made itself, zero plants and pages with no mapping still follow the GPU-only range, so the D3D12 layer's reads at the CPU view keep working. Each page kept is counted and the first ones are logged. The unmaps these paths make are now labelled in the read-fault report (CopyPageMappingsBatchX unmap / paired CPU page / remap / hole, XMemMapPhysicalPagesScatter unmap / remap) instead of the default "unmap". xmem_test: test_copy_page_mappings_cpu_view now checks that a copy onto, and an unmap of, a GPU-only page whose paired CPU page the title mapped keep the title's bytes at the CPU page. Both checks fail on the old code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions