draw/llvm: reduce memory usage
authorZack Rusin <zackr@vmware.com>
Wed, 23 Apr 2014 21:06:13 +0000 (17:06 -0400)
committerZack Rusin <zackr@vmware.com>
Thu, 24 Apr 2014 17:59:24 +0000 (13:59 -0400)
commit1c73e919a4b4dd79166d0633075990056f27fd28
tree0a8295b69c5cba74760fa28bea7abab4bb7a618c
parent552a8e44a92937a6ec6db05f4bea583245431b71
draw/llvm: reduce memory usage

Lets make draw_get_option_use_llvm function available unconditionally
and use it to avoid useless allocations when LLVM paths are active.
TGSI machine is never used when we're using LLVM.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_context.h
src/gallium/auxiliary/draw/draw_gs.c
src/gallium/auxiliary/draw/draw_vs.c
src/gallium/auxiliary/draw/draw_vs_exec.c