summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r--src/gallium/drivers/panfrost/pan_bo_cache.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/panfrost/pan_bo_cache.c b/src/gallium/drivers/panfrost/pan_bo_cache.c
index bdd7610b400..2b7a5d208a6 100644
--- a/src/gallium/drivers/panfrost/pan_bo_cache.c
+++ b/src/gallium/drivers/panfrost/pan_bo_cache.c
@@ -94,8 +94,12 @@ panfrost_bo_cache_put(
struct panfrost_screen *screen,
struct panfrost_bo *bo)
{
- /* Stub */
- return false;
+ struct list_head *bucket = pan_bucket(screen, bo->size);
+
+ /* Add us to the bucket */
+ list_addtail(&bo->link, bucket);
+
+ return true;
}
/* Evicts all BOs from the cache. Called during context