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

Patrick Baggett baggett.patrick at gmail.com
Tue May 7 08:38:59 PDT 2013


Perhaps 16-bit color isn't supported? Maybe try other color bits or set
R/G/B individually and see what happens. Also, there is an eglinfo tool
source code in Mesa that can probably tell you a whole lot more.


Patrick


On Tue, May 7, 2013 at 7:56 AM, Divick Kishore <divick.kishore at gmail.com>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?
>
> Thanks & Regards,
> Divick
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130507/8c6e38c0/attachment.html>


More information about the mesa-dev mailing list