diff options
| author | Brandon Strong <brandostrong@gmail.com> | 2026-11-25 21:03:49 -0800 |
|---|---|---|
| committer | Brandon Strong <brandostrong@gmail.com> | 2026-11-25 21:03:49 -0800 |
| commit | eaf0b8d0c2136ed2d8ea8a7e0883529fa65439dd (patch) | |
| tree | 7203e4359f5a1238da641f85a5e0d3033429ac6f /runtime/opus_decoder | |
| parent | 0b11d86bc07a9be41aa28793eaa651bec768ddf6 (diff) | |
d3d12: keep the replay serial stack a plain thread_local
861bb0546 added geometry_execute_serials() as a function-local
thread_local std::vector. A C++ thread_local with a destructor in
gta6rt.exe adds TLS callbacks to the image, which the loader's TLS
index-0 move must not have (pe_loader.cpp reserve_tls_index0; see
VulkanContext::stage_xdxr_table). With it the title's CRT startup hits
ucrtbase's one-shot _register_thread_local_exe_atexit_callback guard
and terminates: 0xC0000409 (info0=7) at ~1.6 s, before any D3D12 call.
Use a fixed aggregate instead: no destructor, no TLS callbacks, the same
per-thread LIFO, bounded at 32 replays with overflow reported once.
Tested: runtime builds; with LEONIDA_D3D12=vulkan the fix boots past
startup and submits, while 0b11d86bc exits 0xC0000409 at ~1.5 s.
NVIDIA RTX 4090, driver 616.64, Windows 11.
AI-assisted (Claude Code).
Co-Authored-By: Claude Code <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder')
0 files changed, 0 insertions, 0 deletions