[FFmpeg-cvslog] hwcontext_vulkan: ignore false positive validation errors
Lynne
git at videolan.org
Sun Aug 11 06:21:35 EEST 2024
ffmpeg | branch: master | Lynne <dev at lynne.ee> | Sun Aug 11 05:01:43 2024 +0200| [e25667f9f14fa71d655265905fa91aa39953a17e] | committer: Lynne
hwcontext_vulkan: ignore false positive validation errors
Issue ref:
https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/6627
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e25667f9f14fa71d655265905fa91aa39953a17e
---
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) \
More information about the ffmpeg-cvslog
mailing list