From 74bf391fdae4e5d5c81314b8abe05412807d4f69 Mon Sep 17 00:00:00 2001 From: Mumogg <104529023+Mumogg@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:46:46 -0600 Subject: merge follow-up: the test tree builds again - xmem.cpp: rt::xmem::commit_physical_range and commit_physical_pages exist for the run-mapped xmem too (pages are committed when allocated, so they only check the range), and main.cpp registers the slot 133 hook as main does. - vk_test_device.h: VK_EXT_external_memory_host and host_pointer_alignment are back next to the A8 render target probe; d3d12_existing_heap_test and d3d12_xmem_placed_test use them. - xs_proxy_mock_test.cpp: the stack's version, which tests the proxy that is in the tree (the automatic merge left two list mocks in one switch). - d3d12_xs_device.cpp: no include of vulkan_replay.h, which the proxy tests without Vulkan headers could not compile, and the diagnostic that needed it is gone. Every target builds with clang-cl 22.1.8 + xwin. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt --- runtime/src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime/src/main.cpp') diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp index 7d0dbfd88..63bd016e8 100644 --- a/runtime/src/main.cpp +++ b/runtime/src/main.cpp @@ -177,8 +177,7 @@ int wmain(int argc, wchar_t** argv) { } rt::d3d12_trace::set_enabled(trace_d3d12); // Slot 133 imports the title's pages; xmem commits them on first touch, so they are committed first. - // MERGE NOTE: main registers rt::xmem::commit_physical_range here for its commit-on-touch xmem. This branch keeps - // the run-mapped xmem (pages are committed when allocated), so there is nothing to commit before slot 133. + rt::d3d12_xs::set_placed_at_va_pages_hook(&rt::xmem::commit_physical_range); if (int trace_error = 0; !trace_file.empty() && !rt::startup_trace::open(trace_file.c_str(), &trace_error)) { std::fprintf(stderr, trace_error == EEXIST ? "error: the trace file already exists; --trace only creates a new file\n" : "error: cannot create the trace file\n"); -- cgit v1.2.3