Change-Id: I850fc4d50bb0e3a16a72fe0ce2a1ed602585f2fa
return arg.data1;
}
+#if 0
static int
_tbm_sprd_open_drm()
{
return fd;
}
+#endif
static int
_sprd_bo_cache_flush (tbm_bo bo, int flags)
}
if (tbm_backend_is_display_server()) {
+#if 0
+ /* this code is applied with libtdm-sprd */
int master_fd = -1;
bufmgr_sprd->fd = -1;
} 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());