freedreno/a6xx: Drop unused return
authorRob Clark <robdclark@chromium.org>
Sun, 5 Feb 2023 19:48:04 +0000 (11:48 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 16 Feb 2023 19:57:13 +0000 (19:57 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21274>

src/gallium/drivers/freedreno/a6xx/fd6_draw.c

index 1427958..69c5a75 100644 (file)
@@ -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