Revert:Use DRM_EXYNOS_GEM_MAP instead of DRM_IOCTL_MODE_MAP_DUMB 80/54480/1 accepted/tizen/mobile/20151215.124925 accepted/tizen/tv/20151215.125347 accepted/tizen/wearable/20151215.125654 submit/tizen/20151215.113754
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 15 Dec 2015 10:54:55 +0000 (19:54 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 15 Dec 2015 11:36:26 +0000 (20:36 +0900)
Change-Id: Iffda76a8090443875a02a30f8ee6d96673dabc47
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
src/tbm_bufmgr_exynos.c

index 081f913..3664da7 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_exynos_gem_map arg = {0,};
+            struct drm_mode_map_dumb arg = {0,};
             void *map = NULL;
 
             arg.handle = bo_exynos->gem;
-            if (drmCommandWriteRead (bo_exynos->fd, DRM_EXYNOS_GEM_MAP, &arg, sizeof(arg)))
+            if (drmIoctl (bo_exynos->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg))
             {
                TBM_EXYNOS_LOG ("error Cannot map_dumb gem=%d\n", bo_exynos->gem);
                return (tbm_bo_handle) NULL;