From de6967488aa0b1a1df92741d1c045d8479d3ad7e Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Wed, 8 Apr 2020 10:56:30 -0400 Subject: [PATCH] turnip: add vk_format_is_snorm/is_float Signed-off-by: Jonathan Marek Part-of: --- src/freedreno/vulkan/vk_format.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/freedreno/vulkan/vk_format.h b/src/freedreno/vulkan/vk_format.h index b1b763ff52e..a9b7f1b4a31 100644 --- a/src/freedreno/vulkan/vk_format.h +++ b/src/freedreno/vulkan/vk_format.h @@ -243,6 +243,18 @@ vk_format_is_srgb(VkFormat format) return util_format_is_srgb(vk_format_to_pipe_format(format)); } +static inline bool +vk_format_is_snorm(VkFormat format) +{ + return util_format_is_snorm(vk_format_to_pipe_format(format)); +} + +static inline bool +vk_format_is_float(VkFormat format) +{ + return util_format_is_float(vk_format_to_pipe_format(format)); +} + static inline VkFormat vk_format_no_srgb(VkFormat format) { -- 2.30.2