From 1ac82c8d24fccc13eaa8482dbb94b0e5c3f7d572 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 28 Nov 2024 15:28:33 -0500 Subject: [PATCH] asahi: drop dead pool stuff Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/pool.c | 9 --------- src/asahi/lib/pool.h | 12 ------------ 2 files changed, 21 deletions(-) diff --git a/src/asahi/lib/pool.c b/src/asahi/lib/pool.c index 3280fe2d055..3c0575bcb9b 100644 --- a/src/asahi/lib/pool.c +++ b/src/asahi/lib/pool.c @@ -51,15 +51,6 @@ agx_pool_cleanup(struct agx_pool *pool) util_dynarray_fini(&pool->bos); } -void -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; - } -} - struct agx_ptr agx_pool_alloc_aligned_with_bo(struct agx_pool *pool, size_t sz, unsigned alignment, struct agx_bo **out_bo) diff --git a/src/asahi/lib/pool.h b/src/asahi/lib/pool.h index 7139dadc276..4906e8b93b8 100644 --- a/src/asahi/lib/pool.h +++ b/src/asahi/lib/pool.h @@ -7,7 +7,6 @@ #pragma once #include -#include "asahi/genxml/agx_pack.h" #include "agx_bo.h" #include "util/u_dynarray.h" @@ -39,17 +38,6 @@ void agx_pool_init(struct agx_pool *pool, struct agx_device *dev, void agx_pool_cleanup(struct agx_pool *pool); -static inline unsigned -agx_pool_num_bos(struct agx_pool *pool) -{ - return util_dynarray_num_elements(&pool->bos, struct agx_bo *); -} - -void agx_pool_get_bo_handles(struct agx_pool *pool, uint32_t *handles); - -/* Represents a fat pointer for GPU-mapped memory, returned from the transient - * allocator and not used for much else */ - struct agx_ptr agx_pool_alloc_aligned_with_bo(struct agx_pool *pool, size_t sz, unsigned alignment, struct agx_bo **bo);