From 443c578bca973e960f823f753c9081d24ec50225 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 1 Feb 2016 12:55:23 -0800 Subject: [PATCH] anv/wsi/x11: Expose SRGB all the time After a long discussion with Eric Anholt and Owen Taylor, I learned that X11 is basically always sRGB as that's what the scanout hardware does and X doesn't modify anything. Therefore, we should just always expose sRGB formats. --- src/vulkan/anv_wsi_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_wsi_x11.c b/src/vulkan/anv_wsi_x11.c index c4a82706b00..acb4a60e65f 100644 --- a/src/vulkan/anv_wsi_x11.c +++ b/src/vulkan/anv_wsi_x11.c @@ -117,7 +117,7 @@ wsi_x11_get_connection(struct anv_instance *instance, xcb_connection_t *conn) } static const VkSurfaceFormatKHR formats[] = { - { .format = VK_FORMAT_B8G8R8A8_UNORM, }, + { .format = VK_FORMAT_B8G8R8A8_SRGB, }, }; static const VkPresentModeKHR present_modes[] = { -- 2.30.2