amd: enable displayable DCC for everything newer than Navi1x
authorMarek Olšák <marek.olsak@amd.com>
Mon, 27 Jul 2020 23:24:31 +0000 (19:24 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Jul 2020 19:47:10 +0000 (19:47 +0000)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6100>

src/amd/common/ac_gpu_info.c

index a5fd949ac066f0685517b4378696b1a928c0b17d..8c9e788ac6402aba4755fabb112d798e90cd55d1 100644 (file)
@@ -718,7 +718,8 @@ bool ac_query_gpu_info(int fd, void *dev_p,
               info->family == CHIP_RENOIR)) ||
             (info->drm_minor >= 34 &&
              (info->family == CHIP_NAVI12 ||
-              info->family == CHIP_NAVI14))) {
+              info->family == CHIP_NAVI14)) ||
+            info->chip_class >= GFX10_3) {
                if (info->num_render_backends == 1)
                        info->use_display_dcc_unaligned = true;
                else