From 66ba1f76baa8c0985f6f31790f1622ed3382e30e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 2 Mar 2024 20:17:33 -0500 Subject: [PATCH] vulkan: Add another error code Handle VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR. --- gdk/gdkvulkancontext.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c index 8d69405a95..ed86b0d8e1 100644 --- a/gdk/gdkvulkancontext.c +++ b/gdk/gdkvulkancontext.c @@ -256,10 +256,15 @@ gdk_vulkan_strerror (VkResult result) case VK_ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR: return "The specified video Std header version is not supported. (VK_ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR)"; #endif +#if VK_HEADER_VERSION >= 243 + case VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR: + return "The specified Video Std parameters do not adhere to the syntactic or semantic requirements of the used video compression standard or implementation"; +#endif #if VK_HEADER_VERSION >= 246 case VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT: return "The provided binary shader code is not compatible with this device. (VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT)"; #endif + case VK_RESULT_MAX_ENUM: default: return "Unknown Vulkan error.";