Module: Mesa Branch: staging/20.1 Commit: 6b5bce259657cdf4992a232bf7c00b5124b32541 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b5bce259657cdf4992a232bf7c00b5124b32541
Author: Icenowy Zheng <[email protected]> Date: Thu Aug 6 04:48:05 2020 +0800 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 <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6190> (cherry picked from commit 9e397956b092543f5fc89ccc43dc309818c150c6) --- .pick_status.json | 2 +- src/gallium/drivers/panfrost/pan_job.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 305bf66dd91..ea46a4e3a7a 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -418,7 +418,7 @@ "description": "panfrost: signal syncobj if nothing is going to be flushed", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index 154ed833927..4f9dbcb765d 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -996,6 +996,9 @@ panfrost_batch_submit(struct panfrost_batch *batch) /* Nothing to do! */ if (!batch->first_job && !batch->clear) { + if (batch->out_sync->syncobj) + drmSyncobjSignal(dev->fd, &batch->out_sync->syncobj, 1); + /* Mark the fence as signaled so the fence logic does not try * to wait on it. */ _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
