From 0309c9fbc7ee7cf27e5ca4d3a30a6c858542ac7f Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 9 Feb 2016 11:34:57 +1100 Subject: [PATCH] vkswapper: alpha flags are now supported by LunarG's driver --- ext/vulkan/vkswapper.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ext/vulkan/vkswapper.c b/ext/vulkan/vkswapper.c index c2e74acfff..7681393d60 100644 --- a/ext/vulkan/vkswapper.c +++ b/ext/vulkan/vkswapper.c @@ -581,11 +581,6 @@ _allocate_swapchain (GstVulkanSwapper * swapper, GstCaps * caps, _vk_format_from_video_format (GST_VIDEO_INFO_FORMAT (&swapper->v_info)); color_space = _vk_color_space_from_video_info (&swapper->v_info); -#if 1 - /* FIXME: unsupported by LunarG's driver */ - g_print ("alpha flags 0x%x\n", - (guint) swapper->surf_props.supportedCompositeAlpha); - if ((swapper->surf_props.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR) != 0) { alpha_flags = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR; @@ -598,9 +593,6 @@ _allocate_swapchain (GstVulkanSwapper * swapper, GstCaps * caps, "Incorrect alpha flags available for the swap images"); return FALSE; } -#else - alpha_flags = 0; -#endif if ((swapper->surf_props.supportedUsageFlags & VK_IMAGE_USAGE_TRANSFER_DST_BIT) != 0) {