anv/allocator: Add a size field to bo_pool_alloc

This commit is contained in:
Jason Ekstrand
2016-03-18 11:50:53 -07:00
parent 3fd308a357
commit b1c5d45872
4 changed files with 11 additions and 6 deletions

View File

@@ -820,10 +820,12 @@ anv_bo_pool_finish(struct anv_bo_pool *pool)
}
VkResult
anv_bo_pool_alloc(struct anv_bo_pool *pool, struct anv_bo *bo)
anv_bo_pool_alloc(struct anv_bo_pool *pool, struct anv_bo *bo, uint32_t size)
{
VkResult result;
assert(pool->bo_size <= size);
void *next_free_void;
if (anv_ptr_free_list_pop(&pool->free_list, &next_free_void)) {
struct bo_pool_bo_link *next_free = next_free_void;