panfrost: Move panfrost_emit_tile_map to pan_job

...where it's actually called. Saves us from using the vtable since this
isn't version-dependent.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11745>
This commit is contained in:
Alyssa Rosenzweig
2021-07-06 18:08:52 -04:00
committed by Marge Bot
parent fa2d70aad8
commit d4e3f4858c
2 changed files with 19 additions and 19 deletions
@@ -2412,25 +2412,6 @@ panfrost_initialize_surface(struct panfrost_batch *batch,
}
}
void
panfrost_emit_tile_map(struct panfrost_batch *batch, struct pan_fb_info *fb)
{
if (batch->key.nr_cbufs < 1 || !batch->key.cbufs[0])
return;
struct pipe_surface *surf = batch->key.cbufs[0];
struct panfrost_resource *pres = surf ? pan_resource(surf->texture) : NULL;
if (pres && pres->damage.tile_map.enable) {
fb->tile_map.base =
pan_pool_upload_aligned(&batch->pool.base,
pres->damage.tile_map.data,
pres->damage.tile_map.size,
64);
fb->tile_map.stride = pres->damage.tile_map.stride;
}
}
/* Generate a fragment job. This should be called once per frame. (According to
* presentations, this is supposed to correspond to eglSwapBuffers) */
+19
View File
@@ -826,6 +826,25 @@ done:
return ret;
}
static void
panfrost_emit_tile_map(struct panfrost_batch *batch, struct pan_fb_info *fb)
{
if (batch->key.nr_cbufs < 1 || !batch->key.cbufs[0])
return;
struct pipe_surface *surf = batch->key.cbufs[0];
struct panfrost_resource *pres = surf ? pan_resource(surf->texture) : NULL;
if (pres && pres->damage.tile_map.enable) {
fb->tile_map.base =
pan_pool_upload_aligned(&batch->pool.base,
pres->damage.tile_map.data,
pres->damage.tile_map.size,
64);
fb->tile_map.stride = pres->damage.tile_map.stride;
}
}
static void
panfrost_batch_submit(struct panfrost_batch *batch,
uint32_t in_sync, uint32_t out_sync)