diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 1f67970f32d..81ceefc32bb 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -49,30 +49,20 @@ #include "gallivm/lp_bld_init.h" #include "gallivm/lp_bld_limits.h" #include "draw_llvm.h" - -boolean -draw_get_option_use_llvm(void) -{ - return debug_get_bool_option("DRAW_USE_LLVM", TRUE); -} -#else -boolean -draw_get_option_use_llvm(void) -{ - return FALSE; -} #endif -bool -draw_has_llvm(void) + +boolean +draw_get_option_use_llvm(void) { #ifdef DRAW_LLVM_AVAILABLE - return draw_get_option_use_llvm(); + return debug_get_bool_option("DRAW_USE_LLVM", TRUE); #else - return false; + return FALSE; #endif } + /** * Create new draw module context with gallivm state for LLVM JIT. */ diff --git a/src/gallium/auxiliary/draw/draw_context.h b/src/gallium/auxiliary/draw/draw_context.h index d42e985219f..3986d6469e3 100644 --- a/src/gallium/auxiliary/draw/draw_context.h +++ b/src/gallium/auxiliary/draw/draw_context.h @@ -67,7 +67,6 @@ struct draw_so_target { int internal_offset; }; -bool draw_has_llvm(void); struct draw_context *draw_create(struct pipe_context *pipe);