diff options
| author | Lucy <35628281+Amzi-01@users.noreply.github.com> | 2026-11-23 23:30:51 +0000 |
|---|---|---|
| committer | Diego Luiz Becker <diegoluizbecker@gmail.com> | 2026-11-25 09:33:54 -0300 |
| commit | 94ba78348ee98b2ae7271eeb218d2f4befc2a714 (patch) | |
| tree | 139ce80302721a3b26e03d3d21c08a8d1aa2f5d8 /runtime/src/main.cpp | |
| parent | f1119e2906dcd166ecc5afea05bab8e9616dbeca (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
| -rw-r--r-- | runtime/src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) { | |||
| 393 | leonida::kernel_writes::set_committer(&rt::xmem::commit_physical_range); | 393 | leonida::kernel_writes::set_committer(&rt::xmem::commit_physical_range); |
| 394 | rt::d3d12_xs::set_texture_page_provider(&rt::xmem::pin_mapped_data); | 394 | rt::d3d12_xs::set_texture_page_provider(&rt::xmem::pin_mapped_data); |
| 395 | leonida::kernel_writes::set_unguarder(&rt::xmem::reopen_unowned); | 395 | leonida::kernel_writes::set_unguarder(&rt::xmem::reopen_unowned); |
| 396 | // The first call of a forwarded device slot names its caller as module+offset (RT-526). | ||
| 397 | rt::d3d12_xs::set_device_slot_caller_formatter(&rt::shims::module_offset); | ||
| 396 | if (int trace_error = 0; !trace_file.empty() && !rt::startup_trace::open(trace_file.c_str(), &trace_error)) { | 398 | if (int trace_error = 0; !trace_file.empty() && !rt::startup_trace::open(trace_file.c_str(), &trace_error)) { |
| 397 | std::fprintf(stderr, trace_error == EEXIST ? "error: the trace file already exists; --trace only creates a new file\n" | 399 | std::fprintf(stderr, trace_error == EEXIST ? "error: the trace file already exists; --trace only creates a new file\n" |
| 398 | : "error: cannot create the trace file\n"); | 400 | : "error: cannot create the trace file\n"); |