From f18e5371cf0096028888126c97f086e941d4f9f7 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 20 Jul 2020 13:53:42 -0400 Subject: [PATCH] panfrost: Remove unused batch_fence->signaled Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/gallium/drivers/panfrost/pan_job.c | 7 +------ src/gallium/drivers/panfrost/pan_job.h | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) 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) -- 2.30.2