v3dv: only clear depth/stencil attachments if any aspect needs clearing

When we can't perform the clears using the TLB and fallback to
vkCmdClearAttachments make sure we only emit the clear if any of
the depth/stencil aspects actually needs it.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
diff --git a/src/broadcom/vulkan/v3dv_cmd_buffer.c b/src/broadcom/vulkan/v3dv_cmd_buffer.c
index 8dc29aa..1a384e0 100644
--- a/src/broadcom/vulkan/v3dv_cmd_buffer.c
+++ b/src/broadcom/vulkan/v3dv_cmd_buffer.c
@@ -2046,11 +2046,13 @@
          if (att->desc.stencilLoadOp != VK_ATTACHMENT_LOAD_OP_CLEAR)
             aspects &= ~VK_IMAGE_ASPECT_STENCIL_BIT;
 
-         atts[att_count].aspectMask = aspects;
-         atts[att_count].colorAttachment = 0; /* Ignored */
-         atts[att_count].clearValue =
-            state->attachments[ds_att_idx].vk_clear_value;
-         att_count++;
+         if (aspects) {
+            atts[att_count].aspectMask = aspects;
+            atts[att_count].colorAttachment = 0; /* Ignored */
+            atts[att_count].clearValue =
+               state->attachments[ds_att_idx].vk_clear_value;
+            att_count++;
+         }
       }
    }