To not overwrite the resolve if there is pending clear aspects,
same as color resolves.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
struct radv_image_view *dst_iview =
cmd_buffer->state.attachments[dst_att.attachment].iview;
+ /* Make sure to not clear the depth/stencil attachment after resolves. */
+ cmd_buffer->state.attachments[dst_att.attachment].pending_clear_aspects = 0;
+
radv_pick_resolve_method_images(cmd_buffer->device,
src_iview->image,
src_iview->vk_format,