radeon/llvm: Don't use the global context when parsing LLVM IR
authorTom Stellard <thomas.stellard@amd.com>
Thu, 2 May 2013 22:25:53 +0000 (18:25 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 6 May 2013 16:06:00 +0000 (09:06 -0700)
commit7cc98ea88f5ec24369ba8123007637e47f093726
tree40610aae12e79e1b069dc57d7a36f05a803bd842
parentbd850cb4f2c77e2eb6716c865c40b9976633fc23
radeon/llvm: Don't use the global context when parsing LLVM IR

This leads to crashes when multiple threads try to compile compute
shaders in the same time.

Fixes a crash in bfgminer when using more than one thread.
src/gallium/drivers/radeon/radeon_llvm_util.c