diff options
author | YoungJun Cho <yj44.cho@samsung.com> | 2019-12-10 10:57:32 +0900 |
---|---|---|
committer | YoungJun Cho <yj44.cho@samsung.com> | 2019-12-10 11:10:19 +0900 |
commit | 8f08b555ce29433dcd23174a27d1e8c9bf4bb6f5 (patch) | |
tree | dc3591de3bf1e35b1a1ab5ed7c73f41bad059af4 | |
parent | ff0fac61458666e5cef44d26b08cfc5b5c57257f (diff) | |
download | libtbm-exynos-tgm-8f08b555ce29433dcd23174a27d1e8c9bf4bb6f5.tar.gz libtbm-exynos-tgm-8f08b555ce29433dcd23174a27d1e8c9bf4bb6f5.tar.bz2 libtbm-exynos-tgm-8f08b555ce29433dcd23174a27d1e8c9bf4bb6f5.zip |
Modify not to read dma_sync system param node for dma-buf fence
This patch modifies not to read dma_sync system param node for dma-buf fence.
Change-Id: I0d777542b19cdb77b85d09695fb407fdb922f58c
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
-rw-r--r-- | src/tbm_bufmgr_exynos.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/tbm_bufmgr_exynos.c b/src/tbm_bufmgr_exynos.c index e5e94ae..33a4c0d 100644 --- a/src/tbm_bufmgr_exynos.c +++ b/src/tbm_bufmgr_exynos.c @@ -2044,7 +2044,6 @@ tbm_exynos_init(tbm_bufmgr bufmgr, tbm_error_e *error) tbm_bufmgr_exynos bufmgr_exynos = NULL; tbm_backend_bufmgr_func *bufmgr_func = NULL; tbm_backend_bo_func *bo_func = NULL; - int fp; tbm_error_e err; if (!bufmgr) { @@ -2105,17 +2104,7 @@ tbm_exynos_init(tbm_bufmgr bufmgr, tbm_error_e *error) } } - //Check if the tbm manager supports dma fence or not. - fp = open("/sys/module/dmabuf_sync/parameters/enabled", O_RDONLY); - if (fp != -1) { - char buf[1]; - int length = read(fp, buf, 1); - - if (length == 1 && buf[0] == '1') - bufmgr_exynos->use_dma_fence = 1; - - close(fp); - } + bufmgr_exynos->use_dma_fence = 1; if (!_bufmgr_init_cache_state(bufmgr_exynos)) { TBM_ERR("fail to init bufmgr cache state\n"); |