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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user