Hello There, Guest! Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
opengl ES, Qt
#7
I've tried a different approach: trying to get an OpenGL context with just EGL.   I'm still trying to decipher the whole stack though.

For sure the hardware speaks fbdev since we have /dev/fb* devices.  
There is a mali kernel module loaded, which hopefully is the fbdev fork and not the X fork cause there is no sign of X.
The EGL and GLES libs are copies of libMali.so, which is right.
It is not using directfb.

With a simple test program, I can get EGL to spit out some info:

EGL API version: 1.4

EGL vendor string: ARM
EGL version string: 1.4 Linux-r3p2-01rel0
EGL client APIs: OpenGL_ES
EGL extensions string:
    EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_lock_surface EGL_KHR_lock_surface2 EGL_EXT_create_context_robustness

But then fails on:

Error: eglCreatePixmapSurface failed Error:0x00003009

I can get various similar errors by changing flags or trying eglCreateWindowSurface instead of pixmap.  All of which add up to "the buffer or window is bad".

I even tried patching and using SDL with some Mali support I found on the web, but it fails exactly the same way.

My next step is going to be using the exposed extensions to create a NativePixmapType via EGL_KHR_image_pixmap and feeding that to eglCreatePixmapSurface to see if it likes my buffers any better.  If anyone wants the source to play with just let me know and I'll paste it somewhere.

I didn't realize what a mess 3D on embedded Linux is before this adventure.
Reply


Messages In This Thread
opengl ES, Qt - by fanoush - 01-13-2016, 02:43 AM
RE: opengl ES, Qt - by fanoush - 01-13-2016, 03:52 PM
RE: opengl ES, Qt - by fanoush - 01-13-2016, 04:39 PM
RE: opengl ES, Qt - by is0-mick - 01-14-2016, 03:02 AM
RE: opengl ES, Qt - by fanoush - 01-14-2016, 07:25 AM
RE: opengl ES, Qt - by is0-mick - 01-14-2016, 02:13 PM
RE: opengl ES, Qt - by DentLoader - 01-16-2016, 02:39 AM

Forum Jump: