aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-02-12 12:14:15 -0500
committerMarek Olšák <[email protected]>2019-04-23 11:28:56 -0400
commit64d6cc982d5ccf6b396c0dec24611c5c6ef1cc7d (patch)
treea30438ca7a2d57e1b8d0535af370a493435d7e12 /src/amd/common
parent9b33465481daf465cde3ff46261486ab5c6433c6 (diff)
ac: add radeon_info::marketing_name, replacing the winsys callback
Tested-by: Dieter Nützel <[email protected]> Acked-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_gpu_info.c2
-rw-r--r--src/amd/common/ac_gpu_info.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index afbb0239628..fa052c8b861 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -333,6 +333,8 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev,
return false;
}
+ info->marketing_name = amdgpu_get_marketing_name(dev);
+
/* Set which chips have dedicated VRAM. */
info->has_dedicated_vram =
!(amdinfo->ids_flags & AMDGPU_IDS_FLAGS_FUSION);
diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h
index 5241c28f2a7..4e3afc2b4dc 100644
--- a/src/amd/common/ac_gpu_info.h
+++ b/src/amd/common/ac_gpu_info.h
@@ -48,6 +48,7 @@ struct radeon_info {
/* Device info. */
const char *name;
+ const char *marketing_name;
uint32_t pci_id;
enum radeon_family family;
enum chip_class chip_class;