mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 12:50:11 +01:00
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>
This commit is contained in:
parent
bd1f320bc0
commit
2fda5f9b0c
1 changed files with 1 additions and 5 deletions
|
|
@ -176,11 +176,7 @@ drm_public void exynos_bo_destroy(struct exynos_bo *bo)
|
||||||
munmap(bo->vaddr, bo->size);
|
munmap(bo->vaddr, bo->size);
|
||||||
|
|
||||||
if (bo->handle) {
|
if (bo->handle) {
|
||||||
struct drm_gem_close req = {
|
drmCloseBufferHandle(bo->dev->fd, bo->handle);
|
||||||
.handle = bo->handle,
|
|
||||||
};
|
|
||||||
|
|
||||||
drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &req);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
free(bo);
|
free(bo);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue