From: Ben Davis Date: Wed, 21 Apr 2021 12:21:31 +0000 (+0100) Subject: Remove to-do to check if FIFO is ok on Wayland X-Git-Tag: upstream/1.0.5~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8236f8aaaad140de47912de3ad76075d2527119d;p=platform%2Fupstream%2Fvulkan-wsi-layer.git Remove to-do to check if FIFO is ok on Wayland Although Mailbox mode is recommended for use on Wayland, FIFO is required by the Vulkan spec and after investigation our implementation seems to be compliant with the spec. Change-Id: Ib3230e31c4dd516bc40dc50c9e920fb145506145 Signed-off-by: Ben Davis --- diff --git a/wsi/wayland/surface_properties.cpp b/wsi/wayland/surface_properties.cpp index 2a111bd..a1d254c 100644 --- a/wsi/wayland/surface_properties.cpp +++ b/wsi/wayland/surface_properties.cpp @@ -226,7 +226,7 @@ VkResult surface_properties::get_surface_present_modes(VkPhysicalDevice physical { VkResult res = VK_SUCCESS; - /* TODO: Check that FIFO is okay on Wayland */ + static std::array modes = { VK_PRESENT_MODE_FIFO_KHR, VK_PRESENT_MODE_MAILBOX_KHR,