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_context.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_context.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.h b/src/gallium/auxiliary/draw/draw_context.h index 48549fe200e..a5a6df5b72e 100644 --- a/src/gallium/auxiliary/draw/draw_context.h +++ b/src/gallium/auxiliary/draw/draw_context.h @@ -64,6 +64,11 @@ struct draw_so_target { struct draw_context *draw_create( struct pipe_context *pipe ); +#if HAVE_LLVM +struct draw_context *draw_create_with_llvm_context(struct pipe_context *pipe, + void *context); +#endif + struct draw_context *draw_create_no_llvm(struct pipe_context *pipe); void draw_destroy( struct draw_context *draw ); |