From 037e7a530cdd07125e270db76d2cb0bb7a6c3572 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 4 Oct 2023 09:51:00 +0200 Subject: [PATCH] panfrost: Emit the fragment job from panfrost_batch_submit() Now that emit_fragment_job() stores the fragment job GPU pointer in panfrost_batch, we can move this step in panfrost_batch_submit(), which will help with v10/CSF support. Signed-off-by: Boris Brezillon Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/panfrost/pan_job.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index 1dd3a691c22..199c51c78e3 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -717,7 +717,6 @@ panfrost_batch_submit_jobs(struct panfrost_batch *batch, uint32_t out_sync) { struct pipe_screen *pscreen = batch->ctx->base.screen; - struct panfrost_screen *screen = pan_screen(pscreen); struct panfrost_device *dev = pan_device(pscreen); bool has_draws = batch->scoreboard.first_job; bool has_tiler = batch->scoreboard.first_tiler; @@ -740,7 +739,6 @@ panfrost_batch_submit_jobs(struct panfrost_batch *batch, } if (has_frag) { - screen->vtbl.emit_fragment_job(batch, fb); ret = panfrost_batch_submit_ioctl(batch, batch->frag_job, PANFROST_JD_REQ_FS, 0, out_sync); if (ret) @@ -818,8 +816,10 @@ panfrost_batch_submit(struct panfrost_context *ctx, screen->vtbl.emit_tls(batch); panfrost_emit_tile_map(batch, &fb); - if (has_frag) + if (has_frag) { screen->vtbl.emit_fbd(batch, &fb); + screen->vtbl.emit_fragment_job(batch, &fb); + } ret = panfrost_batch_submit_jobs(batch, &fb, 0, ctx->syncobj);