freedreno: Don't autotune if we are already sysmem

If we've already picked sysmem (for example, non-draw batches) no need
to autotune.  Avoids autotune for compute-only workloads, for example.
Cuts down on per-batch overhead when we get a lot of single grid batches.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35371>
This commit is contained in:
Rob Clark
2025-05-31 06:16:03 -07:00
committed by Marge Bot
parent c5e2e26f49
commit 57eb3529ac
@@ -721,7 +721,7 @@ fd_gmem_render_tiles(struct fd_batch *batch)
trace_framebuffer_state(&batch->trace, batch->gmem, pfb);
}
if (ctx->emit_sysmem_prep && !batch->nondraw) {
if (ctx->emit_sysmem_prep && !sysmem) {
if (fd_autotune_use_bypass(&ctx->autotune, batch) && !FD_DBG(GMEM)) {
sysmem = true;
}