[Mesa-users] EGL & OpenGLES2 without X

Will Wagner willw at carallon.com
Thu May 22 03:55:05 PDT 2014


Hello,

I am hoping to use Mesa to provide EGL and OpenGLES2 without any 
dependency on X on intel hardware. I am using version 10.2.rc3.

I am configuring mesa to include the gallium i915 driver, the exact 
command I use is:

./configure --disable-glx --disable-xa --disable-static --enable-opengl 
--enable-shared-glapi --with-gallium-drivers=i915 --without-dri-drivers 
--enable-gallium-egl --enable-gbm --enable-egl --with-egl-platforms=drm 
--enable-gles1 --enable-gles2

This produces a couple of egl drivers - egl_gallium and egl_dri2

I am able to run the es2gears example and that works correctly. However 
my application fails to run as it is unable to create a surface.

Looking at the es2gears example it uses eglCreateScreenSurfaceMESA to 
create the surface whereas my application uses eglCreateWindowSurface.

Also es2gears uses surface type EGL_SCREEN_BIT_MESA but I want to use 
EGL_WINDOW_BIT

Is it possible to build mesa without X so that it supports the standard 
EGL calls or is there no way of doing this without using the mesa extension?

Many thanks,
Will


-- 
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7471 9224
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------



More information about the mesa-users mailing list