summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2021-10-06 02:35:08 -0400
committerDylan Baker <dylan.c.baker@intel.com>2021-10-20 10:18:10 -0700
commit8e5f1e15cc6cfd80ab762b3d3a529b80b65890bf (patch)
treeaca6a16ef3f882da7d1365c3db09cf9decdd284a
parentfff5f4708987a901794b70c2d158b7e83b474429 (diff)
ac/surface: disallow display DCC for big resolutionsstaging/21.2
Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13214> (cherry picked from commit a18a7626a22319c1e2fa9ed86976e6b8b80957fd)
-rw-r--r--.pick_status.json2
-rw-r--r--src/amd/common/ac_surface.c4
2 files changed, 5 insertions, 1 deletions
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. */