ac/surface: always use suboptimal display DCC with DRM <= 3.43.0

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13214>
This commit is contained in:
Marek Olšák 2021-10-06 02:26:20 -04:00 committed by Marge Bot
parent 840c79fc9b
commit 1a8df6f1be

View file

@ -1477,6 +1477,10 @@ static bool gfx10_DCN_requires_independent_64B_blocks(const struct radeon_info *
{
assert(info->chip_class >= GFX10);
/* Older kernels have buggy DAL. */
if (info->drm_minor <= 43)
return true;
/* For 4K, DCN requires INDEPENDENT_64B_BLOCKS = 1 and MAX_COMPRESSED_BLOCK_SIZE = 64B. */
return config->info.width > 2560 || config->info.height > 2560;
}