From 2d3c6605d69559525adc12f4b2c01d06fe9328a4 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 9 Jun 2020 21:07:48 +0200 Subject: [PATCH] zink: emulate B8G8R8X8_SRGB with B8G8R8A8_SRGB Reviewed-by: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/zink_format.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_format.c b/src/gallium/drivers/zink/zink_format.c index bd2dd92cec6..50f89995a90 100644 --- a/src/gallium/drivers/zink/zink_format.c +++ b/src/gallium/drivers/zink/zink_format.c @@ -75,6 +75,7 @@ static const VkFormat formats[PIPE_FORMAT_COUNT] = { [PIPE_FORMAT_B8G8R8A8_UNORM] = VK_FORMAT_B8G8R8A8_UNORM, [PIPE_FORMAT_B8G8R8X8_UNORM] = VK_FORMAT_B8G8R8A8_UNORM, MAP_FORMAT_SRGB(B8G8R8A8) + [PIPE_FORMAT_B8G8R8X8_SRGB] = VK_FORMAT_B8G8R8A8_SRGB, [PIPE_FORMAT_A8B8G8R8_SRGB] = VK_FORMAT_A8B8G8R8_SRGB_PACK32, // 16-bits MAP_FORMAT_NORM(R16G16B16A16) -- 2.30.2