From ea7892a74c873021d1c8d5d26d6b6af879a94c7c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 10 Jul 2021 11:01:25 -0400 Subject: [PATCH] asahi: Remove unused bo_access property Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/agx_bo.h | 10 ---------- src/asahi/lib/pool.c | 1 - 2 files changed, 11 deletions(-) diff --git a/src/asahi/lib/agx_bo.h b/src/asahi/lib/agx_bo.h index 9214c371650..f3b11295cf9 100644 --- a/src/asahi/lib/agx_bo.h +++ b/src/asahi/lib/agx_bo.h @@ -46,13 +46,6 @@ struct agx_ptr { uint64_t gpu; }; -enum agx_bo_access { - AGX_BO_ACCESS_NONE = 0, - AGX_BO_ACCESS_R = 1, - AGX_BO_ACCESS_W = 2, - AGX_BO_ACCESS_RW = 3 -}; - struct agx_bo { enum agx_alloc_type type; @@ -72,9 +65,6 @@ struct agx_bo { * metal-gpu-submission-to-command-buffer-id */ uint64_t guid; - /* Outstanding access for bo_wait */ - enum agx_bo_access access; - /* Human-readable label, or NULL if none */ char *name; diff --git a/src/asahi/lib/pool.c b/src/asahi/lib/pool.c index 00ca9e78431..e1d8fa07209 100644 --- a/src/asahi/lib/pool.c +++ b/src/asahi/lib/pool.c @@ -75,7 +75,6 @@ agx_pool_get_bo_handles(struct agx_pool *pool, uint32_t *handles) unsigned idx = 0; util_dynarray_foreach(&pool->bos, struct agx_bo *, bo) { handles[idx++] = (*bo)->handle; - (*bo)->access = AGX_BO_ACCESS_RW; } }