AnsweredAssumed Answered

i.Mx6 Vivante EGL: fbcreatewindow - how bind windowsurface to a particular framebuffer

Question asked by Ashok Kumar Reddy on Aug 16, 2012
Latest reply on Jul 7, 2015 by Konstantyn Prokopenko

Hi

In imx6, vivante has provided the graphics driver and implemented few EGL extension/wrapper files in vivante.h file.

For creating display and window, custom functions fbcreatedisplay and fbcreatewindow are used. When we create using these functions, the surface created seem to be bind to /dev/fb0.
We need to find a way to bind a surface to a different framebuffer like fb1, fb2 etc.

In imx53 and also in many other general implementations, eglcreatewindowsurface is used for the same as below:

eglsurface = eglCreateWindowSurface(egldisplay, eglconfig, open("/dev/fb0",
O_RDWR), NULL);

But in imx6 we find that this call though it does not give any error does not have any effect or any visual output for any framebuffer (even for fb0).

So how do we bind a particular surface to a framebuffer using EGL APIs or vivante APIs?

 

Thanks,

Ashok

Outcomes