[gtk/matthiasc/for-master] Fix build with recent Vulkan versions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] Fix build with recent Vulkan versions
- Date: Fri, 18 Dec 2020 00:21:07 +0000 (UTC)
commit 09b3fc937137aadb5f487d1594a0c93bb52f4451
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 17 19:19:23 2020 -0500
Fix build with recent Vulkan versions
The way this enumeration is updated is ... special.
gdk/gdkvulkancontext.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index 917b443f94..c80e56f697 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -210,8 +210,10 @@ gdk_vulkan_strerror (VkResult result)
return "An unknown error has occurred; either the application has provided invalid input, or an
implementation failure has occurred.";
#endif
#if VK_HEADER_VERSION >= 135
+#if VK_HEADER_VERSION < 162
case VK_ERROR_INCOMPATIBLE_VERSION_KHR:
return "Acceleration structure serialized with version as the version information is not compatible
with device.";
+#endif
case VK_THREAD_IDLE_KHR:
return "A deferred operation is not complete but there is currently no work for this thread to do at
the time of this call.";
case VK_THREAD_DONE_KHR:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]