aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2020-04-08 10:56:30 -0400
committerMarge Bot <[email protected]>2020-04-09 14:43:02 +0000
commitde6967488aa0b1a1df92741d1c045d8479d3ad7e (patch)
treee4562e1e213c190311a0dfebf3e45840536f1d5c /src
parent51fe52d2fdf6dad6de424c8110ab83b90f1ea0aa (diff)
turnip: add vk_format_is_snorm/is_float
Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3783>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/vulkan/vk_format.h12
1 files changed, 12 insertions, 0 deletions
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)
{