Mesa (master): panfrost: Remove unused batch_fence->ctx

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 21 14:25:18 UTC 2020


Module: Mesa
Branch: master
Commit: 86a65977140c89148b1ea32ab06a38c95b26322c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=86a65977140c89148b1ea32ab06a38c95b26322c

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Jul 20 13:55:22 2020 -0400

panfrost: Remove unused batch_fence->ctx

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5995>

---

 src/gallium/drivers/panfrost/pan_job.c | 1 -
 src/gallium/drivers/panfrost/pan_job.h | 6 ------
 2 files changed, 7 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c
index 085b6d80f3d..87c6c223503 100644
--- a/src/gallium/drivers/panfrost/pan_job.c
+++ b/src/gallium/drivers/panfrost/pan_job.c
@@ -68,7 +68,6 @@ panfrost_create_batch_fence(struct panfrost_batch *batch)
         fence = rzalloc(NULL, struct panfrost_batch_fence);
         assert(fence);
         pipe_reference_init(&fence->reference, 1);
-        fence->ctx = batch->ctx;
         fence->batch = batch;
 
         return fence;
diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h
index dd93f0ba337..68e1f40b99e 100644
--- a/src/gallium/drivers/panfrost/pan_job.h
+++ b/src/gallium/drivers/panfrost/pan_job.h
@@ -46,12 +46,6 @@ struct panfrost_batch_fence {
          * batch has been flushed or not.
          */
         struct panfrost_batch *batch;
-
-        /* Context this fence is attached to. We need both ctx and batch, as
-         * the batch will go away after it's been submitted, but the fence
-         * will stay a bit longer.
-         */
-        struct panfrost_context *ctx;
 };
 
 #define PAN_REQ_MSAA            (1 << 0)



More information about the mesa-commit mailing list