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:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user