From 1c73e919a4b4dd79166d0633075990056f27fd28 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Wed, 23 Apr 2014 17:06:13 -0400 Subject: draw/llvm: reduce memory usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Roland Scheidegger Reviewed-by: José Fonseca --- src/gallium/auxiliary/draw/draw_context.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/auxiliary/draw/draw_context.c') diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 0a678790f13..ddc305b3b8d 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -68,6 +68,12 @@ draw_get_option_use_llvm(void) } return value; } +#else +boolean +draw_get_option_use_llvm(void) +{ + return FALSE; +} #endif -- cgit v1.2.3