radv: drop useless checks when resolving subpass color attachments
The Vulkan spec says: "If pResolveAttachments is not NULL, for each resolve attachment that does not have the value VK_ATTACHMENT_UNUSED, the corresponding color attachment must not have the value VK_ATTACHMENT_UNUSED." Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -610,8 +610,7 @@ radv_cmd_buffer_resolve_subpass_fs(struct radv_cmd_buffer *cmd_buffer)
|
||||
struct radv_subpass_attachment src_att = subpass->color_attachments[i];
|
||||
struct radv_subpass_attachment dest_att = subpass->resolve_attachments[i];
|
||||
|
||||
if (src_att.attachment == VK_ATTACHMENT_UNUSED ||
|
||||
dest_att.attachment == VK_ATTACHMENT_UNUSED)
|
||||
if (dest_att.attachment == VK_ATTACHMENT_UNUSED)
|
||||
continue;
|
||||
|
||||
struct radv_image_view *dest_iview = cmd_buffer->state.framebuffer->attachments[dest_att.attachment].attachment;
|
||||
|
Reference in New Issue
Block a user