remove define USE_DMAIMPORT 15/208515/4
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 20 Jun 2019 10:03:48 +0000 (19:03 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 10 Jul 2019 04:12:48 +0000 (04:12 +0000)
Change-Id: I7f14d84f3e2aea63898b0bc75d98d77bc9936b60

src/tbm_bufmgr_exynos.c

index 105ba64..747208f 100644 (file)
@@ -54,7 +54,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include <system_info.h>
 #include "tbm_bufmgr_tgl.h"
 
-#define USE_DMAIMPORT
 #define TBM_COLOR_FORMAT_COUNT 4
 
 #define EXYNOS_DRM_NAME "exynos"
@@ -795,26 +794,6 @@ _exynos_bo_handle(tbm_bo_exynos bo_exynos, int device)
                bo_handle.ptr = (void *)bo_exynos->pBase;
                break;
        case TBM_DEVICE_3D:
-#ifdef USE_DMAIMPORT
-               if (bo_exynos->dmabuf) {
-                       bo_handle.u32 = (uint32_t)bo_exynos->dmabuf;
-                       break;
-               }
-
-               if (!bo_exynos->dmabuf) {
-                       struct drm_prime_handle arg = {0, };
-
-                       arg.handle = bo_exynos->gem;
-                       if (drmIoctl(bo_exynos->fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &arg)) {
-                               TBM_ERR("Cannot dmabuf=%d\n", bo_exynos->gem);
-                               return (tbm_bo_handle) NULL;
-                       }
-                       bo_exynos->dmabuf = arg.fd;
-               }
-
-               bo_handle.u32 = (uint32_t)bo_exynos->dmabuf;
-#endif
-               break;
        case TBM_DEVICE_MM:
                if (!bo_exynos->dmabuf) {
                        struct drm_prime_handle arg = {0, };