added tbm_drm_helper_set/unset_fd 74/109974/1 tizen_3.0_tv accepted/tizen/3.0/common/20170118.131323 accepted/tizen/3.0/ivi/20170118.043623 accepted/tizen/3.0/mobile/20170118.043528 accepted/tizen/3.0/tv/20170118.043544 accepted/tizen/3.0/wearable/20170118.043602 accepted/tizen/common/20170117.175142 accepted/tizen/ivi/20170118.041513 accepted/tizen/mobile/20170118.041407 accepted/tizen/tv/20170118.041430 accepted/tizen/wearable/20170118.041450 submit/tizen/20170117.555555 submit/tizen_3.0/20170117.555555
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 12 Jan 2017 10:16:29 +0000 (19:16 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Thu, 12 Jan 2017 10:16:29 +0000 (19:16 +0900)
Change-Id: I329ffae645df5275f51949d3f5207f70bd29fe26

src/tbm_bufmgr_exynos.c

index 03923c9..a057a0e 100644 (file)
@@ -1746,6 +1746,8 @@ tbm_exynos_bufmgr_deinit(void *priv)
 
        if (tbm_backend_is_display_server())
                tbm_drm_helper_unset_tbm_master_fd();
+       else
+               tbm_drm_helper_unset_fd();
 
        close(bufmgr_exynos->fd);
 
@@ -2208,6 +2210,8 @@ init_tbm_bufmgr_priv(tbm_bufmgr bufmgr, int fd)
                                TBM_EXYNOS_ERROR("fail to get auth drm info!\n");
                                goto fail_get_auth_info;
                        }
+
+                       tbm_drm_helper_set_fd(bufmgr_exynos->fd);
                }
        }
 
@@ -2289,6 +2293,8 @@ fail_alloc_backend:
 fail_init_cache_state:
        if (tbm_backend_is_display_server())
                tbm_drm_helper_unset_tbm_master_fd();
+       else
+               tbm_drm_helper_unset_fd();
 fail_get_device_name:
        close(bufmgr_exynos->fd);
 fail_get_auth_info: