From: Alyssa Rosenzweig Date: Wed, 31 Jul 2019 20:54:23 +0000 (-0700) Subject: panfrost: Only wallpaper if we drew something X-Git-Tag: upstream/19.3.0~3468 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=902115f94fa1a1f2b8ca151cbf1ec07e4a0e76df;p=platform%2Fupstream%2Fmesa.git panfrost: Only wallpaper if we drew something last_tiler.gpu may be NULL at flush time despite no clear and existing jobs -- if we executed a compute-only workload. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index ab422ec..ccbb80d 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -1547,7 +1547,7 @@ panfrost_flush( /* Nothing to do! */ if (!job->last_job.gpu && !job->clear) return; - if (!job->clear) + if (!job->clear && job->last_tiler.gpu) panfrost_draw_wallpaper(&ctx->base); /* Whether to stall the pipeline for immediately correct results. Since