From: Erik Faye-Lund Date: Tue, 9 Jun 2020 19:07:48 +0000 (+0200) Subject: zink: emulate B8G8R8X8_SRGB with B8G8R8A8_SRGB X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d3c6605d69559525adc12f4b2c01d06fe9328a4;p=mesa.git zink: emulate B8G8R8X8_SRGB with B8G8R8A8_SRGB Reviewed-by: Mike Blumenkrantz Part-of: --- 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)