From 525e5dc4eda5740ba44fcf8ffb1652b0c896ffbd Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 15 Jul 2019 09:00:54 -0700 Subject: [PATCH] panfrost: Implement panfrost_bo_cache_put Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_bo_cache.c | 8 ++++++-- 1 file 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