From: Alyssa Rosenzweig Date: Mon, 20 Jul 2020 17:53:42 +0000 (-0400) Subject: panfrost: Remove unused batch_fence->signaled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f18e5371cf0096028888126c97f086e941d4f9f7;p=mesa.git panfrost: Remove unused batch_fence->signaled Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index c82e268688e..085b6d80f3d 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -1082,13 +1082,8 @@ panfrost_batch_submit(struct panfrost_batch *batch, uint32_t out_sync) int ret; /* Nothing to do! */ - if (!batch->scoreboard.first_job && !batch->clear) { - /* Mark the fence as signaled so the fence logic does not try - * to wait on it. - */ - batch->out_sync->signaled = true; + if (!batch->scoreboard.first_job && !batch->clear) goto out; - } panfrost_batch_draw_wallpaper(batch); diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h index 746862e9c57..dd93f0ba337 100644 --- a/src/gallium/drivers/panfrost/pan_job.h +++ b/src/gallium/drivers/panfrost/pan_job.h @@ -52,11 +52,6 @@ struct panfrost_batch_fence { * will stay a bit longer. */ struct panfrost_context *ctx; - - /* Cached value of the signaled state to avoid calling WAIT_SYNCOBJs - * when we know the fence has already been signaled. - */ - bool signaled; }; #define PAN_REQ_MSAA (1 << 0)