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
6bfee9e6697e286c82f36a15d0e8a7c1ec7d2a02.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21543>
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