From: Erik Faye-Lund Date: Wed, 24 Jul 2019 19:59:04 +0000 (+0200) Subject: zink: use VK_FORMAT_B8G8R8A8_UNORM for PIPE_FORMAT_B8G8R8X8_UNORM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65fbb1836ae8853951a357c6331e914e970f5c92;p=mesa.git zink: use VK_FORMAT_B8G8R8A8_UNORM for PIPE_FORMAT_B8G8R8X8_UNORM Acked-by: Jordan Justen --- diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index e7dcebe0c8b..d0c07024d9e 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -520,6 +520,7 @@ static const VkFormat formats[PIPE_FORMAT_COUNT] = { MAP_FORMAT_INT(R8G8B8A8) MAP_FORMAT_SRGB(R8G8B8A8) [PIPE_FORMAT_B8G8R8A8_UNORM] = VK_FORMAT_B8G8R8A8_UNORM, + [PIPE_FORMAT_B8G8R8X8_UNORM] = VK_FORMAT_B8G8R8A8_UNORM, MAP_FORMAT_SRGB(B8G8R8A8) [PIPE_FORMAT_A8B8G8R8_SRGB] = VK_FORMAT_A8B8G8R8_SRGB_PACK32, // 16-bits