aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König2015-05-18 08:28:30 -0500
committerAlex Deucher2015-08-05 12:47:50 -0500
commitd5c0b2a172126c0de116bfc8863953b13e0ed5df (patch)
treeda77a42370a9408304c62319abd38822f7dc8751 /amdgpu/amdgpu_device.c
parent7244698ddc3f33158188adcb50291157a7e99b81 (diff)
downloadexternal-libdrm-d5c0b2a172126c0de116bfc8863953b13e0ed5df.tar.gz
external-libdrm-d5c0b2a172126c0de116bfc8863953b13e0ed5df.tar.xz
external-libdrm-d5c0b2a172126c0de116bfc8863953b13e0ed5df.zip
amdgpu: remove bo_vas hash table v2
Not used any more. v2: Keep accidental removed lines. Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_device.c')
-rw-r--r--amdgpu/amdgpu_device.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index 048a9093..7a997cb5 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -192,7 +192,6 @@ int amdgpu_device_initialize(int fd,
192 dev->bo_flink_names = util_hash_table_create(handle_hash, 192 dev->bo_flink_names = util_hash_table_create(handle_hash,
193 handle_compare); 193 handle_compare);
194 dev->bo_handles = util_hash_table_create(handle_hash, handle_compare); 194 dev->bo_handles = util_hash_table_create(handle_hash, handle_compare);
195 dev->bo_vas = util_hash_table_create(handle_hash, handle_compare);
196 pthread_mutex_init(&dev->bo_table_mutex, NULL); 195 pthread_mutex_init(&dev->bo_table_mutex, NULL);
197 196
198 /* Check if acceleration is working. */ 197 /* Check if acceleration is working. */
@@ -228,7 +227,6 @@ void amdgpu_device_free_internal(amdgpu_device_handle dev)
228{ 227{
229 util_hash_table_destroy(dev->bo_flink_names); 228 util_hash_table_destroy(dev->bo_flink_names);
230 util_hash_table_destroy(dev->bo_handles); 229 util_hash_table_destroy(dev->bo_handles);
231 util_hash_table_destroy(dev->bo_vas);
232 pthread_mutex_destroy(&dev->bo_table_mutex); 230 pthread_mutex_destroy(&dev->bo_table_mutex);
233 pthread_mutex_destroy(&(dev->vamgr.bo_va_mutex)); 231 pthread_mutex_destroy(&(dev->vamgr.bo_va_mutex));
234 util_hash_table_remove(fd_tab, UINT_TO_PTR(dev->fd)); 232 util_hash_table_remove(fd_tab, UINT_TO_PTR(dev->fd));