diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-15 09:00:54 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-15 16:12:56 -0700 |
commit | 525e5dc4eda5740ba44fcf8ffb1652b0c896ffbd (patch) | |
tree | 72b784f0012ebb57261434c201fc0bdba86a9e81 /src | |
parent | 9034b5586c61ef04b414fdc433c12943b99b2283 (diff) |
panfrost: Implement panfrost_bo_cache_put
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_bo_cache.c | 8 |
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 |