vk: Add anv_format_is_color()
This commit is contained in:
parent
6ff95bba8a
commit
50f7bf70da
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue