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

@@ -717,7 +717,7 @@ anv_device_submit_simple_batch(struct anv_device *device,
/* Kernel driver requires 8 byte aligned batch length */
size = align_u32(batch->next - batch->start, 8);
assert(size < device->batch_bo_pool.bo_size);
result = anv_bo_pool_alloc(&device->batch_bo_pool, &bo);
result = anv_bo_pool_alloc(&device->batch_bo_pool, &bo, 4096);
if (result != VK_SUCCESS)
return result;
@@ -1390,7 +1390,7 @@ VkResult anv_CreateFence(
assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_FENCE_CREATE_INFO);
result = anv_bo_pool_alloc(&device->batch_bo_pool, &fence_bo);
result = anv_bo_pool_alloc(&device->batch_bo_pool, &fence_bo, 4096);
if (result != VK_SUCCESS)
return result;