From 7b6e959b731bc0013b0def916c5212a2d9d7e204 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Tue, 14 Nov 2023 17:50:34 +0100 Subject: [PATCH] panfrost: Move the panfrost_emit_tile_map() call around Move the panfrost_emit_tile_map() call before any of the per-gen calls in panfrost_batch_submit(). This is in preparation of moving the per-gen batch submission logic to a single hook instead of having multiple indirect calls, and given the tile map doesn't depend on any of the states modified by the per-gen calls, moving it before them shouldn't be an issue. Signed-off-by: Boris Brezillon Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/panfrost/pan_job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index 199c51c78e3..b28d97b788c 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -806,6 +806,7 @@ panfrost_batch_submit(struct panfrost_context *ctx, struct pan_image_view rts[8], zs, s; panfrost_batch_to_fb_info(batch, &fb, rts, &zs, &s, false); + panfrost_emit_tile_map(batch, &fb); screen->vtbl.preload(batch, &fb); screen->vtbl.init_polygon_list(batch); @@ -814,7 +815,6 @@ panfrost_batch_submit(struct panfrost_context *ctx, * FBD for the batch (if there is one). */ screen->vtbl.emit_tls(batch); - panfrost_emit_tile_map(batch, &fb); if (has_frag) { screen->vtbl.emit_fbd(batch, &fb);