From a22a1c0324e0d20c03ee4dceb9ddc4fa4d07ec04 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 8 Jan 2021 14:45:31 -0500 Subject: [PATCH] zink: Fix VK_FORMAT_A8B8G8R8_SRGB_PACK32 mapping on big-endian The PACK32 Vulkan formats need to map to the corresponding XYZWxxxx pipe formats, since the latter take endianness into account. Reviewed-by: Eric Anholt Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/zink_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_format.c b/src/gallium/drivers/zink/zink_format.c index c901c5cd1f0..18b6d4ef61e 100644 --- a/src/gallium/drivers/zink/zink_format.c +++ b/src/gallium/drivers/zink/zink_format.c @@ -82,7 +82,7 @@ static const VkFormat formats[PIPE_FORMAT_COUNT] = { MAP_FORMAT_SCALED(B8G8R8A8) MAP_FORMAT_INT(B8G8R8A8) MAP_FORMAT_SRGB(B8G8R8A8) - [PIPE_FORMAT_R8G8B8A8_SRGB] = VK_FORMAT_A8B8G8R8_SRGB_PACK32, + [PIPE_FORMAT_RGBA8888_SRGB] = VK_FORMAT_A8B8G8R8_SRGB_PACK32, // 16-bits MAP_FORMAT_NORM(R16G16B16A16) MAP_FORMAT_SCALED(R16G16B16A16)