From: Chad Versace Date: Tue, 18 Aug 2015 18:08:39 +0000 (-0700) Subject: vk: Add anv_format_is_color() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50f7bf70dac9ffe8733cce6e65aba23655e1f8c8;p=mesa.git vk: Add anv_format_is_color() --- 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 @@ -889,6 +889,12 @@ extern const struct anv_format *const anv_format_s8_uint; 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) {