Mesa (master): radeon/llvm: Initialize gallivm targets when initializing the AMDGPU target v2
Tom Stellard
tstellar at kemper.freedesktop.org
Sat Oct 3 01:03:47 UTC 2015
Module: Mesa
Branch: master
Commit: a2e1e3d325a70604151ef093ed741e60d078a21a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2e1e3d325a70604151ef093ed741e60d078a21a
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Thu Sep 24 16:29:56 2015 +0000
radeon/llvm: Initialize gallivm targets when initializing the AMDGPU target v2
This fixes a race condition in the glx-multithreaded-shader-compile
test.
v2:
- Replace gallivm_init_llvm_{begin,end}() with gallivm_init_llvm_targets().
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
CC: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
---
src/gallium/drivers/radeon/radeon_llvm_emit.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c
index ff30a14..6b2ebde 100644
--- a/src/gallium/drivers/radeon/radeon_llvm_emit.c
+++ b/src/gallium/drivers/radeon/radeon_llvm_emit.c
@@ -26,6 +26,7 @@
#include "radeon_llvm_emit.h"
#include "radeon_elf_util.h"
#include "c11/threads.h"
+#include "gallivm/lp_bld_misc.h"
#include "util/u_memory.h"
#include "pipe/p_shader_tokens.h"
@@ -87,6 +88,7 @@ void radeon_llvm_shader_type(LLVMValueRef F, unsigned type)
static void init_r600_target()
{
+ gallivm_init_llvm_targets();
#if HAVE_LLVM < 0x0307
LLVMInitializeR600TargetInfo();
LLVMInitializeR600Target();
More information about the mesa-commit
mailing list