diff options
author | YoungJun Cho <yj44.cho@samsung.com> | 2019-12-10 10:57:32 +0900 |
---|---|---|
committer | Changyeon Lee <cyeon.lee@samsung.com> | 2019-12-10 12:39:26 +0900 |
commit | 8f79447b094b4eb041618f1c24bc4c7453593363 (patch) | |
tree | 8f8d837e0475f5b32f34fdf34d6e7440e6cf533f | |
parent | 43e9b1aac99d385e8fba383bc8e082569281c17f (diff) | |
download | libtbm-exynos-tgm-8f79447b094b4eb041618f1c24bc4c7453593363.tar.gz libtbm-exynos-tgm-8f79447b094b4eb041618f1c24bc4c7453593363.tar.bz2 libtbm-exynos-tgm-8f79447b094b4eb041618f1c24bc4c7453593363.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 974e399..29f6641 100644 --- a/src/tbm_bufmgr_exynos.c +++ b/src/tbm_bufmgr_exynos.c @@ -2054,7 +2054,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) { @@ -2115,17 +2114,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"); |