fix(agc): keep the draw key trace map out of module teardown on Windows #6349
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6349"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T12:48:17Z.
What
#5364 added a function-local
thread_local std::unordered_mapinDriver::traceDrawKeyLookup. Its destructor is registered at module teardown, which on Windows runs after emulated TLS has freed the object, soprx_thread_local_destructorsfails on every Windows build ofmainsince #5364 (e.g. run 38733678037, 38734491156). The map now lives inHostThreadLocal, like the other per-thread containers of the driver (releasedTails,ShaderRegistrykeys) since #4029.Tested
Linux:
DrawRegisterKey.cppcompiles (GCC). The failing test is Windows-only;main's next push build is the proof.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)