From: Samuel Pitoiset Date: Wed, 6 Nov 2019 12:55:08 +0000 (+0100) Subject: radv: make sure to not clear the ds attachment after resolves X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41a1152cdcd7474a4f800cfac10c9507cf282b21;p=mesa.git radv: make sure to not clear the ds attachment after resolves To not overwrite the resolve if there is pending clear aspects, same as color resolves. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/amd/vulkan/radv_meta_resolve.c index ea3d26c8d4c..d59802ba813 100644 --- a/src/amd/vulkan/radv_meta_resolve.c +++ b/src/amd/vulkan/radv_meta_resolve.c @@ -649,6 +649,9 @@ radv_cmd_buffer_resolve_subpass(struct radv_cmd_buffer *cmd_buffer) 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,