radeon/llvm: Initialize gallivm targets when initializing the AMDGPU target v2
authorTom Stellard <thomas.stellard@amd.com>
Thu, 24 Sep 2015 16:29:56 +0000 (16:29 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 2 Oct 2015 23:41:27 +0000 (23:41 +0000)
commita2e1e3d325a70604151ef093ed741e60d078a21a
treef2aff2be6ea0611615dc01871891221ac1726607
parent76cfd6f1da3748effb480e4f1151910af59fb88a
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@amd.com>
Reviewed-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
CC: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeon/radeon_llvm_emit.c