mirror of
https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer.git
synced 2025-12-26 13:20:08 +01:00
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>
This commit is contained in:
parent
0c8259a994
commit
0ef73036aa
1 changed files with 2 additions and 3 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue