panfrost: Remove unused batch_fence->ctx
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 20 Jul 2020 17:55:22 +0000 (13:55 -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 085b6d80f3db852e581baa223c3bb776d40a27b8..87c6c223503b46b113f9d83f6f521bca1b859c81 100644 (file)
@@ -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;
index dd93f0ba33783d94d35dc1cd19c9e5b49454bef9..68e1f40b99ea66d6180b867578b1ca9d22bba1f4 100644 (file)
@@ -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)