Hi crg7475,
I am having this same issue. Could you provide any more detail on how you got eglCreateImage to work?
I have an example based on GLES3/Debayer from the gtec-demo-framework. I've created an FBO/render buffer with help from here: https://community.nxp.com/t5/i-MX-Processors/Zero-copy-between-GPU-and-VPU/m-p/1044158
Are you calling eglCreateImage or eglCreateImageKHR? I've tried both. When looking at the extension spec (https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_image_dma_buf_import.txt), my first try was to use the default display with no context, and the dma buf fd in the attributes:
g_eglimage = eglCreateImageKHR(EGL_DEFAULT_DISPLAY, EGL_NO_CONTEXT, EGL_GL_RENDERBUFFER, (EGLClientBuffer)(&m_userData.renderbuf), g_attribs);
But that got me EGL_BAD_DISPLAY. I'm using the fsl-imx-wayland distro on an IMX8QM dev board. Searching in the forum turned up hits on setting displayinfo on kernel cmd line, exporting DISPLAY and WAYLAND_DISPLAY but it didn't help.
So next I tried to create a display. Which I was eventually able to do using fbGetDisplayByIndex / fbCreateWindow. But I'm not sure this is correct given I have a wayland build. And while I was able to create the display and context, I now get different errors (bad param, bad match) from eglCreateImage.
Any help is appreciated.
Thanks,
Daryl