From: Jason Ekstrand Date: Thu, 11 Jun 2015 04:04:13 +0000 (-0700) Subject: vk: Add a couple vk_error calls X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8b62d109b9c4efc7bd493d220d959a16a456e5c;p=mesa.git vk: Add a couple vk_error calls --- diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 8cb5b3f8c93..3df707429e1 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -1221,7 +1221,7 @@ VkResult anv_GetObjectInfo( return VK_SUCCESS; default: - return VK_UNSUPPORTED; + return vk_error(VK_UNSUPPORTED); } } diff --git a/src/vulkan/formats.c b/src/vulkan/formats.c index c5e52c47b5f..e915156c1be 100644 --- a/src/vulkan/formats.c +++ b/src/vulkan/formats.c @@ -302,6 +302,6 @@ VkResult anv_GetFormatInfo( return VK_SUCCESS; default: - return VK_ERROR_INVALID_VALUE; + return vk_error(VK_ERROR_INVALID_VALUE); } }