Native Pixmap structure for i.MX6/ Vivante GPU

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Native Pixmap structure for i.MX6/ Vivante GPU

1,348 次查看
vvbinu
Contributor I

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?

标签 (3)
0 项奖励
回复
2 回复数

894 次查看
igorpadykov
NXP Employee
NXP Employee

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

0 项奖励
回复

894 次查看
vvbinu
Contributor I

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.

0 项奖励
回复