mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
9b637aa9a1
commit
84a7138d3c
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue