mesa/src/amd/llvm
Pierre-Eric Pelloux-Prayer 50d20dc055 ac/llvm: export ac_init_llvm_once in targets
If a program like mpv uses both radeon_dri.so (because --vo=gpu) and
radeonsi_drv_video.so (because --hwdec=vaapi) then LLVM will be inialized twice.

The commit exports the ac_init_llvm_once so there's only one instance of the
function.

See also 18b12bf533 ("targets: export radeon winsys_create functions to silence LLVM warning")
which implemented this workaround initially.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1377
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5648>
2020-07-10 11:57:11 +02:00
..
ac_llvm_build.c amd/llvm: Mark pointer function arguments as 32-byte aligned. 2020-07-08 23:47:06 +00:00
ac_llvm_build.h ac/nir: support 16-bit data in image opcodes 2020-06-02 16:29:25 -04:00
ac_llvm_cull.c ac/cull: don't read Position.Z if it's not needed for culling 2020-01-15 15:06:20 -05:00
ac_llvm_cull.h amd: Move all amd/common code that depends on LLVM to amd/llvm. 2019-10-08 00:44:08 +00:00
ac_llvm_helper.cpp amd/llvm: Mark pointer function arguments as 32-byte aligned. 2020-07-08 23:47:06 +00:00
ac_llvm_util.c ac/llvm: export ac_init_llvm_once in targets 2020-07-10 11:57:11 +02:00
ac_llvm_util.h amd/llvm: Mark pointer function arguments as 32-byte aligned. 2020-07-08 23:47:06 +00:00
ac_nir_to_llvm.c ac/llvm: remove the -1 hack from ac_atomic_inc_wrap 2020-07-09 09:58:01 +02:00
ac_nir_to_llvm.h radeonsi/nir: don't run si_nir_opts again if there is no change 2019-11-25 16:48:27 -05:00
ac_shader_abi.h ac/nir: export some undef as zero 2020-05-05 12:26:26 +02:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00