draw/tess: Fix unused-function warning with draw-use-llvm=disabled.
authorVinson Lee <vlee@freedesktop.org>
Wed, 1 Sep 2021 06:21:59 +0000 (23:21 -0700)
committerVinson Lee <vlee@freedesktop.org>
Fri, 3 Sep 2021 07:47:03 +0000 (00:47 -0700)
../src/gallium/auxiliary/draw/draw_tess.c:37:1: warning: unused function 'draw_tes_get_input_index' [-Wunused-function]
draw_tes_get_input_index(int semantic, int index,
^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12663>

src/gallium/auxiliary/draw/draw_tess.c

index ec0cb23..7aa64f0 100644 (file)
@@ -33,6 +33,7 @@
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "util/ralloc.h"
+#ifdef DRAW_LLVM_AVAILABLE
 static inline int
 draw_tes_get_input_index(int semantic, int index,
                          const struct tgsi_shader_info *input_info)
@@ -48,7 +49,6 @@ draw_tes_get_input_index(int semantic, int index,
    return -1;
 }
 
-#ifdef DRAW_LLVM_AVAILABLE
 #define DEBUG_INPUTS 0
 static void
 llvm_fetch_tcs_input(struct draw_tess_ctrl_shader *shader,