summaryrefslogtreecommitdiff
path: root/lib/libdrm/exynos
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-04-29 10:11:54 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-04-29 10:11:54 +0000
commitf6a607883d3ddd203eef4b1917035e470b47e760 (patch)
treeda9f4d97f524064d4467d9760843b67b76d69f58 /lib/libdrm/exynos
parentc234e39f846deec7355d2eb93506aeea1c61e92d (diff)
Import libdrm 2.4.110
Diffstat (limited to 'lib/libdrm/exynos')
-rw-r--r--lib/libdrm/exynos/exynos_drm.c6
-rw-r--r--lib/libdrm/exynos/meson.build8
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/libdrm/exynos/exynos_drm.c b/lib/libdrm/exynos/exynos_drm.c
index b008ad733..3e322a17b 100644
--- a/lib/libdrm/exynos/exynos_drm.c
+++ b/lib/libdrm/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);
diff --git a/lib/libdrm/exynos/meson.build b/lib/libdrm/exynos/meson.build
index 7d1edfeab..2f02ae710 100644
--- a/lib/libdrm/exynos/meson.build
+++ b/lib/libdrm/exynos/meson.build
@@ -22,6 +22,7 @@ libdrm_exynos = library(
'drm_exynos',
[files('exynos_drm.c', 'exynos_fimg2d.c'), config_file],
c_args : libdrm_c_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_root, inc_drm],
link_with : libdrm,
dependencies : [dep_pthread_stubs],
@@ -37,12 +38,15 @@ ext_libdrm_exynos = declare_dependency(
include_directories : [inc_drm, include_directories('.')],
)
+if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('libdrm_exynos', ext_libdrm_exynos)
+endif
+
pkg.generate(
+ libdrm_exynos,
name : 'libdrm_exynos',
- libraries : libdrm_exynos,
subdirs : ['.', 'libdrm', 'exynos'],
version : '0.7',
- requires_private : 'libdrm',
description : 'Userspace interface to exynos kernel DRM services',
)