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

Eric Engestrom eric.engestrom at imgtec.com
Thu Jan 26 14:20:24 UTC 2017


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)
 
 	default:
 		assert(!"Unknown error");
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list