vk: Add anv_format_is_color()

This commit is contained in:
Chad Versace 2015-08-18 11:08:39 -07:00
parent 6ff95bba8a
commit 50f7bf70da
1 changed files with 6 additions and 0 deletions

View File

@ -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)
{