diff options
author | Boris Brezillon <[email protected]> | 2019-09-05 21:41:29 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2019-09-08 16:22:26 +0200 |
commit | a2bba567aeaad0a0f83f171d5913b54509704e7a (patch) | |
tree | d48304dddcf94c6a8f69081506b854cc0c91abcc /src/gallium/drivers/panfrost/pan_screen.h | |
parent | 12d8a17957a54ae201417b8539c3fa3bdc0761f2 (diff) |
panfrost: Make transient allocation rely on the BO cache
Right now, the transient memory allocator implements its own BO caching
mechanism, which is not really needed since we already have a generic
BO cache. Let's simplify things a bit.
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.h')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.h b/src/gallium/drivers/panfrost/pan_screen.h index 11cbb72075a..7ed5193277a 100644 --- a/src/gallium/drivers/panfrost/pan_screen.h +++ b/src/gallium/drivers/panfrost/pan_screen.h @@ -105,17 +105,6 @@ struct panfrost_screen { struct renderonly *ro; - pthread_mutex_t transient_lock; - - /* Transient memory management is based on borrowing fixed-size slabs - * off the screen (loaning them out to the batch). Dynamic array - * container of panfrost_bo */ - - struct util_dynarray transient_bo; - - /* Set of free transient BOs */ - BITSET_DECLARE(free_transient, MAX_TRANSIENT_SLABS); - pthread_mutex_t bo_cache_lock; /* The BO cache is a set of buckets with power-of-two sizes ranging @@ -131,16 +120,6 @@ pan_screen(struct pipe_screen *p) return (struct panfrost_screen *)p; } -/* Get a transient BO off the screen given a - * particular index */ - -static inline struct panfrost_bo * -pan_bo_for_index(struct panfrost_screen *screen, unsigned index) -{ - return *(util_dynarray_element(&screen->transient_bo, - struct panfrost_bo *, index)); -} - void panfrost_drm_allocate_slab(struct panfrost_screen *screen, struct panfrost_memory *mem, |