Lines Matching defs:pool
34 /* Represents a pool of memory that can only grow, used to allocate objects
35 * with the same lifetime as the pool itself. In OpenGL, a pool is owned by the
37 * command pool */
43 /* BOs allocated by this pool */
52 /* BO flags to use in the pool */
57 agx_pool_init(struct agx_pool *pool, struct agx_device *dev,
61 agx_pool_cleanup(struct agx_pool *pool);
64 agx_pool_num_bos(struct agx_pool *pool)
66 return util_dynarray_num_elements(&pool->bos, struct agx_bo *);
70 agx_pool_get_bo_handles(struct agx_pool *pool, uint32_t *handles);
76 agx_pool_alloc_aligned(struct agx_pool *pool, size_t sz, unsigned alignment);
79 agx_pool_upload(struct agx_pool *pool, const void *data, size_t sz);
82 agx_pool_upload_aligned(struct agx_pool *pool, const void *data, size_t sz, unsigned alignment);
106 agx_pool_alloc_descs(struct agx_pool *pool,
117 return agx_pool_alloc_aligned(pool, size, align);
120 #define agx_pool_alloc_desc(pool, name) \
121 agx_pool_alloc_descs(pool, AGX_DESC_AGGREGATE(AGX_DESC(name)))
123 #define agx_pool_alloc_desc_array(pool, count, name) \
124 agx_pool_alloc_descs(pool, AGX_DESC_AGGREGATE(AGX_DESC_ARRAY(count, name)))
126 #define agx_pool_alloc_desc_aggregate(pool, ...) \
127 agx_pool_alloc_descs(pool, AGX_DESC_AGGREGATE(__VA_ARGS__))