radv: Remove DCC check on CS resolve dst image.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 17 Jan 2018 22:21:42 +0000 (23:21 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 18 Jan 2018 23:38:45 +0000 (00:38 +0100)
Gives a warning when the assert is disabled, and not even
necessarily true.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_meta_resolve_cs.c

index 7c569aa92027e55def9af08da71ec48ee5dcddb0..5b3bc89832b5c3e3afe41b6e0d7bc65ed38464ad 100644 (file)
@@ -503,11 +503,8 @@ radv_cmd_buffer_resolve_subpass_cs(struct radv_cmd_buffer *cmd_buffer)
                    dest_att.attachment == VK_ATTACHMENT_UNUSED)
                        continue;
 
-               struct radv_image *dst_img = cmd_buffer->state.framebuffer->attachments[dest_att.attachment].attachment->image;
                struct radv_image_view *src_iview = cmd_buffer->state.framebuffer->attachments[src_att.attachment].attachment;
 
-               assert(!dst_img->surface.dcc_size);
-
                VkImageSubresourceRange range;
                range.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
                range.baseMipLevel = 0;