From 0ef73036aac8bee4399a244c7f5e95b46dec1d1f Mon Sep 17 00:00:00 2001 From: Ben Davis Date: Tue, 9 Nov 2021 10:10:55 +0000 Subject: [PATCH] Update supported composite alpha flags There is currently no protocol for setting composite alpha blending mode via Wayland but the expectation is that we use premultiplied alpha so we only report the premultiplied and inherit composite alpha bits Change-Id: If4e103b47cb8e99213ca96216abc06d812c68db1 Signed-off-by: Ben Davis --- wsi/wayland/surface_properties.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wsi/wayland/surface_properties.cpp b/wsi/wayland/surface_properties.cpp index 60f550c..094696a 100644 --- a/wsi/wayland/surface_properties.cpp +++ b/wsi/wayland/surface_properties.cpp @@ -88,10 +88,9 @@ VkResult surface_properties::get_surface_capabilities(VkPhysicalDevice physical_ pSurfaceCapabilities->supportedTransforms = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR; pSurfaceCapabilities->currentTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR; - /* TODO: Composite alpha */ + /* Composite alpha */ pSurfaceCapabilities->supportedCompositeAlpha = static_cast( - VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR | VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR | - VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR | VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR); + VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR | VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR); /* Image usage flags */ pSurfaceCapabilities->supportedUsageFlags = -- 2.7.4