mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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> (cherry picked from commitb635dff256)
This commit is contained in:
parent
f396e154f1
commit
32b5779ade
2 changed files with 4 additions and 4 deletions
|
|
@ -625,7 +625,7 @@
|
|||
"description": "ac: fix detection of Pro graphics",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "bfb92875992599d9c5ca5ecf39fce36a1719272d"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -468,9 +468,9 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
|
|||
info->family_id = amdinfo->family_id;
|
||||
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"));
|
||||
info->is_pro_graphics = info->marketing_name && (!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 = !(amdinfo->ids_flags & AMDGPU_IDS_FLAGS_FUSION);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue