util: add missing R8G8B8A8_SRGB format to vk_format_map
authorJonathan Marek <jonathan@marek.ca>
Thu, 21 Nov 2019 13:24:19 +0000 (08:24 -0500)
committerJonathan Marek <jonathan@marek.ca>
Thu, 21 Nov 2019 17:46:27 +0000 (17:46 +0000)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/vulkan/util/vk_format.c

index 56a9bb21f7093b7173074286b037347588801952..fd9abeea50965da9754817914819f4bc22836513 100644 (file)
@@ -71,6 +71,7 @@ static const enum pipe_format vk_format_map[] = {
    [VK_FORMAT_R8G8B8A8_SSCALED] = PIPE_FORMAT_R8G8B8A8_SSCALED,
    [VK_FORMAT_R8G8B8A8_UINT] = PIPE_FORMAT_R8G8B8A8_UINT,
    [VK_FORMAT_R8G8B8A8_SINT] = PIPE_FORMAT_R8G8B8A8_SINT,
+   [VK_FORMAT_R8G8B8A8_SRGB] = PIPE_FORMAT_R8G8B8A8_SRGB,
 
    /* Mostly no B8G8R8A8_* */
    [VK_FORMAT_B8G8R8A8_UNORM] = PIPE_FORMAT_B8G8R8A8_UNORM,