Skip to content
Snippets Groups Projects
Commit 56bb29cb authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Marge Bot
Browse files

anv: don't return incorrect error code for vkCreateDescriptorPool


Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: mesa/mesa#7013


Cc: mesa-stable
Reviewed-by: default avatarJason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <mesa/mesa!17945>
parent bc7edc1c
No related branches found
No related tags found
Loading
......@@ -954,7 +954,7 @@ VkResult anv_CreateDescriptorPool(
&pool->bo);
if (result != VK_SUCCESS) {
vk_object_free(&device->vk, pAllocator, pool);
return result;
return vk_error(device, VK_ERROR_OUT_OF_DEVICE_MEMORY);
}
util_vma_heap_init(&pool->bo_heap, POOL_HEAP_OFFSET, descriptor_bo_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment