panfrost: Avoid accessing pan_pool fields directly
[mesa.git] / src / panfrost / lib / pan_pool.h
index 23dba284425d7884336b8c8db1a36820d95f4198..c3fa2abd0490dc62ba629d79810d4c6eab022c32 100644 (file)
@@ -55,6 +55,18 @@ panfrost_pool_init(struct pan_pool *pool, void *memctx,
                    struct panfrost_device *dev, unsigned create_flags,
                    bool prealloc);
 
+void
+panfrost_pool_cleanup(struct pan_pool *pool);
+
+static inline unsigned
+panfrost_pool_num_bos(struct pan_pool *pool)
+{
+        return pool->bos->entries;
+}
+
+void
+panfrost_pool_get_bo_handles(struct pan_pool *pool, uint32_t *handles);
+
 /* Represents a fat pointer for GPU-mapped memory, returned from the transient
  * allocator and not used for much else */