radv: Leave image layouts alone when doing HW MSAA resolves
authorJason Ekstrand <jason.ekstrand@collabora.com>
Fri, 2 Sep 2022 15:56:12 +0000 (10:56 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Sep 2022 09:24:59 +0000 (09:24 +0000)
commit08e1af52ee1c7af65951d1fb907fb34c077cfc3c
tree3bc486ee698932930423a08c7bc01add4911ea73
parent0461d590988c06067edc51f2855d410d830cf657
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>
src/amd/vulkan/radv_meta_resolve.c