radeonsi: call ac_init_llvm_once before any util_queue initialization
authorMarek Olšák <marek.olsak@amd.com>
Tue, 31 Jan 2023 12:30:51 +0000 (07:30 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Feb 2023 00:18:02 +0000 (00:18 +0000)
commit60a3f0667f7bffcc1667396f3aa1fc891dcba3a0
treea8a104618d25ae6f6da09da0b6ba9b37277e1241
parentda7dfbe3b85089fa242d076f4e4306431f69b084
radeonsi: call ac_init_llvm_once before any util_queue initialization

The winsys uses util_queue, which calls atexit, so do it before the winsys
is created.

Cc: stable
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21041>
src/gallium/drivers/radeonsi/si_pipe.c