anv: don't return incorrect error code for vkCreateDescriptorPool

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7013
Cc: mesa-stable
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17945>
This commit is contained in:
Lionel Landwerlin 2022-08-08 22:01:28 +03:00 committed by Marge Bot
parent bc7edc1c7a
commit 56bb29cb93

View file

@ -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);