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

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 20 17:40:44 UTC 2021


Module: Mesa
Branch: staging/21.2
Commit: 8e5f1e15cc6cfd80ab762b3d3a529b80b65890bf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e5f1e15cc6cfd80ab762b3d3a529b80b65890bf

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>
(cherry picked from commit a18a7626a22319c1e2fa9ed86976e6b8b80957fd)

---

 .pick_status.json           | 2 +-
 src/amd/common/ac_surface.c | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.pick_status.json b/.pick_status.json
index 95c9a7552d7..fa25e90509f 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -2281,7 +2281,7 @@
         "description": "ac/surface: disallow display DCC for big resolutions",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null
     },
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 698b6064796..18be8354cb7 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -1424,6 +1424,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:
       /* Only support 64KB_S_X, so that we have only 1 variant of the retile shader. */



More information about the mesa-commit mailing list