diff options
author | Simon Ser <contact@emersion.fr> | 2021-10-03 19:48:14 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-10-06 09:03:21 +0200 |
commit | 2fda5f9b0c2d623f69ecec1f4a8a45e785b6cadf (patch) | |
tree | 67ecbba2ed635867c25b66c5a83e5d80312bfb6b | |
parent | bd1f320bc0ef74a56deed2762526fd25dc71c0ef (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.c | 6 |
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); |