mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 20:24:30 +08:00
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 <eric@anholt.net> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8394>
This commit is contained in:
parent
1a8dcfc74c
commit
a22a1c0324
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user