From 2d2c6fc6bbfe9ecd8b0f6072b0dc29d48a89b92c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 1 Feb 2016 13:06:21 -0800 Subject: [PATCH] anv/wsi/wayland: Advertise sRGB --- src/vulkan/anv_wsi_wayland.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vulkan/anv_wsi_wayland.c b/src/vulkan/anv_wsi_wayland.c index 815218ecc69..31d5f836a9f 100644 --- a/src/vulkan/anv_wsi_wayland.c +++ b/src/vulkan/anv_wsi_wayland.c @@ -103,9 +103,9 @@ wl_drm_format_for_vk_format(VkFormat vk_format, bool alpha) case VK_FORMAT_B5G5R5A1_UNORM: return alpha ? WL_DRM_FORMAT_XRGB1555 : WL_DRM_FORMAT_XRGB1555; #endif - case VK_FORMAT_B8G8R8_UNORM: + case VK_FORMAT_B8G8R8_SRGB: return WL_DRM_FORMAT_BGRX8888; - case VK_FORMAT_B8G8R8A8_UNORM: + case VK_FORMAT_B8G8R8A8_SRGB: return alpha ? WL_DRM_FORMAT_ARGB8888 : WL_DRM_FORMAT_XRGB8888; #if 0 case VK_FORMAT_B10G10R10A2_UNORM: @@ -159,10 +159,10 @@ drm_handle_format(void *data, struct wl_drm *drm, uint32_t wl_format) break; #endif case WL_DRM_FORMAT_XRGB8888: - wsi_wl_display_add_vk_format(display, VK_FORMAT_B8G8R8_UNORM); + wsi_wl_display_add_vk_format(display, VK_FORMAT_B8G8R8_SRGB); /* fallthrough */ case WL_DRM_FORMAT_ARGB8888: - wsi_wl_display_add_vk_format(display, VK_FORMAT_B8G8R8A8_UNORM); + wsi_wl_display_add_vk_format(display, VK_FORMAT_B8G8R8A8_SRGB); break; #if 0 case WL_DRM_FORMAT_ARGB2101010: -- 2.30.2