radv: use new error codes for AllocateDescriptorSets
authorAndres Rodriguez <andresx7@gmail.com>
Fri, 27 Jan 2017 05:03:04 +0000 (00:03 -0500)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 30 Jan 2017 07:42:17 +0000 (08:42 +0100)
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 <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_descriptor_set.c

index eb8b5d6e3a8e35f84897478c3a439a41d590aa51..6d89d601de0dd98515c65b8290948db969adc9d4 100644 (file)
@@ -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;