radv: fix msaa feedback loop without tc-compat cmask
authorChia-I Wu <olvaffe@gmail.com>
Tue, 30 May 2023 22:43:16 +0000 (15:43 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 May 2023 14:57:57 +0000 (14:57 +0000)
commit6cb5185916fd782e9da6d21b018d8f1abd372d3a
treef8aa60e7bd32d655c146894c0ecb0cbfce7716c0
parent7e8e7f082377c6a8a2df7885a5cc25d4bcec2bc0
radv: fix msaa feedback loop without tc-compat cmask

When in an msaa feedback loop and when the image does not have tc-compat
cmask, we have to decompress and expand fmask.  This can happen on gfx9
when sample count > 2 or when RADV_DEBUG=notccompatcmask is specified.

Fixes: a38de4c011d ("radv: disable tc_compatible_cmask on GFX9 in some cases")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23331>
src/amd/vulkan/radv_image.c