Don't use sharing master fd code with libtdm-sprd backend 61/60961/1 sandbox/cyeon/devel
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 3 Mar 2016 06:48:52 +0000 (15:48 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Thu, 3 Mar 2016 06:48:52 +0000 (15:48 +0900)
Change-Id: I850fc4d50bb0e3a16a72fe0ce2a1ed602585f2fa

src/tbm_bufmgr_sprd.c

index 63b0eb6..e8874fa 100755 (executable)
@@ -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());