ac: enable displayable DCC on Navi12 & Navi14

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4697>
This commit is contained in:
Marek Olšák 2020-04-20 17:29:39 -04:00 committed by Marge Bot
parent 3b45631d7a
commit 22a4cb4937
1 changed files with 7 additions and 4 deletions

View 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