radeonsi: Cache LLVMTargetMachineRef in context instead of in screen
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 26 Mar 2015 02:32:59 +0000 (11:32 +0900)
committerMichel Dänzer <michel@daenzer.net>
Mon, 30 Mar 2015 06:15:10 +0000 (15:15 +0900)
commitd64adc3a79e419062432cfa8d1cbc437676a3fbd
tree84eb20f0b67faff3a7e3d04aa36c87ec912cfcf0
parentce83a6ec8142894531cfad8cd677cd3dc47eced7
radeonsi: Cache LLVMTargetMachineRef in context instead of in screen

Fixes a crash in genymotion with several threads compiling shaders
concurrently.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89746

Cc: 10.5 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeonsi/si_compute.c
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_shaders.c