diff options
author | SooChan Lim <sc1.lim@samsung.com> | 2019-10-08 09:20:22 +0900 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2019-10-08 09:20:22 +0900 |
commit | e712115cc424b774d811086ef2c1d0a8770ad784 (patch) | |
tree | c4353053abd6d362988c3fed3c37ca9c5d9cc7ef | |
parent | f6f5e95f299a9ba284689c6f249ca5af1623f788 (diff) | |
download | libtbm-vc4-e712115cc424b774d811086ef2c1d0a8770ad784.tar.gz libtbm-vc4-e712115cc424b774d811086ef2c1d0a8770ad784.tar.bz2 libtbm-vc4-e712115cc424b774d811086ef2c1d0a8770ad784.zip |
remove the duplicated code
Change-Id: I703c33a5caa0acd884337a87851e3008b7ad2acd
-rw-r--r-- | src/tbm_bufmgr_vc4.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/tbm_bufmgr_vc4.c b/src/tbm_bufmgr_vc4.c index 37c9934..befbc02 100644 --- a/src/tbm_bufmgr_vc4.c +++ b/src/tbm_bufmgr_vc4.c @@ -53,7 +53,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include <tbm_log.h> #include "tbm_bufmgr_tgl.h" -#define USE_DMAIMPORT #define TBM_COLOR_FORMAT_COUNT 4 #define VC4_DRM_NAME "vc4" @@ -855,26 +854,6 @@ _vc4_bo_handle(tbm_bo_vc4 bo_vc4, int device) bo_handle.ptr = (void *)bo_vc4->pBase; break; case TBM_DEVICE_3D: -#ifdef USE_DMAIMPORT - if (bo_vc4->dmabuf) { - bo_handle.u32 = (uint32_t)bo_vc4->dmabuf; - break; - } - - if (!bo_vc4->dmabuf) { - struct drm_prime_handle arg = {0, }; - - arg.handle = bo_vc4->gem; - if (drmIoctl(bo_vc4->fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &arg)) { - TBM_ERR("Cannot dmabuf=%d\n", bo_vc4->gem); - return (tbm_bo_handle) NULL; - } - bo_vc4->dmabuf = arg.fd; - } - - bo_handle.u32 = (uint32_t)bo_vc4->dmabuf; -#endif - break; case TBM_DEVICE_MM: if (!bo_vc4->dmabuf) { struct drm_prime_handle arg = {0, }; |