Skip to content
Snippets Groups Projects
Commit a22a1c03 authored by Adam Jackson's avatar Adam Jackson :headphones: Committed by Marge Bot
Browse files

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: default avatarEric Anholt <eric@anholt.net>
Reviewed-by: default avatarErik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <mesa/mesa!8394>
parent 1a8dcfc7
No related branches found
No related tags found
Loading
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment