From 94ba78348ee98b2ae7271eeb218d2f4befc2a714 Mon Sep 17 00:00:00 2001 From: Lucy <35628281+Amzi-01@users.noreply.github.com> Date: Mon, 23 Nov 2026 23:30:51 +0000 Subject: d3d12_xs: slot caller via a formatter hook, cleared on reset (review of #9990) - The proxy no longer calls rt::shims::module_offset itself: gta6rt sets it with set_device_slot_caller_formatter; with none set the address is shown in hex, so xs_proxy_mock_test links d3d12_xs_device.cpp alone as before. - reset_device_proxy_stats() clears the stored caller with the first-call flag; xs_proxy_mock_test checks call -> caller -> reset -> empty -> call. - The accessor comment says which slots it covers and that it is a diagnostic observation (flag set before the caller is stored). AI-assisted. Co-Authored-By: Claude Opus 5.5 --- runtime/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/src/main.cpp') diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp index f01997775..7e5e751c4 100644 --- a/runtime/src/main.cpp +++ b/runtime/src/main.cpp @@ -393,6 +393,8 @@ int wmain(int argc, wchar_t** argv) { leonida::kernel_writes::set_committer(&rt::xmem::commit_physical_range); rt::d3d12_xs::set_texture_page_provider(&rt::xmem::pin_mapped_data); leonida::kernel_writes::set_unguarder(&rt::xmem::reopen_unowned); + // The first call of a forwarded device slot names its caller as module+offset (RT-526). + rt::d3d12_xs::set_device_slot_caller_formatter(&rt::shims::module_offset); 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