mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
radv: Leave image layouts alone when doing HW MSAA resolves
If the current layout supports DCC, we initialize it. There's no reason why we can't leave it in that layout and need to stomp it to COLOR_ATTACHMENT_OPTIMAL. If the layout supports DCC, it's effectively identical to COLOR_ATTACHMENT_OPTIMAL anyway. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15587>
This commit is contained in:
parent
0461d59098
commit
08e1af52ee
1 changed files with 0 additions and 2 deletions
|
|
@ -600,8 +600,6 @@ radv_cmd_buffer_resolve_subpass_hw(struct radv_cmd_buffer *cmd_buffer)
|
|||
};
|
||||
|
||||
cmd_buffer->state.flush_bits |= radv_init_dcc(cmd_buffer, dst_img, &range, 0xffffffff);
|
||||
saved_state.attachments[dst_att.attachment].current_layout =
|
||||
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
|
||||
}
|
||||
|
||||
const VkRenderingAttachmentInfo color_atts[2] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue