amdgpu: use drmCloseBufferHandle
authorSimon Ser <contact@emersion.fr>
Sun, 3 Oct 2021 17:38:48 +0000 (19:38 +0200)
committerSimon Ser <contact@emersion.fr>
Wed, 6 Oct 2021 07:03:21 +0000 (09:03 +0200)
commitef77e5e1eb6f17a653911342c5c1f7392a13d873
tree4e6a8152f067c80df8840746f8f06b88ebc70e7b
parentbd26b61cff33517840b3f1900bbe1849b8672f65
amdgpu: use drmCloseBufferHandle

Instead of using a hand-rolled amdgpu_close_kms_handle function,
use the function from libdrm core, which does exactly the same
thing.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
amdgpu/amdgpu_bo.c