projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50f7bf7
)
vk/meta: Use anv_format_is_color()
author
Chad Versace
<chad.versace@intel.com>
Tue, 18 Aug 2015 18:09:40 +0000
(11:09 -0700)
committer
Chad Versace
<chad.versace@intel.com>
Tue, 18 Aug 2015 18:48:48 +0000
(11:48 -0700)
That is, replace !anv_format_is_depth_or_stencil() with
anv_format_is_color(). That conveys the meaning better.
src/vulkan/anv_meta.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_meta.c
b/src/vulkan/anv_meta.c
index 8808d312db46f584ff70f3d20b370bb12a606ed9..bec8455c87374c6278c796e1df3a7c947065a819 100644
(file)
--- a/
src/vulkan/anv_meta.c
+++ b/
src/vulkan/anv_meta.c
@@
-286,7
+286,7
@@
anv_cmd_buffer_clear_attachments(struct anv_cmd_buffer *cmd_buffer,
int layer = 0;
for (uint32_t i = 0; i < pass->attachment_count; i++) {
if (pass->attachments[i].load_op == VK_ATTACHMENT_LOAD_OP_CLEAR &&
-
!anv_format_is_depth_or_stencil
(pass->attachments[i].format)) {
+
anv_format_is_color
(pass->attachments[i].format)) {
instance_data[layer] = (struct clear_instance_data) {
.vue_header = {
.RTAIndex = i,