Mesa (main): ac/surface: always use suboptimal display DCC with DRM <= 3.43.0

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


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

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

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

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 30894648fdd..37720cb8020 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -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;
 }



More information about the mesa-commit mailing list