mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-28 13:28:20 +02:00
The kernel handles are dense and the kernel always tries to use the
lowest free id. Use this to implement a more efficient handle table
by using a resizeable array instead of a hash.
v2: add handle_table_fini function, extra key checks,
fix typo in function name
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>
18 lines
313 B
Text
18 lines
313 B
Text
LIBDRM_AMDGPU_FILES := \
|
|
amdgpu_asic_id.c \
|
|
amdgpu_bo.c \
|
|
amdgpu_cs.c \
|
|
amdgpu_device.c \
|
|
amdgpu_gpu_info.c \
|
|
amdgpu_internal.h \
|
|
amdgpu_vamgr.c \
|
|
amdgpu_vm.c \
|
|
util_hash.c \
|
|
util_hash.h \
|
|
util_hash_table.c \
|
|
util_hash_table.h \
|
|
handle_table.c \
|
|
handle_table.h
|
|
|
|
LIBDRM_AMDGPU_H_FILES := \
|
|
amdgpu.h
|