aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Dänzer2017-11-30 11:52:06 -0600
committerMichel Dänzer2017-12-05 05:50:20 -0600
commitf05a2b4cb1aedb906524718db8ba2e62383f3064 (patch)
treee5dacbd15c3eacc2642441ac4d176179046a67b0 /amdgpu/amdgpu_internal.h
parent5219809a3223e0328ae43a8975bfd6bf713c9ef1 (diff)
downloadexternal-libdrm-f05a2b4cb1aedb906524718db8ba2e62383f3064.tar.gz
external-libdrm-f05a2b4cb1aedb906524718db8ba2e62383f3064.tar.xz
external-libdrm-f05a2b4cb1aedb906524718db8ba2e62383f3064.zip
amdgpu: Only remember the device's marketing name
There's no point in keeping around the full table of marketing names, when amdgpu_get_marketing_name only ever returns the device's marketing name. Acked-by: Slava Abramov <slava.abramov@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_internal.h')
-rw-r--r--amdgpu/amdgpu_internal.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h
index 1aff7f8e..3e044f11 100644
--- a/amdgpu/amdgpu_internal.h
+++ b/amdgpu/amdgpu_internal.h
@@ -69,12 +69,6 @@ struct amdgpu_va {
69 struct amdgpu_bo_va_mgr *vamgr; 69 struct amdgpu_bo_va_mgr *vamgr;
70}; 70};
71 71
72struct amdgpu_asic_id {
73 uint32_t did;
74 uint32_t rid;
75 char *marketing_name;
76};
77
78struct amdgpu_device { 72struct amdgpu_device {
79 atomic_t refcount; 73 atomic_t refcount;
80 int fd; 74 int fd;
@@ -82,8 +76,7 @@ struct amdgpu_device {
82 unsigned major_version; 76 unsigned major_version;
83 unsigned minor_version; 77 unsigned minor_version;
84 78
85 /** Lookup table of asic device id, revision id and marketing name */ 79 char *marketing_name;
86 struct amdgpu_asic_id *asic_ids;
87 /** List of buffer handles. Protected by bo_table_mutex. */ 80 /** List of buffer handles. Protected by bo_table_mutex. */
88 struct util_hash_table *bo_handles; 81 struct util_hash_table *bo_handles;
89 /** List of buffer GEM flink names. Protected by bo_table_mutex. */ 82 /** List of buffer GEM flink names. Protected by bo_table_mutex. */
@@ -148,7 +141,7 @@ drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start,
148 141
149drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr); 142drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr);
150 143
151drm_private void amdgpu_parse_asic_ids(struct amdgpu_asic_id **asic_ids); 144drm_private void amdgpu_parse_asic_ids(struct amdgpu_device *dev);
152 145
153drm_private int amdgpu_query_gpu_info_init(amdgpu_device_handle dev); 146drm_private int amdgpu_query_gpu_info_init(amdgpu_device_handle dev);
154 147