[Mesa-dev] No configs available with xlib based egl

Divick Kishore divick.kishore at gmail.com
Tue May 7 05:56:48 PDT 2013


Hi,
    I have compiled mesa with the following options:

.././configure --prefix=~/lib/mesa/swrast/ --build=x86_64-linux-gnu
--with-gallium-drivers= --with-driver=xlib --enable-egl --enable-gles1
--enable-gles2 --with-egl-platforms="x11" CFLAGS="-Wall -g -O2"
CXXFLAGS="-Wall -g -O2"

but when I run a sample app with the following egl config, it returns 0 configs.

EGLint attr[] = {       // some attributes to set up our egl-interface
      EGL_BUFFER_SIZE, 16,
      EGL_RENDERABLE_TYPE,
      EGL_OPENGL_ES2_BIT,
      EGL_NONE
   };

   EGLConfig  ecfg;
   EGLint     num_config;
   if ( !eglChooseConfig( egl_display, attr, &ecfg, 1, &num_config ) ) {
      cerr << "Failed to choose config (eglError: " << eglGetError()
<< ")" << endl;
      return 1;
   }


The code above prints 'Failed to choose config'.

While the same code works fine when I compile with:

../../configure --prefix=~/lib/mesa/dri --build=x86_64-linux-gnu
--with-driver=dri --with-dri-drivers="swrast"
--with-dri-driverdir=~/lib/mesa/dri/
--with-dri-searchpath='~/lib/mesa/dri' --enable-glx-tls --enable-xa
--enable-driglx-direct --with-egl-platforms="x11"
--enable-gallium-llvm=yes --with-gallium-drivers="swrast"
--enable-gles1 --enable-gles2 --enable-gallium-egl --disable-glu
CFLAGS="-Wall -g -O2" CXXFLAGS="-Wall -g -O2"

Could someone please suggest what could be causing this?

Thanks & Regards,
Divick


More information about the mesa-dev mailing list