From: Chad Versace Date: Fri, 28 Aug 2015 14:58:51 +0000 (-0700) Subject: vk/meta: Don't skip clearing when clearing only depth attachment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=104c4e5ddfc05918badbbca143c161f6e5fb3691;p=mesa.git vk/meta: Don't skip clearing when clearing only depth attachment anv_cmd_buffer_clear_attachments() skipped the clear renderpass if no color attachments needed to be cleared, even if a depth attachment needed to be cleared. --- diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index cdd357ddcc9..201e3da41b3 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -324,7 +324,8 @@ anv_cmd_buffer_clear_attachments(struct anv_cmd_buffer *cmd_buffer, if (pass->has_stencil_clear_attachment) anv_finishme("stencil clear"); - if (pass->num_color_clear_attachments == 0) + if (pass->num_color_clear_attachments == 0 && + !pass->has_depth_clear_attachment) return; struct clear_instance_data instance_data[pass->num_color_clear_attachments];