ac: add radeon_info::is_pro_graphics
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
64d6cc982d
commit
bfb9287599
|
@ -334,6 +334,10 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev,
|
|||
}
|
||||
|
||||
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"));
|
||||
|
||||
/* Set which chips have dedicated VRAM. */
|
||||
info->has_dedicated_vram =
|
||||
|
|
|
@ -49,6 +49,7 @@ struct radeon_info {
|
|||
/* Device info. */
|
||||
const char *name;
|
||||
const char *marketing_name;
|
||||
bool is_pro_graphics;
|
||||
uint32_t pci_id;
|
||||
enum radeon_family family;
|
||||
enum chip_class chip_class;
|
||||
|
|
Loading…
Reference in New Issue