draw: remove unused draw_has_llvm()

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19024>
This commit is contained in:
Brian Paul 2022-10-05 12:13:16 -06:00 committed by Marge Bot
parent 7178d30a52
commit 67ee7ddfb7
2 changed files with 6 additions and 17 deletions

View file

@ -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.
*/

View file

@ -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);