remove the duplicated codes 97/215397/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 8 Oct 2019 01:50:46 +0000 (10:50 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 8 Oct 2019 01:50:46 +0000 (10:50 +0900)
Change-Id: Ic87a41e3751f96bf48216fea3edf948dc65a6be6

src/tbm_bufmgr_nexell.c

index 4e0ca826db190ed005da358dc4fd3a30d22dc645..8fd92680b59a78cac3795c86f6b3c155380514a7 100644 (file)
@@ -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 6
 
 #define NEXELL_DRM_NAME "nexell"
@@ -742,26 +741,6 @@ _nexell_bo_handle(tbm_bo_nexell bo_nexell, int device)
                bo_handle.ptr = (void *)bo_nexell->pBase;
                break;
        case TBM_DEVICE_3D:
-#ifdef USE_DMAIMPORT
-               if (bo_nexell->dmabuf) {
-                       bo_handle.u32 = (uint32_t)bo_nexell->dmabuf;
-                       break;
-               }
-
-               if (!bo_nexell->dmabuf) {
-                       struct drm_prime_handle arg = {0, };
-
-                       arg.handle = bo_nexell->gem;
-                       if (drmIoctl(bo_nexell->fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &arg)) {
-                               TBM_ERR("Cannot dmabuf=%d\n", bo_nexell->gem);
-                               return (tbm_bo_handle) NULL;
-                       }
-                       bo_nexell->dmabuf = arg.fd;
-               }
-
-               bo_handle.u32 = (uint32_t)bo_nexell->dmabuf;
-#endif
-               break;
        case TBM_DEVICE_MM:
                if (!bo_nexell->dmabuf) {
                        struct drm_prime_handle arg = {0, };