From: Jason Ekstrand Date: Mon, 1 Feb 2016 20:55:23 +0000 (-0800) Subject: anv/wsi/x11: Expose SRGB all the time X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=443c578bca973e960f823f753c9081d24ec50225;p=mesa.git 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. --- 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[] = {