From: Mun, Gwan-gyeong Date: Tue, 21 Mar 2017 02:33:04 +0000 (+0900) Subject: Apply tbm_drm_helper_set / unset_fd both of server(master) and client. X-Git-Tag: accepted/tizen/mobile/20170324.023938~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7998c518fa348b8888c7166654407bca28da09f9;p=platform%2Fadaptation%2Fspreadtrum%2Flibtbm-sprd.git Apply tbm_drm_helper_set / unset_fd both of server(master) and client. Some GLES/EGL Driver ,like as MESA, can call tbm_drm_helper_get_fd() both of server(master) and client. so, tbm backend should call tbm_drm_helper_set / unset over both of server(master) and client case. Change-Id: I4597f904bec3d4e6e20868a6ebf402d808ab7a9a Signed-off-by: Mun, Gwan-gyeong --- diff --git a/src/tbm_bufmgr_sprd.c b/src/tbm_bufmgr_sprd.c index 35535e3..ab15e62 100644 --- a/src/tbm_bufmgr_sprd.c +++ b/src/tbm_bufmgr_sprd.c @@ -1408,8 +1408,8 @@ tbm_sprd_bufmgr_deinit(void *priv) if (tbm_backend_is_display_server()) tbm_drm_helper_unset_tbm_master_fd(); - else - tbm_drm_helper_unset_fd(); + + tbm_drm_helper_unset_fd(); if (bufmgr_sprd->device_name) free(bufmgr_sprd->device_name); @@ -1776,8 +1776,8 @@ init_tbm_bufmgr_priv(tbm_bufmgr bufmgr, int fd) goto fail_get_auth_info; } - tbm_drm_helper_set_fd(bufmgr_sprd->fd); } + tbm_drm_helper_set_fd(bufmgr_sprd->fd); //Create Hash Table bufmgr_sprd->hashBos = drmHashCreate(); @@ -1857,8 +1857,7 @@ fail_init_cache_state: drmHashDestroy(bufmgr_sprd->hashBos); if (tbm_backend_is_display_server()) tbm_drm_helper_unset_tbm_master_fd(); - else - tbm_drm_helper_unset_fd(); + tbm_drm_helper_unset_fd(); if (bufmgr_sprd->device_name) free(bufmgr_sprd->device_name); fail_get_device_name: