From 65fbb1836ae8853951a357c6331e914e970f5c92 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 24 Jul 2019 21:59:04 +0200 Subject: [PATCH] zink: use VK_FORMAT_B8G8R8A8_UNORM for PIPE_FORMAT_B8G8R8X8_UNORM Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_screen.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2