Revert "freedreno: Account for multi-draw in num_draws"

autotune already divides draw-cost by # of draws, but only increments
the draw-cost once per multi-draw.  We could either _also_ account for
draw-cost by multiply by # of draws for treat multi-draw as a single
draw.  The latter saves an integer multiply per draw.

Fixes a performance regression triggered by transition from GMEM to
sysmem rendering.

This reverts commit 6bfee9e669.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21543>
This commit is contained in:
Rob Clark 2023-02-26 13:39:32 -08:00 committed by Marge Bot
parent cc55a2e77d
commit e45bbcf649

View file

@ -364,7 +364,7 @@ fd_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info,
assert(ctx->batch == batch);
}
batch->num_draws += num_draws;
batch->num_draws++;
/* Marking the batch as needing flush must come after the batch
* dependency tracking (resource_read()/resource_write()), as that