ac: enable displayable DCC on Navi12 & Navi14
authorMarek Olšák <marek.olsak@amd.com>
Mon, 20 Apr 2020 21:29:39 +0000 (17:29 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 14:53:25 +0000 (14:53 +0000)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4697>

src/amd/common/ac_gpu_info.c

index 055ecaf4cf26ab66fb800c80119a64b609765d48..550a5f3a705db2ce62ff44436049b7d1f7b991f4 100644 (file)
@@ -659,10 +659,13 @@ bool ac_query_gpu_info(int fd, void *dev_p,
        assert(ib_align);
        info->ib_start_alignment = ib_align;
 
-       if (info->drm_minor >= 31 &&
-           (info->family == CHIP_RAVEN ||
-            info->family == CHIP_RAVEN2 ||
-            info->family == CHIP_RENOIR)) {
+        if ((info->drm_minor >= 31 &&
+             (info->family == CHIP_RAVEN ||
+              info->family == CHIP_RAVEN2 ||
+              info->family == CHIP_RENOIR)) ||
+            (info->drm_minor >= 34 &&
+             (info->family == CHIP_NAVI12 ||
+              info->family == CHIP_NAVI14))) {
                if (info->num_render_backends == 1)
                        info->use_display_dcc_unaligned = true;
                else