ac: fix detection of Pro graphics

Fixes: bfb928759 "ac: add radeon_info::is_pro_graphics"

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7542>
This commit is contained in:
Marek Olšák 2020-11-10 18:43:12 -05:00 committed by Dylan Baker
parent 44d0d449b1
commit 9374a1ecfe

View file

@ -441,9 +441,9 @@ bool ac_query_gpu_info(int fd, void *dev_p,
info->chip_external_rev = amdinfo->chip_external_rev;
info->marketing_name = amdgpu_get_marketing_name(dev);
info->is_pro_graphics = info->marketing_name &&
(!strcmp(info->marketing_name, "Pro") ||
!strcmp(info->marketing_name, "PRO") ||
!strcmp(info->marketing_name, "Frontier"));
(!strstr(info->marketing_name, "Pro") ||
!strstr(info->marketing_name, "PRO") ||
!strstr(info->marketing_name, "Frontier"));
/* Set which chips have dedicated VRAM. */
info->has_dedicated_vram =