vkswapper: add inherit support
authorMatthew Waters <matthew@centricular.com>
Thu, 17 Oct 2019 12:25:14 +0000 (23:25 +1100)
committerMatthew Waters <matthew@centricular.com>
Mon, 11 Nov 2019 00:04:59 +0000 (11:04 +1100)
Used on android

gst-libs/gst/vulkan/gstvkswapper.c

index ba34711..e7911d2 100644 (file)
@@ -777,6 +777,9 @@ _allocate_swapchain (GstVulkanSwapper * swapper, GstCaps * caps,
   } else if ((priv->surf_props.supportedCompositeAlpha &
           VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR) != 0) {
     alpha_flags = VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR;
+  } else if ((priv->surf_props.supportedCompositeAlpha &
+          VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR) != 0) {
+    alpha_flags = VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR;
   } else {
     g_set_error (error, GST_VULKAN_ERROR,
         VK_ERROR_INITIALIZATION_FAILED,