diff options
author | Mathias Fröhlich <[email protected]> | 2014-09-21 08:54:00 +0200 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2014-09-30 20:51:02 +0200 |
commit | 43e2109326d0b3bcf9b2241b054dadeceae33ca5 (patch) | |
tree | 8114619f9112f06b984f9c5542b0e31309abfd76 /src/gallium/auxiliary/draw/draw_llvm.h | |
parent | d90ff351f3a3598834f77b9c0723532b3abd3cd5 (diff) |
llvmpipe: Reuse llvmpipes LLVMContext in the draw context.
Reuse the LLVMContext already allocated in llvmpipe_context
for draw_llvm if ppossible. This should decrease the memory
footprint of an llvmpipe context.
v2: Fix compile with llvm disabled.
Reviewed-by: Jose Fonseca <[email protected]>
Signed-off-by: Mathias Froehlich <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.h b/src/gallium/auxiliary/draw/draw_llvm.h index a4bd1edcf0d..54a7da2d02c 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.h +++ b/src/gallium/auxiliary/draw/draw_llvm.h @@ -462,6 +462,7 @@ struct draw_llvm { struct draw_context *draw; LLVMContextRef context; + boolean context_owned; struct draw_jit_context jit_context; struct draw_gs_jit_context gs_jit_context; @@ -490,7 +491,7 @@ llvm_geometry_shader(struct draw_geometry_shader *gs) struct draw_llvm * -draw_llvm_create(struct draw_context *draw); +draw_llvm_create(struct draw_context *draw, LLVMContextRef llvm_context); void draw_llvm_destroy(struct draw_llvm *llvm); |