From 773b66e9f51db46745508c739c71b3f8a4e35a30 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Tue, 3 Nov 2015 11:32:18 +0900 Subject: [PATCH] Use DRM_EXYNOS_GEM_MAP instead of DRM_IOCTL_MODE_MAP_DUMB if we will use render node in tbm-backend, Render node can't use DRM_IOCTL_MODE_MAP_DUMB Change-Id: Ia8c443dc3c314043b0662bf824af6d4820695224 --- packaging/libtbm-exynos4412.spec | 2 +- src/tbm_bufmgr_exynos4412.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/libtbm-exynos4412.spec b/packaging/libtbm-exynos4412.spec index d44be04..e86bc29 100644 --- a/packaging/libtbm-exynos4412.spec +++ b/packaging/libtbm-exynos4412.spec @@ -1,5 +1,5 @@ Name: libtbm-exynos4412 -Version: 1.1.0 +Version: 1.1.1 Release: 1 License: MIT Summary: Tizen Buffer Manager - exynos4412 backend diff --git a/src/tbm_bufmgr_exynos4412.c b/src/tbm_bufmgr_exynos4412.c index fc8f697..a23e81f 100644 --- a/src/tbm_bufmgr_exynos4412.c +++ b/src/tbm_bufmgr_exynos4412.c @@ -293,11 +293,11 @@ _exynos4412_bo_handle (tbm_bo_exynos4412 bo_exynos4412, int device) case TBM_DEVICE_CPU: if (!bo_exynos4412->pBase) { - struct drm_mode_map_dumb arg = {0,}; + struct drm_exynos_gem_map arg = {0,}; void *map = NULL; arg.handle = bo_exynos4412->gem; - if (drmIoctl (bo_exynos4412->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg)) + if (drmCommandWriteRead (bo_exynos4412->fd, DRM_EXYNOS_GEM_MAP, &arg, sizeof(arg))) { TBM_EXYNOS4412_LOG ("error Cannot map_dumb gem=%d\n", bo_exynos4412->gem); return (tbm_bo_handle) NULL; -- 2.34.1