Revert "Revert:Use DRM_EXYNOS_GEM_MAP instead of DRM_IOCTL_MODE_MAP_DUMB" 73/56073/1 accepted/tizen/mobile/20160104.084836 accepted/tizen/tv/20160104.084903 accepted/tizen/wearable/20160104.084927 submit/tizen/20160104.064909
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 4 Jan 2016 06:33:11 +0000 (15:33 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 4 Jan 2016 06:35:03 +0000 (15:35 +0900)
This reverts commit 07101ed7215f58ad726cba36d69078b18567f0c1.

Change-Id: I2b80ba4af39694e8c3b84458e8b68b8a818edb89
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
src/tbm_bufmgr_exynos.c

index 928cd6a..9ddce2c 100644 (file)
@@ -293,11 +293,11 @@ _exynos_bo_handle (tbm_bo_exynos bo_exynos, int device)
     case TBM_DEVICE_CPU:
         if (!bo_exynos->pBase)
         {
-            struct drm_mode_map_dumb arg = {0,};
+            struct drm_exynos_gem_map arg = {0,};
             void *map = NULL;
 
             arg.handle = bo_exynos->gem;
-            if (drmIoctl (bo_exynos->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg))
+            if (drmCommandWriteRead (bo_exynos->fd, DRM_EXYNOS_GEM_MAP, &arg, sizeof(arg)))
             {
                TBM_EXYNOS_LOG ("error Cannot map_dumb gem=%d\n", bo_exynos->gem);
                return (tbm_bo_handle) NULL;