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>
(cherry picked from commit 56bb29cb93accf9d78c29332db52314bcb4b7670)
This commit is contained in:
Lionel Landwerlin 2022-08-08 22:01:28 +03:00 committed by Dylan Baker
parent 8b0343601c
commit 4e0637a182
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@
"description": "anv: don't return incorrect error code for vkCreateDescriptorPool",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

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