AnsweredAssumed Answered

Vivante eglCreateImageKHR Linux

Question asked by Sébastien Taylor on Jun 20, 2013
Latest reply on Aug 27, 2013 by Karina Valencia Aguilar
Branched to a new discussion

I'm trying to make use of eglCreateImageKHR on the i.MX6 in Linux (normal framebuffer drivers) but it is not clear what EGLClientBuffer should be.  I've tried using both physical and virtual addresses from both IPU allocated memory as well as from framebuffer (/dev/fb) devices.  In all cases the call returns EGL_BAD_PARAMETER.  I am trying to create an EGLImage for use as a texture in GLES 1.1 (possibly also a VGImage in the future) whose data comes from IPU allocated memory or a framebuffer (which the IPU can access directly).


image = eglCreateImageKHR(egl_display, EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, buffer, NULL);

eglGetError() always returns EGL_BAD_PARAMETER


For buffer I've tried using a EGLNativePixmapType returned from fbCreatePixmap, the physical address of the underlying /dev/fb device, the mmap'ed memory of the same /dev/fb device.  I've also tried using /dev/mxc_ipu to allocate memory and using either the physical or mmap'ed memory from there as well.