Mesa (master): ac: enable displayable DCC on Navi12 & Navi14

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 29 15:03:25 UTC 2020


Module: Mesa
Branch: master
Commit: 22a4cb4937d40d3dbd34129c8c0e6cf8673c8f95
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=22a4cb4937d40d3dbd34129c8c0e6cf8673c8f95

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon Apr 20 17:29:39 2020 -0400

ac: enable displayable DCC on Navi12 & Navi14

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4697>

---

 src/amd/common/ac_gpu_info.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 055ecaf4cf2..550a5f3a705 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -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



More information about the mesa-commit mailing list