panfrost: Implement panfrost_bo_cache_put
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
9034b5586c
commit
525e5dc4ed
|
@ -94,8 +94,12 @@ panfrost_bo_cache_put(
|
||||||
struct panfrost_screen *screen,
|
struct panfrost_screen *screen,
|
||||||
struct panfrost_bo *bo)
|
struct panfrost_bo *bo)
|
||||||
{
|
{
|
||||||
/* Stub */
|
struct list_head *bucket = pan_bucket(screen, bo->size);
|
||||||
return false;
|
|
||||||
|
/* Add us to the bucket */
|
||||||
|
list_addtail(&bo->link, bucket);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Evicts all BOs from the cache. Called during context
|
/* Evicts all BOs from the cache. Called during context
|
||||||
|
|
Loading…
Reference in New Issue