aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2020-02-12 18:45:28 -0500
committerMarge Bot <[email protected]>2020-02-28 12:48:11 +0000
commit89c6ef4233583469f30b266fcec8486f5d7d2b5a (patch)
tree01b46e749b41ff1d22d80aed57e7f1b619c12577 /src/vulkan
parent339f127f2b38438f64d6ff846c0a3e8c3dad83f3 (diff)
util/format: add missing BC4/BC5 vulkan formats
Enables these formats for turnip. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3806>
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/util/vk_format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vulkan/util/vk_format.c b/src/vulkan/util/vk_format.c
index 4fdfb6d5a62..f23575958b3 100644
--- a/src/vulkan/util/vk_format.c
+++ b/src/vulkan/util/vk_format.c
@@ -183,6 +183,10 @@ static const enum pipe_format vk_format_map[] = {
[VK_FORMAT_BC2_SRGB_BLOCK] = PIPE_FORMAT_DXT3_SRGBA,
[VK_FORMAT_BC3_UNORM_BLOCK] = PIPE_FORMAT_DXT5_RGBA,
[VK_FORMAT_BC3_SRGB_BLOCK] = PIPE_FORMAT_DXT5_SRGBA,
+ [VK_FORMAT_BC4_UNORM_BLOCK] = PIPE_FORMAT_RGTC1_UNORM,
+ [VK_FORMAT_BC4_SNORM_BLOCK] = PIPE_FORMAT_RGTC1_SNORM,
+ [VK_FORMAT_BC5_UNORM_BLOCK] = PIPE_FORMAT_RGTC2_UNORM,
+ [VK_FORMAT_BC5_SNORM_BLOCK] = PIPE_FORMAT_RGTC2_SNORM,
[VK_FORMAT_BC6H_UFLOAT_BLOCK] = PIPE_FORMAT_BPTC_RGB_UFLOAT,
[VK_FORMAT_BC6H_SFLOAT_BLOCK] = PIPE_FORMAT_BPTC_RGB_FLOAT,
[VK_FORMAT_BC7_UNORM_BLOCK] = PIPE_FORMAT_BPTC_RGBA_UNORM,