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.
This commit is contained in:
Chad Versace 2015-08-28 07:58:51 -07:00
parent aacb7bb9b6
commit 104c4e5ddf

View file

@ -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];