From 22a4cb4937d40d3dbd34129c8c0e6cf8673c8f95 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 20 Apr 2020 17:29:39 -0400 Subject: [PATCH] ac: enable displayable DCC on Navi12 & Navi14 Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- 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 -- 2.30.2