Mesa (main): ac/surface: disallow display DCC for big resolutions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 13 06:45:24 UTC 2021


Module: Mesa
Branch: main
Commit: a18a7626a22319c1e2fa9ed86976e6b8b80957fd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a18a7626a22319c1e2fa9ed86976e6b8b80957fd

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Oct  6 02:35:08 2021 -0400

ac/surface: disallow display DCC for big resolutions

Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13214>

---

 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



More information about the mesa-commit mailing list