From f8d5e1ab2dcb7d6d96c47cff7bd174e8e98bbdd5 Mon Sep 17 00:00:00 2001 From: Andres Rodriguez Date: Fri, 27 Jan 2017 00:03:04 -0500 Subject: [PATCH] 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 --- src/amd/vulkan/radv_descriptor_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2