<div dir="ltr">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.<div>
<br></div><div><br><div style>Patrick</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 7, 2013 at 7:56 AM, Divick Kishore <span dir="ltr"><<a href="mailto:divick.kishore@gmail.com" target="_blank">divick.kishore@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
    I have compiled mesa with the following options:<br>
<br>
.././configure --prefix=~/lib/mesa/swrast/ --build=x86_64-linux-gnu<br>
--with-gallium-drivers= --with-driver=xlib --enable-egl --enable-gles1<br>
--enable-gles2 --with-egl-platforms="x11" CFLAGS="-Wall -g -O2"<br>
CXXFLAGS="-Wall -g -O2"<br>
<br>
but when I run a sample app with the following egl config, it returns 0 configs.<br>
<br>
EGLint attr[] = {       // some attributes to set up our egl-interface<br>
      EGL_BUFFER_SIZE, 16,<br>
      EGL_RENDERABLE_TYPE,<br>
      EGL_OPENGL_ES2_BIT,<br>
      EGL_NONE<br>
   };<br>
<br>
   EGLConfig  ecfg;<br>
   EGLint     num_config;<br>
   if ( !eglChooseConfig( egl_display, attr, &ecfg, 1, &num_config ) ) {<br>
      cerr << "Failed to choose config (eglError: " << eglGetError()<br>
<< ")" << endl;<br>
      return 1;<br>
   }<br>
<br>
<br>
The code above prints 'Failed to choose config'.<br>
<br>
While the same code works fine when I compile with:<br>
<br>
../../configure --prefix=~/lib/mesa/dri --build=x86_64-linux-gnu<br>
--with-driver=dri --with-dri-drivers="swrast"<br>
--with-dri-driverdir=~/lib/mesa/dri/<br>
--with-dri-searchpath='~/lib/mesa/dri' --enable-glx-tls --enable-xa<br>
--enable-driglx-direct --with-egl-platforms="x11"<br>
--enable-gallium-llvm=yes --with-gallium-drivers="swrast"<br>
--enable-gles1 --enable-gles2 --enable-gallium-egl --disable-glu<br>
CFLAGS="-Wall -g -O2" CXXFLAGS="-Wall -g -O2"<br>
<br>
Could someone please suggest what could be causing this?<br>
<br>
Thanks & Regards,<br>
Divick<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div><br></div>