Mesa (main): asahi: Remove unused bo_access property

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jul 11 18:58:29 UTC 2021


Module: Mesa
Branch: main
Commit: ea7892a74c873021d1c8d5d26d6b6af879a94c7c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea7892a74c873021d1c8d5d26d6b6af879a94c7c

Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Jul 10 11:01:25 2021 -0400

asahi: Remove unused bo_access property

Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>

---

 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;
    }
 }
 



More information about the mesa-commit mailing list