Module: Mesa Branch: main Commit: e7eb28fed0a2f13ef1ca05876c90b3fc9f7243ed URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7eb28fed0a2f13ef1ca05876c90b3fc9f7243ed
Author: Alyssa Rosenzweig <[email protected]> Date: Tue Aug 17 16:46:46 2021 +0000 panfrost: Remove rsrc->track.users No longer needed. Signed-off-by: Alyssa Rosenzweig <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12528> --- src/gallium/drivers/panfrost/pan_job.c | 4 ---- src/gallium/drivers/panfrost/pan_resource.h | 1 - 2 files changed, 5 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index a59a9a92290..8cf324524fe 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -127,7 +127,6 @@ panfrost_batch_cleanup(struct panfrost_batch *batch) set_foreach_remove(batch->resources, entry) { struct panfrost_resource *rsrc = (void *) entry->key; - BITSET_CLEAR(rsrc->track.users, batch_idx); if (rsrc->track.writer == batch) rsrc->track.writer = NULL; @@ -245,8 +244,6 @@ panfrost_batch_update_access(struct panfrost_batch *batch, _mesa_set_search_or_add(batch->resources, rsrc, &found); if (!found) { - BITSET_SET(rsrc->track.users, batch_idx); - /* Cache number of batches accessing a resource */ rsrc->track.nr_users++; @@ -881,7 +878,6 @@ panfrost_flush_batches_accessing_rsrc(struct panfrost_context *ctx, panfrost_batch_submit(batch, ctx->syncobj, ctx->syncobj); } - assert(!BITSET_COUNT(rsrc->track.users)); rsrc->track.writer = NULL; } diff --git a/src/gallium/drivers/panfrost/pan_resource.h b/src/gallium/drivers/panfrost/pan_resource.h index 5da26d6d6b5..6245eb2a424 100644 --- a/src/gallium/drivers/panfrost/pan_resource.h +++ b/src/gallium/drivers/panfrost/pan_resource.h @@ -49,7 +49,6 @@ struct panfrost_resource { struct { struct panfrost_batch *writer; - BITSET_DECLARE(users, PAN_MAX_BATCHES); /** Number of batches accessing this resource. Used to check if * a resource is in use. */
