vulkan: Introduce vk_format_is_block_compressed function

Signed-off-by: John Brooks <john@fastquake.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17970>
This commit is contained in:
John Brooks 2022-08-15 10:59:17 -04:00 committed by Marge Bot
parent ef6a8a9a6f
commit 88401e031b

View file

@ -159,6 +159,12 @@ vk_format_is_compressed(VkFormat format)
return vk_format_get_blockwidth(format) > 1;
}
static inline bool
vk_format_is_block_compressed(VkFormat format)
{
return util_format_is_compressed(vk_format_to_pipe_format(format));
}
static inline const struct util_format_description *
vk_format_description(VkFormat format)
{