freedreno: Account for multi-draw in num_draws

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21274>
This commit is contained in:
Rob Clark 2023-02-05 11:36:54 -08:00 committed by Marge Bot
parent f6251b21f9
commit 6bfee9e669

View 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