llvmpipe: Reuse llvmpipes LLVMContext in the draw context.
authorMathias Fröhlich <Mathias.Froehlich@gmx.net>
Sun, 21 Sep 2014 06:54:00 +0000 (08:54 +0200)
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>
Tue, 30 Sep 2014 18:51:02 +0000 (20:51 +0200)
commit43e2109326d0b3bcf9b2241b054dadeceae33ca5
tree8114619f9112f06b984f9c5542b0e31309abfd76
parentd90ff351f3a3598834f77b9c0723532b3abd3cd5
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 <jfonseca@vmware.com>
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_context.h
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_llvm.h
src/gallium/drivers/llvmpipe/lp_context.c