#define __PAN_POOL_H__
#include <stddef.h>
-#include <panfrost-job.h>
+#include <midgard_pack.h>
/* Represents a pool of memory that can only grow, used to allocate objects
* with the same lifetime as the pool itself. In OpenGL, a pool is owned by the
/* Within the topmost transient BO, how much has been used? */
unsigned transient_offset;
+
+ /* BO flags to use in the pool */
+ unsigned create_flags;
};
struct pan_pool
-panfrost_create_pool(void *memctx, struct panfrost_device *dev);
+panfrost_create_pool(void *memctx, struct panfrost_device *dev, unsigned create_flags, bool prealloc);
/* Represents a fat pointer for GPU-mapped memory, returned from the transient
* allocator and not used for much else */