From: Jonathan Marek Date: Mon, 3 Aug 2020 19:49:42 +0000 (-0400) Subject: util/format: translate A4R4G4B4_UNORM and A4B4G4R4_UNORM vulkan formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=036ff5314393b2ea2c2a0b29225affee68badee2;p=mesa.git util/format: translate A4R4G4B4_UNORM and A4B4G4R4_UNORM vulkan formats Signed-off-by: Jonathan Marek Part-of: --- diff --git a/src/vulkan/util/vk_format.c b/src/vulkan/util/vk_format.c index 9ffd3b9e292..69edf0e69d2 100644 --- a/src/vulkan/util/vk_format.c +++ b/src/vulkan/util/vk_format.c @@ -270,6 +270,10 @@ vk_format_to_pipe_format(enum VkFormat vkformat) return PIPE_FORMAT_Y16_U16V16_422_UNORM; case VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM: return PIPE_FORMAT_Y16_U16_V16_444_UNORM; + case VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT: + return PIPE_FORMAT_B4G4R4A4_UNORM; + case VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT: + return PIPE_FORMAT_R4G4B4A4_UNORM; default: return PIPE_FORMAT_NONE; }