gallivm: handle llvm 16 atexit ordering problems.
authorDave Airlie <airlied@redhat.com>
Wed, 3 Jan 2024 20:17:50 +0000 (06:17 +1000)
committerEric Engestrom <eric@engestrom.ch>
Thu, 4 Jan 2024 18:35:32 +0000 (18:35 +0000)
commit548cc0dd8c8413b7e1c030c37b4694e18f34f3cc
tree3ca4d3cb71a106e4e5aa3436c41fbdd6ac22610b
parent1c4c1c843106f1a95116fd944ecc82b5bab6448f
gallivm: handle llvm 16 atexit ordering problems.

This is ported from amd ac_llvm_helper.cpp, thanks to Marek for the pointer.

This is needed to avoid crashes due to atexit ordering between some piglit
tests and mesa internals.

Cc: mesa-stable
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26883>
(cherry picked from commit b3cfec2fd824a52023c92fd5928f4f5c1cb449a0)
.pick_status.json
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp