zink: remove unnecessary draw checks
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 11 May 2021 17:49:10 +0000 (13:49 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 16 Jun 2021 05:00:43 +0000 (05:00 +0000)
I don't know how/why these got here but they aren't needed

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11408>

src/gallium/drivers/zink/zink_draw.c

index 7c857a5..2512279 100644 (file)
@@ -402,9 +402,6 @@ zink_draw_vbo(struct pipe_context *pctx,
               const struct pipe_draw_start_count_bias *draws,
               unsigned num_draws)
 {
-   if (!dindirect && (!draws[0].count || !dinfo->instance_count))
-      return;
-
    struct zink_context *ctx = zink_context(pctx);
    struct zink_screen *screen = zink_screen(pctx->screen);
    struct zink_rasterizer_state *rast_state = ctx->rast_state;