[gtk/ci-jobs] vulkan: Handle VK_ERROR_UNKNOWN



commit c0440217d50a0863ef387f2176bbfaff435dc920
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Feb 11 14:07:43 2020 +0000

    vulkan: Handle VK_ERROR_UNKNOWN
    
    A newly added Vulkan 1.2 error.

 gdk/gdkvulkancontext.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index 747d07f33b..c2f63a6bd4 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -204,6 +204,10 @@ gdk_vulkan_strerror (VkResult result)
 #if VK_HEADER_VERSION >= 105
     case VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT:
       return "An operation on a swapchain created with VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT 
failed as it did not have exlusive full-screen access.";
+#endif
+#if VK_HEADER_VERSION >= 131
+    case VK_ERROR_UNKNOWN:
+      return "An unknown error has occurred; either the application has provided invalid input, or an 
implementation failure has occurred.";
 #endif
     case VK_RESULT_BEGIN_RANGE:
     case VK_RESULT_END_RANGE:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]