Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 86272E00529; Tue, 25 Oct 2016 08:58:38 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, URI_HEX autolearn=no version=3.3.1 X-Spam-HAM-Report: * 1.1 URI_HEX URI: URI hostname has long hexadecimal sequence * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [198.47.19.12]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5CC57E00503 for ; Tue, 25 Oct 2016 08:58:34 -0700 (PDT) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id u9PFwXVw013855 for ; Tue, 25 Oct 2016 10:58:33 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id u9PFwX6W023812 for ; Tue, 25 Oct 2016 10:58:33 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Tue, 25 Oct 2016 10:58:32 -0500 Received: from tigfx.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id u9PFwVb0026563; Tue, 25 Oct 2016 10:58:32 -0500 From: Anand Balagopalakrishnan To: Date: Tue, 25 Oct 2016 21:28:28 +0530 Message-ID: <1477411108-2316-1-git-send-email-anandb@ti.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [PATCH 1/1] ti-sgx-ddk-um: add support for importing DMABUF as EGLImage X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2016 15:58:38 -0000 Content-Type: text/plain This patch adds support for importing DMABUFs as EGLImages. This work is based on the Spec defined in https://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_image_dma_buf_import.txt The feature currently supports YUYV and NV12 formats In addition, the following are supported: * YUV full range and narrow range * YUV color space BT709 and BT601 * YUV color space BT2020 is not supported * Chroma siting parameters are ignored For YUYV buffers, user needs to pass the width, height, and a 3-tuple consisting of the dmabuf fd, pitch, and offset=0. For YUV buffers, user needs to pass the width, height and two 3-tuples consisting of the dmabuf fds, pitches, and offsets=0. Please note that multiple dmabuf fds are not supported, and therefore, for NV12, * fd[0] must be equal to fd[1] and * pitch[0] must be equal to pitch[1] Signed-off-by: Anand Balagopalakrishnan --- recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb index 9d0c406..15c9232 100644 --- a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +++ b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb @@ -8,7 +8,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" BRANCH = "ti-img-sgx/${PV}" SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}" -SRCREV = "f65d06843ef21964e266a7618c1529840653d563" +SRCREV = "fccafce7d0a023e36c064ccbaa7d33e89252ea00" # There's only hardfp version available python __anonymous() { @@ -31,7 +31,7 @@ INITSCRIPT_PARAMS = "defaults 8" inherit update-rc.d -PR = "r15" +PR = "r16" PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 omap5-sgx-ddk-um-linux" DEPENDS += "libdrm udev libgbm wayland libffi" -- 1.9.1