summaryrefslogtreecommitdiff
path: root/amdgpu/amdgpu_internal.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-08-02 10:47:02 +0200
committerChristian König <christian.koenig@amd.com>2018-08-07 13:27:22 +0200
commitbde850bc32293702ff0bdd7b0acb5164c385785e (patch)
treedc8f6e836a49caf5b22268ddbcf3284befdd84ef /amdgpu/amdgpu_internal.h
parent52370cc6eb37e31f44daf563bada4392f6a58e49 (diff)
downloadlibdrm-bde850bc32293702ff0bdd7b0acb5164c385785e.tar.gz
libdrm-bde850bc32293702ff0bdd7b0acb5164c385785e.tar.bz2
libdrm-bde850bc32293702ff0bdd7b0acb5164c385785e.zip
amdgpu: use handle table for KMS handles
Instead of the hash use the handle table. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-and-Tested-by: Junwei Zhang <Jerry.Zhang@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_internal.h')
-rw-r--r--amdgpu/amdgpu_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h
index 83012cab..36ebc738 100644
--- a/amdgpu/amdgpu_internal.h
+++ b/amdgpu/amdgpu_internal.h
@@ -32,6 +32,7 @@
#include "xf86atomic.h"
#include "amdgpu.h"
#include "util_double_list.h"
+#include "handle_table.h"
#define AMDGPU_CS_MAX_RINGS 8
/* do not use below macro if b is not power of 2 aligned value */
@@ -73,7 +74,7 @@ struct amdgpu_device {
char *marketing_name;
/** List of buffer handles. Protected by bo_table_mutex. */
- struct util_hash_table *bo_handles;
+ struct handle_table bo_handles;
/** List of buffer GEM flink names. Protected by bo_table_mutex. */
struct util_hash_table *bo_flink_names;
/** This protects all hash tables. */