diff options
| author | Raavve <184497748+Raavve@users.noreply.github.com> | 2026-11-23 17:56:23 -0300 |
|---|---|---|
| committer | Raavve <184497748+Raavve@users.noreply.github.com> | 2026-11-23 18:51:49 -0300 |
| commit | cb29a2b88f9f538f70c70575bdc9183b469fba9b (patch) | |
| tree | 27ce206b93d4573ab2dbc6a8c2b9c84be7b0c090 /runtime/src/pe_loader.cpp | |
| parent | 664aff24f136a3cf2206930051d24f1a224d1795 (diff) | |
d3d12_xs: slot 133 commits the buffer's xmem pages before the host-pointer import
xmem commits physical pages on first touch (#7556), so a range the title has
mapped but not written yet is still MEM_RESERVE when it places a buffer on it
through device slot 133, and the Vulkan layer's import (#7218) refuses reserved
pages and answers with its fallback buffer, which the title's writes never reach.
Slot 133 now calls a registered pages hook (set_placed_at_va_pages_hook, next to
set_placed_at_va_handler) with the buffer's range before the handler; gta6rt
registers rt::xmem::commit_physical_range. A failed commit is logged once and the
handler still runs. Textures don't call it. The Vulkan layer doesn't link xmem.
Tests: xs_proxy_mock_test checks the hook order, arguments, failure and texture
cases; the new d3d12_xmem_placed_test places a buffer on untouched xmem physical
pages and checks the fallback without the hook, and with it the import and a GPU
copy reading the CPU's writes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions