aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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));