Don't use sharing master fd code with libtdm-exynos backend sandbox/cyeon/devel
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 3 Mar 2016 07:04:34 +0000 (16:04 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Thu, 3 Mar 2016 07:04:34 +0000 (16:04 +0900)
Change-Id: I1d363e11258110fa619492eb00fe6f3a77775f71

src/tbm_bufmgr_exynos.c

index 20ce87b..a2093df 100644 (file)
@@ -537,6 +537,7 @@ _bo_destroy_cache_state(tbm_bo bo)
        _tgl_destroy(bufmgr_exynos->tgl_fd, bo_exynos->name);
 }
 
+#if 0
 static int
 _tbm_exynos_open_drm()
 {
@@ -626,6 +627,7 @@ _tbm_exynos_open_drm()
 
        return fd;
 }
+#endif
 
 static int
 _get_render_node(void)
@@ -1965,6 +1967,8 @@ init_tbm_bufmgr_priv(tbm_bufmgr bufmgr, int fd)
        }
 
        if (tbm_backend_is_display_server()) {
+#if 0
+               /* this code is applied with libtdm-exynos */
                int master_fd = -1;
 
                bufmgr_exynos->fd = -1;
@@ -1975,6 +1979,9 @@ init_tbm_bufmgr_priv(tbm_bufmgr bufmgr, int fd)
                } else {
                        bufmgr_exynos->fd = dup(master_fd);
                }
+#else
+               bufmgr_exynos->fd = dup(fd);
+#endif
 
                if (bufmgr_exynos->fd < 0) {
                        TBM_EXYNOS_LOG ("[libtbm-exynos:%d] error: Fail to create drm!\n", getpid());