radv: Don't set a new subpass on compute resolve.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 24 Aug 2017 22:29:03 +0000 (00:29 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 25 Aug 2017 20:47:49 +0000 (22:47 +0200)
We don't use the render path so totally unneeded.

Fixes: 19be95f71e6 "radv: add subpass resolve compute path"
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_resolve_cs.c

index da6ca76b6d4fbb7db5de72024218fb29a881990f..ce02884d2d6b6906ee39776756789c3aaaf23685 100644 (file)
@@ -521,14 +521,6 @@ radv_cmd_buffer_resolve_subpass_cs(struct radv_cmd_buffer *cmd_buffer)
                if (dest_att.attachment == VK_ATTACHMENT_UNUSED)
                        continue;
 
-               struct radv_subpass resolve_subpass = {
-                       .color_count = 1,
-                       .color_attachments = (VkAttachmentReference[]) { dest_att },
-                       .depth_stencil_attachment = { .attachment = VK_ATTACHMENT_UNUSED },
-               };
-
-               radv_cmd_buffer_set_subpass(cmd_buffer, &resolve_subpass, false);
-
                emit_resolve(cmd_buffer,
                             src_iview,
                             dst_iview,