From 2387c3c4aac87d8cc56b18c743b36f61908ca725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 19 Jul 2024 17:06:03 +0200 Subject: [PATCH] vkimagebufferpool: no aliased images for video decoding This fix regression in validation layer introduced by commit 3a2e8d2d19 Part-of: --- .../gst-libs/gst/vulkan/gstvkimagebufferpool.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagebufferpool.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagebufferpool.c index f8ab89e831..60f14f414f 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagebufferpool.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagebufferpool.c @@ -255,17 +255,17 @@ gst_vulkan_image_buffer_pool_set_config (GstBufferPool * pool, } { - gboolean dpb_only = FALSE, sampleable; + gboolean video = FALSE, sampleable; const GstVulkanFormatMap *vkmap; #if GST_VULKAN_HAVE_VIDEO_EXTENSIONS - dpb_only = (priv->usage & VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR) - && !(priv->usage & VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR); + video = (priv->usage & (VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR + | VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR)); #endif sampleable = priv->usage & (VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_STORAGE_BIT); - if (sampleable && !dpb_only) { + if (sampleable && !video) { vkmap = gst_vulkan_format_get_map (GST_VIDEO_INFO_FORMAT (&priv->v_info)); priv->img_flags = VK_IMAGE_CREATE_ALIAS_BIT; if (GST_VIDEO_INFO_N_PLANES (&priv->v_info) > 1