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>
This commit is contained in:
Samuel Pitoiset 2022-11-29 08:34:24 +01:00 committed by Marge Bot
parent 9b637aa9a1
commit 84a7138d3c

View file

@ -281,6 +281,10 @@ radv_use_dcc_for_image_early(struct radv_device *device, struct radv_image *imag
return false;
}
/* FIXME: Figure out how to use DCC for MSAA images without FMASK. */
if (pCreateInfo->samples > 1 && !device->physical_device->use_fmask)
return false;
return radv_are_formats_dcc_compatible(device->physical_device, pCreateInfo->pNext, format,
pCreateInfo->flags, sign_reinterpret);
}