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

Chad Versace chad.versace at linux.intel.com
Tue May 7 08:23:28 PDT 2013


On 05/07/2013 05:56 AM, Divick Kishore wrote:
> 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?

I suspect that, in the first build configuration, the built EGL does not support
16-bit configs. Does your app work if you set EGL_BUFFER_SIZE=24 or EGL_BUFFER_SIZE=32?


More information about the mesa-dev mailing list