diff options
author | Roman Marchenko <r.marchenko@samsung.com> | 2016-02-17 15:35:58 +0200 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2016-03-07 19:42:46 +0900 |
commit | 3c7938d12cfdd71a69c8bb0107e96fb4badb6001 (patch) | |
tree | 417392a4576ea1b5cf2e751f32c8026f889a61f1 | |
parent | d5dc753f1657cb43de7a8084974f1d58440dabdb (diff) | |
download | libtbm-dumb-3c7938d12cfdd71a69c8bb0107e96fb4badb6001.tar.gz libtbm-dumb-3c7938d12cfdd71a69c8bb0107e96fb4badb6001.tar.bz2 libtbm-dumb-3c7938d12cfdd71a69c8bb0107e96fb4badb6001.zip |
dumb: Don't save fd when tbm_bo_import_fd() is colled.submit/tizen/20160307.110800accepted/tizen/wearable/20160308.021539accepted/tizen/tv/20160308.021503accepted/tizen/mobile/20160308.021428accepted/tizen/ivi/20160308.021619accepted/tizen/common/20160307.154833
The user of libtbm have to control state of "fd" by himself. So libtbm shouldn't save fd which received by tbm_bo_import_fd()
Change-Id: Iec7fa7227d7f0f77a3d508095ee13d905fd58f2d
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
-rw-r--r-- | src/tbm_bufmgr_dumb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbm_bufmgr_dumb.c b/src/tbm_bufmgr_dumb.c index d1d1d7b..e4d80ab 100644 --- a/src/tbm_bufmgr_dumb.c +++ b/src/tbm_bufmgr_dumb.c @@ -673,7 +673,7 @@ tbm_dumb_bo_import_fd (tbm_bo bo, tbm_fd key) bo_dumb->fd = bufmgr_dumb->fd; bo_dumb->gem = gem; - bo_dumb->dmabuf = key; + bo_dumb->dmabuf = 0; bo_dumb->size = real_size; bo_dumb->flags_dumb = 0; bo_dumb->flags_tbm = _get_tbm_flag_from_dumb (bo_dumb->flags_dumb); |