vkswapper: add inherit support

Used on android
This commit is contained in:
Matthew Waters 2019-10-17 23:25:14 +11:00
parent 332f1742d2
commit 982e06ef87

View 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,