summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-11-21 08:24:19 -0500
committerJonathan Marek <[email protected]>2019-11-21 17:46:27 +0000
commit1496e1164f52d4e0224e763b19ca65cc301a52ad (patch)
tree1b580c8d1cb47b255eb31f49bc8b4f56ff789caa
parent72b44d148d30def54d290ab90648ea72e1cca3c2 (diff)
util: add missing R8G8B8A8_SRGB format to vk_format_map
Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/vulkan/util/vk_format.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/util/vk_format.c b/src/vulkan/util/vk_format.c
index 56a9bb21f70..fd9abeea509 100644
--- a/src/vulkan/util/vk_format.c
+++ b/src/vulkan/util/vk_format.c
@@ -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,