lima: Fix compiler warnings for unused functions.
authorAndreas Baierl <ichgeh@imkreisrum.de>
Thu, 11 Jul 2019 13:26:24 +0000 (15:26 +0200)
committerQiang Yu <yuq825@gmail.com>
Sat, 13 Jul 2019 13:15:05 +0000 (13:15 +0000)
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/lima_draw.c
src/gallium/drivers/lima/lima_state.c

index c87542d24bb462e16e55640338d81e6cf4539743..8c1e7ed01bc973cc76a588152419670d483fcd3e 100644 (file)
@@ -1009,6 +1009,7 @@ lima_calculate_alpha_blend(enum pipe_blend_func rgb_func, enum pipe_blend_func a
       0x0C000000; /* need check if this GLESv1 glAlphaFunc */
 }
 
+#if 0
 static int
 lima_stencil_op(enum pipe_stencil_op pipe)
 {
@@ -1032,6 +1033,7 @@ lima_stencil_op(enum pipe_stencil_op pipe)
    }
    return -1;
 }
+#endif
 
 static int
 lima_calculate_depth_test(struct pipe_depth_state *depth, struct pipe_rasterizer_state *rst)
index 3cb8c57ffc87849986b974a400ef881d0ad10573..3b78b6dcbf65503106f9f2ff3b24b9fc49c891c5 100644 (file)
@@ -414,7 +414,7 @@ lima_set_sampler_views(struct pipe_context *pctx,
    ctx->dirty |= LIMA_CONTEXT_DIRTY_TEXTURES;
 }
 
-static boolean
+UNUSED static boolean
 lima_set_damage_region(struct pipe_context *pctx, unsigned num_rects, int *rects)
 {
    struct lima_context *ctx = lima_context(pctx);