diff options
author | Michel Dänzer <[email protected]> | 2015-03-26 11:32:59 +0900 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2015-03-30 15:15:10 +0900 |
commit | d64adc3a79e419062432cfa8d1cbc437676a3fbd (patch) | |
tree | 84eb20f0b67faff3a7e3d04aa36c87ec912cfcf0 /src/gallium/drivers/radeonsi/si_pipe.h | |
parent | ce83a6ec8142894531cfad8cd677cd3dc47eced7 (diff) |
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 <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index 422b873db04..f98c7a83744 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -85,7 +85,6 @@ struct si_compute; struct si_screen { struct r600_common_screen b; - LLVMTargetMachineRef tm; }; struct si_sampler_view { @@ -203,6 +202,8 @@ struct si_context { struct pipe_resource *esgs_ring; struct pipe_resource *gsvs_ring; + LLVMTargetMachineRef tm; + /* SI state handling */ union si_state queued; union si_state emitted; |