panfrost: Remove unused batch_fence->signaled
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 20 Jul 2020 17:53:42 +0000 (13:53 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Jul 2020 13:57:43 +0000 (13:57 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5995>

src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_job.h

index c82e268688e584e958d24d4c5de41ed4843782df..085b6d80f3db852e581baa223c3bb776d40a27b8 100644 (file)
@@ -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);
 
index 746862e9c575e62df8005c087312c6272b61f42d..dd93f0ba33783d94d35dc1cd19c9e5b49454bef9 100644 (file)
@@ -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)