summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-10-03 19:48:14 +0200
committerSimon Ser <contact@emersion.fr>2021-10-06 09:03:21 +0200
commit2fda5f9b0c2d623f69ecec1f4a8a45e785b6cadf (patch)
tree67ecbba2ed635867c25b66c5a83e5d80312bfb6b
parentbd1f320bc0ef74a56deed2762526fd25dc71c0ef (diff)
exynos: use drmCloseBufferHandle
Instead of manually calling drmIoctl, use the equivalent function from libdrm core. Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--exynos/exynos_drm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/exynos/exynos_drm.c b/exynos/exynos_drm.c
index b008ad73..3e322a17 100644
--- a/exynos/exynos_drm.c
+++ b/exynos/exynos_drm.c
@@ -176,11 +176,7 @@ drm_public void exynos_bo_destroy(struct exynos_bo *bo)
munmap(bo->vaddr, bo->size);
if (bo->handle) {
- struct drm_gem_close req = {
- .handle = bo->handle,
- };
-
- drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &req);
+ drmCloseBufferHandle(bo->dev->fd, bo->handle);
}
free(bo);