From aa94220d7d952a67545ab73c9e6909f311fb4ddc Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 6 Oct 2021 09:12:43 -0500 Subject: [PATCH] anv: Stop printing descriptor pool allocation failures The VK_ERROR_FRAGMENTED_POOL and VK_ERROR_OUT_OF_POOL_MEMORY errors are not as exceptional cases as most. These are expected to be hit by applications in the normal course of doing their thing. Probably best not to spam stderr and the debug logs with them. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_descriptor_set.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c index cab5402e51b..ac9bee11104 100644 --- a/src/intel/vulkan/anv_descriptor_set.c +++ b/src/intel/vulkan/anv_descriptor_set.c @@ -980,9 +980,9 @@ anv_descriptor_pool_alloc_set(struct anv_descriptor_pool *pool, } if (pool->free_list != EMPTY) { - return vk_error(VK_ERROR_FRAGMENTED_POOL); + return VK_ERROR_FRAGMENTED_POOL; } else { - return vk_error(VK_ERROR_OUT_OF_POOL_MEMORY); + return VK_ERROR_OUT_OF_POOL_MEMORY; } } }