mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 20:50:44 +02:00
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:
parent
aacb7bb9b6
commit
104c4e5ddf
1 changed files with 2 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue