if (va.operation == RADEON_VA_RESULT_VA_EXIST) {
struct pb_buffer *b = &bo->base;
struct radeon_bo *old_bo =
- util_hash_table_get(rws->bo_vas, (void*)(uintptr_t)va.offset);
+ _mesa_hash_table_u64_search(rws->bo_vas, va.offset);
mtx_unlock(&rws->bo_handles_mutex);
pb_reference(&b, &old_bo->base);
return radeon_bo(b);
}
- _mesa_hash_table_insert(rws->bo_vas, (void*)(uintptr_t)bo->va, bo);
+ _mesa_hash_table_u64_insert(rws->bo_vas, bo->va, bo);
mtx_unlock(&rws->bo_handles_mutex);
}
if (va.operation == RADEON_VA_RESULT_VA_EXIST) {
struct pb_buffer *b = &bo->base;
struct radeon_bo *old_bo =
- util_hash_table_get(ws->bo_vas, (void*)(uintptr_t)va.offset);
+ _mesa_hash_table_u64_search(ws->bo_vas, va.offset);
mtx_unlock(&ws->bo_handles_mutex);
pb_reference(&b, &old_bo->base);
return b;
}
- _mesa_hash_table_insert(ws->bo_vas, (void*)(uintptr_t)bo->va, bo);
+ _mesa_hash_table_u64_insert(ws->bo_vas, bo->va, bo);
mtx_unlock(&ws->bo_handles_mutex);
}
if (va.operation == RADEON_VA_RESULT_VA_EXIST) {
struct pb_buffer *b = &bo->base;
struct radeon_bo *old_bo =
- util_hash_table_get(ws->bo_vas, (void*)(uintptr_t)va.offset);
+ _mesa_hash_table_u64_search(ws->bo_vas, va.offset);
mtx_unlock(&ws->bo_handles_mutex);
pb_reference(&b, &old_bo->base);
return b;
}
- _mesa_hash_table_insert(ws->bo_vas, (void*)(uintptr_t)bo->va, bo);
+ _mesa_hash_table_u64_insert(ws->bo_vas, bo->va, bo);
mtx_unlock(&ws->bo_handles_mutex);
}
_mesa_hash_table_destroy(ws->bo_names, NULL);
_mesa_hash_table_destroy(ws->bo_handles, NULL);
- _mesa_hash_table_destroy(ws->bo_vas, NULL);
+ _mesa_hash_table_u64_destroy(ws->bo_vas, NULL);
mtx_destroy(&ws->bo_handles_mutex);
mtx_destroy(&ws->vm32.mutex);
mtx_destroy(&ws->vm64.mutex);
ws->bo_names = util_hash_table_create_ptr_keys();
ws->bo_handles = util_hash_table_create_ptr_keys();
- ws->bo_vas = util_hash_table_create_ptr_keys();
+ ws->bo_vas = _mesa_hash_table_u64_create(NULL);
(void) mtx_init(&ws->bo_handles_mutex, mtx_plain);
(void) mtx_init(&ws->vm32.mutex, mtx_plain);
(void) mtx_init(&ws->vm64.mutex, mtx_plain);
/* List of buffer GEM names. Protected by bo_handles_mutex. */
struct hash_table *bo_names;
- /* List of buffer handles. Protectded by bo_handles_mutex. */
+ /* List of buffer handles. Protected by bo_handles_mutex. */
struct hash_table *bo_handles;
- /* List of buffer virtual memory ranges. Protectded by bo_handles_mutex. */
- struct hash_table *bo_vas;
+ /* List of buffer virtual memory ranges. Protected by bo_handles_mutex. */
+ struct hash_table_u64 *bo_vas;
mtx_t bo_handles_mutex;
mtx_t bo_fence_lock;