x0038811 at ti.com
Fri Apr 21 06:45:58 EDT 2017
Hi Wataru san,
Thanks a lot for the information.
It is possible to get bo from name bo from dma_fd. I will try to use this method.
Thanks and regards,
From: Mizuno, Wataru (ADITJ/SWG) [mailto:wmizuno at jp.adit-jv.com]
Sent: Friday, April 21, 2017 1:35 PM
To: Prasad, Ram; genivi-ivi-layer-management at lists.genivi.org
Cc: securitycheck at denso.co.jp; Natsume, Wataru (ADITJ/SWG)
Subject: RE: simple-ivi-share issue
The simple-ivi-share doesn't support DMA buffer.
This application gets buffer name and creates eglImage by using CreateImageKHR() and it doen't support DMA buffer approach.
>What is the the alternate for EGL_DRM_BUFFER_MESA? Is there a way to use EGL_LINUX_DMA_BUF_EXT (sending dmabuf.fd instead of name).
Simple-ivi-share is created for Mesa, so others doesn't work.
I'm sorry I don't have idea for alternative way, but I think if your backend has the api create buffer object from DMA fd you might be able to create BO and create surface.
ADITJ / SWG
From: genivi-ivi-layer-management [mailto:genivi-ivi-layer-management-bounces at lists.genivi.org] On Behalf Of Prasad, Ram
Sent: Friday, April 21, 2017 4:03 PM
To: genivi-ivi-layer-management at lists.genivi.org
Subject: simple-ivi-share issue
Hi Genivi team,
I am Ramprasad working for TI's DRA7xx.
I am trying to test simple-ivi-share application on TI's DRA7xx EVM. gbm_bo_import in update_buffer_nativesurface() of ivi-share-gbm.c retured error since GBM_BO_IMPORT_WL_BUFFERis not supported.
TI's gbm backend is gbm_pvr and not gbm_dri(Mesa). It does not support GBM_BO_IMPORT_WL_BUFFER but I made it to get gbm_bo from GBM_BO_IMPORT_FD. I did this by using simple-dmabuf as the buffer sharing application and in ivi-share-gbm.c, I get the dmabuf from wl_buffer, followed by gbm_bo with GBM_BO_IMPORT_FD as import type.
Followed by this, simple-ivi-share gets callback handle_share_surface_damage() listener function, but it explicitly uses EGL_DRM_BUFFER_MESA as target to create eglImage which is again not supported by gbm_pvr.so.
What is the the alternate for EGL_DRM_BUFFER_MESA? Is there a way to use EGL_LINUX_DMA_BUF_EXT (sending dmabuf.fd instead of name).
Can you please help me?
genivi-ivi-layer-management mailing list genivi-ivi-layer-management at lists.genivi.org
More information about the genivi-ivi-layer-management