projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff95bb
)
vk: Add anv_format_is_color()
author
Chad Versace
<chad.versace@intel.com>
Tue, 18 Aug 2015 18:08:39 +0000
(11:08 -0700)
committer
Chad Versace
<chad.versace@intel.com>
Tue, 18 Aug 2015 18:48:46 +0000
(11:48 -0700)
src/vulkan/anv_private.h
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_private.h
b/src/vulkan/anv_private.h
index 1b2cfc6fa0cfc4c2a1e146adb2e6d27f4cdcd548..73bcd85e41108b044bc7ef31d517acd86c2c9787 100644
(file)
--- 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)
{