From: Andres Rodriguez Date: Fri, 27 Jan 2017 05:03:04 +0000 (-0500) Subject: radv: use new error codes for AllocateDescriptorSets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8d5e1ab2dcb7d6d96c47cff7bd174e8e98bbdd5;p=mesa.git radv: use new error codes for AllocateDescriptorSets There is a new error code in Maintenance1 that is more specific to the situation: VK_ERROR_OUT_OF_POOL_MEMORY_KHR Fixes CTS test case: dEQP-VK.api.descriptor_pool.out_of_pool_memory Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index eb8b5d6e3a8..6d89d601de0 100644 --- a/src/amd/vulkan/radv_descriptor_set.c +++ b/src/amd/vulkan/radv_descriptor_set.c @@ -298,7 +298,7 @@ radv_descriptor_set_create(struct radv_device *device, if (entry < 0) { vk_free2(&device->alloc, NULL, set); - return vk_error(VK_ERROR_OUT_OF_DEVICE_MEMORY); + return vk_error(VK_ERROR_OUT_OF_POOL_MEMORY_KHR); } offset = pool->free_nodes[entry].offset; pool->free_nodes[entry].next = pool->full_list;