panfrost: Stop exposing panfrost_bo_cache_{fetch,put}()
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 14 Sep 2019 08:22:36 +0000 (10:22 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 18 Sep 2019 08:33:51 +0000 (10:33 +0200)
They are not expected to be called directly, users should use
panfrost_bo_{create,release}() instead.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_bo.c
src/gallium/drivers/panfrost/pan_bo.h

index e6a5c972ead9ff83d78af02a3c6ab71fd54b4d57..23273abc5f22cf7275078a9abf6ba012a7e014b1 100644 (file)
@@ -89,7 +89,7 @@ pan_bucket(struct panfrost_screen *screen, unsigned size)
  * cache. If it fails, it returns NULL signaling the caller to allocate a new
  * BO. */
 
-struct panfrost_bo *
+static struct panfrost_bo *
 panfrost_bo_cache_fetch(
                 struct panfrost_screen *screen,
                 size_t size, uint32_t flags)
@@ -130,7 +130,7 @@ panfrost_bo_cache_fetch(
 /* Tries to add a BO to the cache. Returns if it was
  * successful */
 
-bool
+static bool
 panfrost_bo_cache_put(
                 struct panfrost_screen *screen,
                 struct panfrost_bo *bo)
index 6d17ebecf6e6d3fa5d798ab6a94bbc91db5c898b..5afaa0c873d3ba1403e6370316b85397da6926d2 100644 (file)
@@ -88,12 +88,6 @@ struct panfrost_bo *
 panfrost_bo_import(struct panfrost_screen *screen, int fd);
 int
 panfrost_bo_export(struct panfrost_screen *screen, const struct panfrost_bo *bo);
-struct panfrost_bo *
-panfrost_bo_cache_fetch(struct panfrost_screen *screen,
-                       size_t size, uint32_t flags);
-bool
-panfrost_bo_cache_put(struct panfrost_screen *screen,
-                      struct panfrost_bo *bo);
 void
 panfrost_bo_cache_evict_all(struct panfrost_screen *screen);