diff options
author | Chad Versace <[email protected]> | 2015-08-18 11:09:40 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-08-18 11:48:48 -0700 |
commit | e7d3a5df5a226caa060b822bb87dc00c572aaf7f (patch) | |
tree | 37d7a3517ff155aa9718669f3ce4b192d389239a /src/vulkan/anv_meta.c | |
parent | 50f7bf70dac9ffe8733cce6e65aba23655e1f8c8 (diff) |
vk/meta: Use anv_format_is_color()
That is, replace !anv_format_is_depth_or_stencil() with
anv_format_is_color(). That conveys the meaning better.
Diffstat (limited to 'src/vulkan/anv_meta.c')
-rw-r--r-- | src/vulkan/anv_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index 8808d312db4..bec8455c873 100644 --- 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, |