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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user