diff options
author | Jason Ekstrand <[email protected]> | 2016-03-18 11:50:53 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-03-18 11:50:53 -0700 |
commit | b1c5d45872c4c156b1366071c8532a0057a70745 (patch) | |
tree | fd1b2f28a4ceec309a162294d2c3bd5bcea102be /src/intel/vulkan/anv_device.c | |
parent | 3fd308a357b9057447d21c67718d13524dbbb40d (diff) |
anv/allocator: Add a size field to bo_pool_alloc
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index bcd7a9e3c0d..77fd72c42e1 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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; |