radv: do not enable DCC for MSAA images without FMASK
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 29 Nov 2022 07:34:24 +0000 (08:34 +0100)
committerEric Engestrom <eric@engestrom.ch>
Wed, 30 Nov 2022 21:12:44 +0000 (21:12 +0000)
commited0cb79072b2dd334b93bf96e78dbfa84d8f8b20
tree1ce0671d204e2d8bc1966d5c063c63c04e7e7c61
parent488f186c2a059566d2d774b28f517ddae59d239a
radv: do not enable DCC for MSAA images without FMASK

I don't know how this is supposed to work, especially for fast clears
because CMASK should be cleared to 0xC but FMASK implies CMASK.
This fixes a bunch of MSAA test failures on GFX10.3 with
RADV_DEBUG=nofmask.

Cc: 22.3 mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20054>
(cherry picked from commit 84a7138d3cfca05fbd623707525b9d4479a27e94)
.pick_status.json
src/amd/vulkan/radv_image.c