From e25667f9f14fa71d655265905fa91aa39953a17e Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 11 Aug 2024 05:01:43 +0200 Subject: [PATCH] hwcontext_vulkan: ignore false positive validation errors Issue ref: https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/6627 --- libavutil/hwcontext_vulkan.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index bdf39407e1..55dd657ddd 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -454,6 +454,14 @@ static VkBool32 VKAPI_CALL vk_dbg_callback(VkDebugUtilsMessageSeverityFlagBitsEX int l; AVHWDeviceContext *ctx = priv; + /* Ignore false positives */ + switch (data->messageIdNumber) { + case 0x30f4ac70: /* VUID-VkImageCreateInfo-pNext-06811 */ + return VK_FALSE; + default: + break; + } + switch (severity) { case VK_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT: l = AV_LOG_VERBOSE; break; case VK_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT: l = AV_LOG_INFO; break; @@ -466,7 +474,7 @@ static VkBool32 VKAPI_CALL vk_dbg_callback(VkDebugUtilsMessageSeverityFlagBitsEX for (int i = 0; i < data->cmdBufLabelCount; i++) av_log(ctx, l, "\t%i: %s\n", i, data->pCmdBufLabels[i].pLabelName); - return 0; + return VK_FALSE; } #define ADD_VAL_TO_LIST(list, count, val) \