projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd1f320
)
exynos: use drmCloseBufferHandle
author
Simon Ser
<contact@emersion.fr>
Sun, 3 Oct 2021 17:48:14 +0000
(19:48 +0200)
committer
Simon Ser
<contact@emersion.fr>
Wed, 6 Oct 2021 07:03:21 +0000
(09:03 +0200)
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>
exynos/exynos_drm.c
patch
|
blob
|
history
diff --git
a/exynos/exynos_drm.c
b/exynos/exynos_drm.c
index
b008ad7
..
3e322a1
100644
(file)
--- 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);