anv: don't assert on out of memory descriptor pool in debug mode
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 26 Jan 2017 11:25:44 +0000 (11:25 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 27 Jan 2017 17:23:32 +0000 (17:23 +0000)
Fixes:
   dEQP-VK.api.descriptor_pool.out_of_pool_memory

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/intel/vulkan/anv_util.c

index 6408ac87c7e6310cdb803101e5fb41a2a371badf..5fbc7cc113b0bd81d4694e14a5662688c72f8ae3 100644 (file)
@@ -83,9 +83,11 @@ __vk_errorf(VkResult error, const char *file, int line, const char *format, ...)
    ERROR_CASE(VK_ERROR_LAYER_NOT_PRESENT)
    ERROR_CASE(VK_ERROR_EXTENSION_NOT_PRESENT)
    ERROR_CASE(VK_ERROR_INCOMPATIBLE_DRIVER)
+   ERROR_CASE(VK_ERROR_FRAGMENTED_POOL)
 
    /* Extension errors */
    ERROR_CASE(VK_ERROR_OUT_OF_DATE_KHR)
+   ERROR_CASE(VK_ERROR_OUT_OF_POOL_MEMORY_KHR)
 
    default:
       assert(!"Unknown error");