ac/gpu_info: num_cu = 4 and gfx11 enable dcc with retile
authorYogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Tue, 6 Jun 2023 05:26:16 +0000 (10:56 +0530)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Jun 2023 19:28:29 +0000 (19:28 +0000)
With num_cu = 4 in gfx11 measured power for idle, video playback and observed
power savings, hence enable dcc with retile for gfx11 with num_cu >= 4.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23454>

src/amd/common/ac_gpu_info.c

index 0954cfc..791fe8a 100644 (file)
@@ -1289,8 +1289,13 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info)
          /* Displayable DCC with retiling is known to increase power consumption on Raphael
           * and Mendocino, so disable it on the smallest APUs. We need a proof that
           * displayable DCC doesn't regress bigger chips in the same way.
+          * With num_cu = 4 in gfx11 measured power for idle, video playback and observed
+          * power savings, hence enable dcc with retile for gfx11 with num_cu >= 4.
           */
-         info->use_display_dcc_with_retile_blit = info->num_cu > 4;
+         if (info->gfx_level >= GFX11)
+            info->use_display_dcc_with_retile_blit = info->num_cu >= 4;
+         else
+            info->use_display_dcc_with_retile_blit = info->num_cu > 4;
       }
    }