[Mesa-dev] [PATCH 21/22] wsi: swap srgb/unorm around.

Dave Airlie airlied at gmail.com
Mon Oct 17 04:24:44 UTC 2016


From: Dave Airlie <airlied at redhat.com>

This prevents a Talos regression before radv
starts using shared WSI.
---
 src/vulkan/wsi/wsi_common_x11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c
index b5832c6..241ef42 100644
--- a/src/vulkan/wsi/wsi_common_x11.c
+++ b/src/vulkan/wsi/wsi_common_x11.c
@@ -135,8 +135,8 @@ wsi_x11_get_connection(struct wsi_device *wsi_dev,
 }
 
 static const VkSurfaceFormatKHR formats[] = {
-   { .format = VK_FORMAT_B8G8R8A8_SRGB, },
    { .format = VK_FORMAT_B8G8R8A8_UNORM, },
+   { .format = VK_FORMAT_B8G8R8A8_SRGB, },
 };
 
 static const VkPresentModeKHR present_modes[] = {
-- 
2.5.5



More information about the mesa-dev mailing list