for (uint32_t i = 0; i < subpass->color_count; ++i) {
struct radv_subpass_attachment src_att = subpass->color_attachments[i];
struct radv_subpass_attachment dst_att = subpass->resolve_attachments[i];
- struct radv_image_view *src_iview = fb->attachments[src_att.attachment].attachment;
- struct radv_image_view *dst_iview = fb->attachments[dst_att.attachment].attachment;
if (dst_att.attachment == VK_ATTACHMENT_UNUSED)
continue;
+ struct radv_image_view *src_iview = fb->attachments[src_att.attachment].attachment;
+ struct radv_image_view *dst_iview = fb->attachments[dst_att.attachment].attachment;
+
VkImageResolve region = {
.extent = (VkExtent3D){ fb->width, fb->height, 0 },
.srcSubresource = (VkImageSubresourceLayers) {