From: Changyeon Lee Date: Thu, 3 Mar 2016 06:48:52 +0000 (+0900) Subject: Don't use sharing master fd code with libtdm-sprd backend X-Git-Tag: accepted/tizen/mobile/20160307.015815~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a291a5761a4416adc82d0db79012fa59e050947;p=platform%2Fadaptation%2Fspreadtrum%2Flibtbm-sprd.git Don't use sharing master fd code with libtdm-sprd backend Change-Id: I850fc4d50bb0e3a16a72fe0ce2a1ed602585f2fa --- diff --git a/src/tbm_bufmgr_sprd.c b/src/tbm_bufmgr_sprd.c index 63b0eb6..e8874fa 100755 --- a/src/tbm_bufmgr_sprd.c +++ b/src/tbm_bufmgr_sprd.c @@ -367,6 +367,7 @@ _tgl_get_data(int fd, unsigned int key, unsigned int *locked) return arg.data1; } +#if 0 static int _tbm_sprd_open_drm() { @@ -458,6 +459,7 @@ _tbm_sprd_open_drm() return fd; } +#endif static int _sprd_bo_cache_flush (tbm_bo bo, int flags) @@ -1860,6 +1862,8 @@ init_tbm_bufmgr_priv (tbm_bufmgr bufmgr, int fd) } if (tbm_backend_is_display_server()) { +#if 0 + /* this code is applied with libtdm-sprd */ int master_fd = -1; bufmgr_sprd->fd = -1; @@ -1870,6 +1874,9 @@ init_tbm_bufmgr_priv (tbm_bufmgr bufmgr, int fd) } else { bufmgr_sprd->fd = dup(master_fd); } +#else + bufmgr_sprd->fd = dup(fd); +#endif if (bufmgr_sprd->fd < 0) { TBM_SPRD_LOG ("[libtbm-sprd:%d] error: Fail to create drm!\n", getpid());