panfrost: Implement panfrost_bo_cache_put

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-07-15 09:00:54 -07:00
parent 9034b5586c
commit 525e5dc4ed
1 changed files with 6 additions and 2 deletions

View File

@ -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