[Mesa-dev] [PATCH mesa 2/2] radv: add missing extension errors in vk_errorf()

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Jan 27 16:42:34 UTC 2017



On Thu, Jan 26, 2017, at 06:20, Eric Engestrom wrote:
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
> Feel free to reject this if you prefer to add extension errors when
> each extension is implemented :)
> ---
>  src/amd/vulkan/radv_util.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/src/amd/vulkan/radv_util.c b/src/amd/vulkan/radv_util.c
> index 494bf7e76c..f693b20420 100644
> --- a/src/amd/vulkan/radv_util.c
> +++ b/src/amd/vulkan/radv_util.c
> @@ -91,7 +91,15 @@ __vk_errorf(VkResult error, const char *file, int
> line, const char *format, ...)
>  			ERROR_CASE(VK_ERROR_FRAGMENTED_POOL)
>  
>  			/* Extension errors */
> +                       ERROR_CASE(VK_ERROR_SURFACE_LOST_KHR)
> +                       ERROR_CASE(VK_ERROR_NATIVE_WINDOW_IN_USE_KHR)
>  			ERROR_CASE(VK_ERROR_OUT_OF_DATE_KHR)
> +                       ERROR_CASE(VK_ERROR_INCOMPATIBLE_DISPLAY_KHR)
> +                       ERROR_CASE(VK_ERROR_VALIDATION_FAILED_EXT)
> +                       ERROR_CASE(VK_ERROR_INVALID_SHADER_NV)
> +                       ERROR_CASE(VK_ERROR_OUT_OF_POOL_MEMORY_KHR)
> +                       ERROR_CASE(VK_ERROR_FRAGMENTED_POOL)
> +                       ERROR_CASE(VK_ERROR_FRAGMENTED_POOL)

Removed these two as they duplicated the case from the previous patch,
and pushed both patches. Thanks.

- Bas

>  
>  	default:
>  		assert(!"Unknown error");
> -- 
> Cheers,
>   Eric
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list