We are trying to port a client/ srever application from Pandaboard to i.MX6Q sabre AI. (I am using Yocto - gemini build)
Our logic is like client is using eglCopyBuffers to get the render buffer to native pixmap and sharing by shared memory (using shmat) with server. Server is using "eglCreateImageKHR" with the shared memory as buffer for client buffer.
We are stuck as we could not find pixmap structure that can be used with eglCopyBuffers for Vivante GPU.
Can somebody please share the structure for native pixmap or guide us how to proceed with the same logic?
Hi Binoy,
had you checked gpu-samples-mx6 below ?
gpu-samples-mx6/lesson05/include/EGL/egl.h at master · rogeriorps/gpu-samples-mx6 · GitHub
Best regards
chip
Hi...
Sorry for the delayed reply... I was busy with another project.
egl.h do not define the pixmap structure... In fact I want the pixmap buffer as a pointer, so that I can share it manually.
I could find a structure in KHR/khrvivante.h:
struct _khrEGL_IMAGE_PIXMAP
{
gctUINT width;
gctUINT height;
gceSURF_FORMAT format;
gctINT stride;
gctPOINTER address;
} pixmap;
Can this structure be passed as native_pixmap parameter to eglCopyBuffers? I think I should try it.
Thanks & Regards,
Binoy.