diff options
author | Ben Davis <ben.davis@arm.com> | 2021-11-09 10:10:55 +0000 |
---|---|---|
committer | Rosen Zhelev <rosen.zhelev@arm.com> | 2021-11-12 16:46:40 +0000 |
commit | 0ef73036aac8bee4399a244c7f5e95b46dec1d1f (patch) | |
tree | 78e7c43fe1868ef032559686ff55f66dd77b6517 | |
parent | 0c8259a994b4ceab6785669eacc1f4d2f01347a8 (diff) | |
download | vulkan-wsi-layer-0ef73036aac8bee4399a244c7f5e95b46dec1d1f.tar.gz vulkan-wsi-layer-0ef73036aac8bee4399a244c7f5e95b46dec1d1f.tar.bz2 vulkan-wsi-layer-0ef73036aac8bee4399a244c7f5e95b46dec1d1f.zip |
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 <ben.davis@arm.com>
-rw-r--r-- | wsi/wayland/surface_properties.cpp | 5 |
1 files 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<VkCompositeAlphaFlagBitsKHR>( - 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 = |