mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
radv: do not enable DCC for mipmapped arrays because performance is worse
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
e41e575e24
commit
233224c7f7
1 changed files with 4 additions and 0 deletions
|
|
@ -179,6 +179,10 @@ radv_use_dcc_for_image(struct radv_device *device,
|
|||
if (pCreateInfo->arrayLayers > 1)
|
||||
return false;
|
||||
|
||||
/* Do not enable DCC for mipmapped arrays because performance is worse. */
|
||||
if (pCreateInfo->arrayLayers > 1 && pCreateInfo->mipLevels > 1)
|
||||
return false;
|
||||
|
||||
if (radv_surface_has_scanout(device, create_info))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue