summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glheader.h
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2015-03-21 01:13:54 +0100
committerRoland Scheidegger <[email protected]>2015-03-21 01:52:03 +0100
commite8039208c4a771b0c1fb8a44623bcf0261508f87 (patch)
treea8560e3b0db1fb7cb72d3f2c9e6044a6836bbf86 /src/mesa/main/glheader.h
parentb2dccfd17eb045ce240cda232d40edb5dc1c7c31 (diff)
llvmpipe: use global llvm context for PIPE_SUBSYSTEM_EMBEDDED
There's 2 reasons why we'd want to use the global context: 1) There still seems to be one memory "leak" left when using multiple llvm contexts (it is not a true leak as the memory disappears into some still addressable pool but nevertheless the memory consumption grows). See http://cgit.freedesktop.org/~jrfonseca/llvm-jitstress/ 2) These contexts get kinda big - even when disposing modules etc. after compiling a shader the LLVMContext can easily be over 100kB. So when there's lots of llvm contexts arounds it adds up. The downside is that at least right now this is absolutely not thread safe, so this only works safely in environments where multiple pipe contexts are not used concurrently. Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/glheader.h')
0 files changed, 0 insertions, 0 deletions