freedreno: Account for multi-draw in num_draws
authorRob Clark <robdclark@chromium.org>
Sun, 5 Feb 2023 19:36:54 +0000 (11:36 -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/freedreno_draw.c

index 9709d31..51efc39 100644 (file)
@@ -373,7 +373,7 @@ fd_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info,
       assert(ctx->batch == batch);
    }
 
-   batch->num_draws++;
+   batch->num_draws += num_draws;
 
    /* Marking the batch as needing flush must come after the batch
     * dependency tracking (resource_read()/resource_write()), as that