mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
radv: enable DCC for MSAA on GFX10+
It should work fine now. This gives +1-2% improvements with Control MSAA (2x and 4x) on Sienna. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8413>
This commit is contained in:
parent
0ad83e3361
commit
3c1275ccae
1 changed files with 4 additions and 6 deletions
|
|
@ -193,12 +193,10 @@ radv_use_dcc_for_image(struct radv_device *device,
|
|||
if (pCreateInfo->arrayLayers > 1 && pCreateInfo->mipLevels > 1)
|
||||
return false;
|
||||
|
||||
/* FIXME: DCC for MSAA with 4x and 8x samples doesn't work yet, while
|
||||
* 2x can be enabled with an option.
|
||||
*/
|
||||
if (pCreateInfo->samples > 2 ||
|
||||
(pCreateInfo->samples == 2 &&
|
||||
!device->physical_device->dcc_msaa_allowed))
|
||||
/* TODO: Fix and enable DCC MSAA on older chips. */
|
||||
if (pCreateInfo->samples > 1 &&
|
||||
!device->physical_device->dcc_msaa_allowed &&
|
||||
device->physical_device->rad_info.chip_class < GFX10)
|
||||
return false;
|
||||
|
||||
/* Determine if the formats are DCC compatible. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue