summaryrefslogtreecommitdiff
path: root/exynos/exynos_drm.c
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2015-10-06 19:09:16 +0900
committerJoonyoung Shim <jy0922.shim@samsung.com>2017-02-15 13:37:34 +0900
commit6a43c70b2101c714646ca28f0433dbb94cb641c8 (patch)
tree9fe5f231608d8a56a08ad48a42b12837c237d7d0 /exynos/exynos_drm.c
parentf34fc8eb0506cd7d2d16ac32f88ac0dd59b51fa3 (diff)
downloadlibdrm-6a43c70b2101c714646ca28f0433dbb94cb641c8.tar.gz
libdrm-6a43c70b2101c714646ca28f0433dbb94cb641c8.tar.bz2
libdrm-6a43c70b2101c714646ca28f0433dbb94cb641c8.zip
exynos: support DRM_IOCTL_EXYNOS_GEM_MAP
The commit d41b7a3a745a("exynos: Don't use DRM_EXYNOS_GEM_{MAP_OFFSET/ MMAP} ioctls") removed it same with the ioctl that this patch adds. The reason that removed DRM_IOCTL_EXYNOS_GEM_MAP_OFFSET was we could use DRM_IOCTL_MODE_MAP_DUMB. Both did exactly same thing. Now exynos-drm driver of linux kernel revives it as DRM_EXYNOS_GEM_MAP because of render node. DRM_IOCTL_MODE_MAP_DUMB isn't permitted in render node, so this patch also supports DRM_IOCTL_EXYNOS_GEM_MAP. Change-Id: Ib548dc8a6bea076375465f64ee2fdd658a90e435 Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Diffstat (limited to 'exynos/exynos_drm.c')
-rw-r--r--exynos/exynos_drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exynos/exynos_drm.c b/exynos/exynos_drm.c
index b961e520..2ca4f0af 100644
--- a/exynos/exynos_drm.c
+++ b/exynos/exynos_drm.c
@@ -286,14 +286,14 @@ void *exynos_bo_map(struct exynos_bo *bo)
{
if (!bo->vaddr) {
struct exynos_device *dev = bo->dev;
- struct drm_mode_map_dumb arg;
+ struct drm_exynos_gem_map arg;
void *map = NULL;
int ret;
memset(&arg, 0, sizeof(arg));
arg.handle = bo->handle;
- ret = drmIoctl(dev->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg);
+ ret = drmIoctl(dev->fd, DRM_IOCTL_EXYNOS_GEM_MAP, &arg);
if (ret) {
fprintf(stderr, "failed to map dumb buffer[%s].\n",
strerror(errno));