From a18a7626a22319c1e2fa9ed86976e6b8b80957fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 6 Oct 2021 02:35:08 -0400 Subject: [PATCH] ac/surface: disallow display DCC for big resolutions Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/common/ac_surface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 37720cb8020..ca03633e1f0 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -1523,6 +1523,10 @@ static bool is_dcc_supported_by_DCN(const struct radeon_info *info, if (info->use_display_dcc_unaligned && (rb_aligned || pipe_aligned)) return false; + /* Big resolutions don't support DCC. */ + if (config->info.width > 5760 || config->info.height > 5760) + return false; + switch (info->chip_class) { case GFX9: /* There are more constraints, but we always set