panfrost: Get rid of panfrost_pool_alloc()
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 25 Mar 2021 09:24:27 +0000 (10:24 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 26 Mar 2021 07:46:15 +0000 (08:46 +0100)
This one is no longer used.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9827>

src/panfrost/lib/pan_pool.h

index 00c35fc..a8d1669 100644 (file)
@@ -76,18 +76,6 @@ panfrost_pool_get_bo_handles(struct pan_pool *pool, uint32_t *handles);
 struct panfrost_ptr
 panfrost_pool_alloc_aligned(struct pan_pool *pool, size_t sz, unsigned alignment);
 
-/* Default to self-alignment */
-
-static inline struct panfrost_ptr
-panfrost_pool_alloc(struct pan_pool *pool, size_t sz)
-{
-        assert(sz == util_next_power_of_two(sz));
-        return panfrost_pool_alloc_aligned(pool, sz, sz);
-}
-
-struct panfrost_ptr
-panfrost_pool_alloc(struct pan_pool *pool, size_t sz);
-
 mali_ptr
 panfrost_pool_upload(struct pan_pool *pool, const void *data, size_t sz);