summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2019-11-06 13:55:08 +0100
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2019-11-15 09:36:43 +0100
commit41a1152cdcd7474a4f800cfac10c9507cf282b21 (patch)
tree2e2ad2ed543af21915f2ba8a541fd64917a415e4
parent519d9b30de96759369109e0653222f36381100e6 (diff)
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 <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-rw-r--r--src/amd/vulkan/radv_meta_resolve.c3
1 files changed, 3 insertions, 0 deletions
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,