mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
hwcontext_vulkan: ignore false positive validation errors
Issue ref: https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/6627
This commit is contained in:
parent
ef11a6456d
commit
e25667f9f1
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user