From: Alyssa Rosenzweig Date: Mon, 15 Jul 2019 16:00:54 +0000 (-0700) Subject: panfrost: Implement panfrost_bo_cache_put X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=525e5dc4eda5740ba44fcf8ffb1652b0c896ffbd;p=mesa.git panfrost: Implement panfrost_bo_cache_put Signed-off-by: Alyssa Rosenzweig --- 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