From: Icenowy Zheng Date: Wed, 5 Aug 2020 20:48:05 +0000 (+0800) Subject: panfrost: signal syncobj if nothing is going to be flushed X-Git-Tag: upstream/21.0.0~6771 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e397956b092543f5fc89ccc43dc309818c150c6;p=platform%2Fupstream%2Fmesa.git panfrost: signal syncobj if nothing is going to be flushed When nothing is going to be flushed, the kernel will get no job that signals the syncobj. Signal it by ourselves, otherwise it will never get signaled. Closes: #3371 Signed-off-by: Icenowy Zheng Reviewed-by: Alyssa Rosenzweig Cc: mesa-stable Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index 3295d84..d59aa22 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -1076,8 +1076,11 @@ panfrost_batch_submit(struct panfrost_batch *batch, uint32_t out_sync) int ret; /* Nothing to do! */ - if (!batch->scoreboard.first_job && !batch->clear) + if (!batch->scoreboard.first_job && !batch->clear) { + if (out_sync) + drmSyncobjSignal(dev->fd, &out_sync, 1); goto out; + } panfrost_batch_draw_wallpaper(batch);