From 50f7bf70dac9ffe8733cce6e65aba23655e1f8c8 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Tue, 18 Aug 2015 11:08:39 -0700 Subject: [PATCH] vk: Add anv_format_is_color() --- src/vulkan/anv_private.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.30.2