From 911d67bdadcbebe08ec35ba55ffb3f40ababde71 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 5 Feb 2023 11:48:04 -0800 Subject: [PATCH] freedreno/a6xx: Drop unused return Signed-off-by: Rob Clark Part-of: --- src/gallium/drivers/freedreno/a6xx/fd6_draw.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_draw.c b/src/gallium/drivers/freedreno/a6xx/fd6_draw.c index 1427958..69c5a75 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_draw.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_draw.c @@ -182,7 +182,7 @@ get_program_state(struct fd_context *ctx, const struct pipe_draw_info *info) return fd6_ctx->prog; } -static bool +static void fd6_draw_vbo(struct fd_context *ctx, const struct pipe_draw_info *info, unsigned drawid_offset, const struct pipe_draw_indirect_info *indirect, @@ -205,7 +205,7 @@ fd6_draw_vbo(struct fd_context *ctx, const struct pipe_draw_info *info, emit.prog = NULL; if (!(ctx->prog.vs && ctx->prog.fs)) - return false; + return; if ((info->mode == PIPE_PRIM_PATCHES) || ctx->prog.gs) { ctx->gen_dirty |= BIT(FD6_GROUP_PRIMITIVE_PARAMS); @@ -226,7 +226,7 @@ fd6_draw_vbo(struct fd_context *ctx, const struct pipe_draw_info *info, /* bail if compile failed: */ if (!emit.prog) - return false; + return; fixup_draw_state(ctx, &emit); @@ -358,8 +358,6 @@ fd6_draw_vbo(struct fd_context *ctx, const struct pipe_draw_info *info, } fd_context_all_clean(ctx); - - return true; } static void -- 2.7.4