diff options
author | Chad Versace <[email protected]> | 2015-08-18 11:08:39 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-08-18 11:48:46 -0700 |
commit | 50f7bf70dac9ffe8733cce6e65aba23655e1f8c8 (patch) | |
tree | 455a3291b110e75534899b3fe2896e3a8d31d811 | |
parent | 6ff95bba8abd50b47117f733d3e46fb90333210f (diff) |
vk: Add anv_format_is_color()
-rw-r--r-- | src/vulkan/anv_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 1b2cfc6fa0c..73bcd85e411 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -890,6 +890,12 @@ const struct anv_format * anv_format_for_vk_format(VkFormat format); static inline bool +anv_format_is_color(const struct anv_format *format) +{ + return !format->depth_format && !format->has_stencil; +} + +static inline bool anv_format_is_depth_or_stencil(const struct anv_format *format) { return format->depth_format || format->has_stencil; |