From 964aec54b4e7f52eefb57ae1c7ded6d5c826c2c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 31 Jul 2023 18:41:24 +0200 Subject: [PATCH] vkbarrier: Use guint64 for VkFlags and VkFlags2 While VkPipelineStageFlags is an enum (arguably backed as uint32 in 32bit platforms), VkPipelineStageFlags2 is a redefinition of guint64; likewise for VkAccessFlags and VkAccessFlags2. This patch types both members in GstVulkanBarrierMemoryInfo as guint64 for compatibility, so it could be used with or without synchronization2 vulkan extension. Part-of: --- .../gst-plugins-bad/gst-libs/gst/vulkan/gstvkbarrier.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbarrier.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbarrier.h index 755b7c1a49..56c8fb3d9c 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbarrier.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbarrier.h @@ -69,8 +69,8 @@ struct _GstVulkanBarrierMemoryInfo GstVulkanBarrierType type; GstVulkanBarrierFlags flags; GstVulkanQueue * queue; - VkPipelineStageFlags pipeline_stages; - VkAccessFlags access_flags; + guint64 pipeline_stages; + guint64 access_flags; /* */ gpointer _reserved [GST_PADDING];