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 <boris.brezillon@collabora.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26249>
This commit is contained in:
committed by
Marge Bot
parent
037e7a530c
commit
7b6e959b73
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user