diff options
-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; |