This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PSDKLA, EGL Application development issue with egl Image creation

We are trying to develop EGL application to be used with PSDKLA K4.4 based linux on J6.

For EGL image creation using EGL API "eglCreateImageKHR", the attributes uses "EGL_RAW_VIDEO_TI_DMABUF" which was defined in "EGL/eglext.h" in GLSDK 7.x based linux distributions, but same is missing in PSDKLA linux distribution.

Is there a EGL sample application available for PSDKLA to understand the above change ?

  • Hi,

    I have forwarded your question to Graphics expert.

    Regards,
    Yordan
  • Hi Jeyaprabhu,

    This feature will be officially available in PSDKLA3.02 release.

    But a sample application to demonstrate using NV12 dma buf import on EGL is available in

    git://git.ti.com/glsdk/omapdrmtest.git

    Refer display-kmscube.c and execute viddec3test with --kmscube option.

    To support this feature, sgx user space libraries also needs to be updated.

    git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git

    Branch :ti-img-sgx/1.14.3699939

    Ramprasad

  • Hi Ramprasath,
    Thanks for your response.
    we are aware of DMA BUFFER importing in EGL as we have implemented the same when using older GLSDK versions

    Now we are in need of developing the same in PSDKLA. But, we find some macros("EGL_TI_raw_video") are missing in "eglext.h" which are available in GLSDK

    How should we have to deal with missing macros?

    Can you let us know when PSDKLA 3.02 is likely to be available?

    Regards,
    Jeyaprabu

  • Hi Jeyaprabhu,
    In PSDKLA, EGL_RAW_VIDEO_TI_DMABUF macro will no more be supported.
    You need to use EGL_LINUX_DMA_BUF_EXT and set the plane attributes accordingly. Refer eglext.h of ti-img-sgx/1.14.3699939 branch for the details.
    Latest display-kmscube.c will show you the changes required in application to import NV12/YUV dambuf as EGLImage.

    PSDKLA3.01 will be available in last week of February.

    Thanks
    Ramprasad

  • Correction above - PSDKLA 3.02 will be available in last week of Feb. This will bring in ability to import DMABUF FD as GBM BO.

    We already have support for EGL_LINUX_DMA_BUF_EXT as part of 3.01 release made in Oct-2016.

    Regards,
    Anand
  • Hi,

    There was a suggested answer and since there has been no active on this thread for more than a week,
    the suggested answer was marked as verify. Please feel free to select the "Reject Answer" button
    and reply with more details.

    Regards,
    Yordan
  • Hi Anand,

    As we are adopting to new PSDKLA, we need omap_bo from gbm_bo

    previously we manually manipulated the omap handle ourself which is not safer

    gbmBo_m = gbm_bo_create(...);

    gbmBoHandle = gbm_bo_get_handle(gbmBo_m).u32;

    omapBo_m = omapBofromGbm(omapDevice_m, gbmBoHandle); //replacing omap handle with GBM handle(manipulating)

    But now we want to use the API to do the same,

    will the following implementation provides same effect?

    gbmBo_m = gbm_bo_create(...);

    omapBoFd_m = gbm_bo_get_fd(gbmBo_m);

    omapBo_m = omap_bo_from_dmabuf(omapDevice_m, omapBoFd_m);

    Is there any sample application which depicts this use case?

    Thanks in advance.

    Regards,

    Jeyaprabu

  • Hi Jeyaprabu,

    Since this thread is closed, can you open a new thread and post your question?

    Regards,
    Anand