From: Changyeon Lee Date: Thu, 3 Mar 2016 07:04:34 +0000 (+0900) Subject: Don't use sharing master fd code with libtdm-exynos backend X-Git-Tag: submit/tizen/20160306.224940~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a97c74719ae664ed6454c9cd46322327a6438845;p=platform%2Fadaptation%2Fsamsung_exynos%2Flibtbm-exynos.git Don't use sharing master fd code with libtdm-exynos backend Change-Id: I1d363e11258110fa619492eb00fe6f3a77775f71 --- diff --git a/src/tbm_bufmgr_exynos.c b/src/tbm_bufmgr_exynos.c index 20ce87b..a2093df 100644 --- a/src/tbm_bufmgr_exynos.c +++ b/src/tbm_bufmgr_exynos.c @@ -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());