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.
This commit is contained in:
Jason Ekstrand 2016-02-01 12:55:23 -08:00
parent afb327a985
commit 443c578bca

View file

@ -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[] = {