<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi Chai,<br> this is the response.<br>[srini@RHEL2 check_GLES]$ export EGL_DRIVER=/usr/local/lib/egl/egl_dri2.so<br>[srini@RHEL2 check_GLES]$ ./sphere <br>libEGL fatal: DRI2: did not find extension DRI_IMAGE version 1<br><br>what does it mean? am i messing up anywhere?<br><br>Regards,<br>Srini<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Chia-I Wu <olvaffe@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Srini <srini_rajini@yahoo.com><br><b><span style="font-weight: bold;">Sent:</span></b> Wed, 23 February, 2011 9:57:25 PM<br><b><span
style="font-weight: bold;">Subject:</span></b> Re: [Mesa-users] EGL DRI Driver Loading Error<br></font><br>On Wed, Feb 23, 2011 at 6:16 AM, Srini <<a ymailto="mailto:srini_rajini@yahoo.com" href="mailto:srini_rajini@yahoo.com">srini_rajini@yahoo.com</a>> wrote:<br>> Hello Mr Chia,<br>> after building the mesa with this configuration i can list the<br>> egl_dri2.so in install path below is the listing.<br>><br>> [srini@RHEL2 check_GLES]$ ls -l /usr/local/lib/egl/<br>> total 7896<br>> -rwxr-xr-x 1 root root 65383 Feb 23 16:58 egl_dri2.so<br>> -rwxr-xr-x 1 root root 41347 Feb 23 16:58 egl_glx.so<br>> -rwxr-xr-x 1 root root 3223858 Feb 23 16:58 egl_x11_i915.so<br>> -rwxr-xr-x 1 root root 4744090 Feb 23 16:58 egl_x11_i965.so<br>><br>> but still, if i run the application the below warning mesasge is printing<br>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>> ./sphere<br>> libEGL warning: GLX/DRI2 is not supported<br>> libEGL warning: use software fallback<br>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>> and then i tried exporting EGL_DRIVER as below<br>> set EGL_DRIVER=/usr/local/lib/egl_dri2.so<br>Try<br><br> $ export EGL_DRIVER=/usr/local/lib/egl_dri2.so<br>> even now i am getting the same reply, saying fallback to software. i could<br>> didn't understand how to divert it through hardware. is it mean that my PC<br>> doesn't have GPU?how can i ensure that my PC have GPU.<br>><br>><br>> Many Thanks in Advance.<br>><br>> Regards,<br>> Srini.<br>><br>><br>> ________________________________<br>> From: Chia-I Wu <<a ymailto="mailto:olvaffe@gmail.com" href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>><br>> To: Srini <<a
ymailto="mailto:srini_rajini@yahoo.com" href="mailto:srini_rajini@yahoo.com">srini_rajini@yahoo.com</a>><br>> Cc: <a ymailto="mailto:mesa-users@lists.freedesktop.org" href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>> Sent: Wed, 23 February, 2011 11:18:31 AM<br>> Subject: Re: [Mesa-users] EGL DRI Driver Loading Error<br>><br>> On Tue, Feb 22, 2011 at 9:56 PM, Srini <<a ymailto="mailto:srini_rajini@yahoo.com" href="mailto:srini_rajini@yahoo.com">srini_rajini@yahoo.com</a>> wrote:<br>>> [srini@RHEL2 ~]$ xdpyinfo |grep GLX<br>>> [srini@RHEL2 ~]$<br>>><br>>> Doesn't print anything.<br>>> [srini@RHEL2 ~]$ xdpyinfo |grep DRI2<br>>> DRI2<br>>> [srini@RHEL2 ~]$<br>>><br>>> This prints DRI2.<br>>><br>>> I couldn't understand what it is significant for, can you please explain<br>>> me?<br>>><br>>> can
you please confirm me the configurationn i am doing is correct for<br>>> enabling hardware acceleration?<br>> The EGL driver you are using uses GLX protocol to get a list of<br>> supported visuals from the server.<br>><br>> With i915, you might prefer<br>><br>> $ ./configure --enable-gles2 --with-dri-drivers=i915 --disable-gallium<br>><br>> and be sure egl_dri2 is listed in "EGL drivers:" (which depends on<br>> xcb-dri2 and xcb-fixes).<br>><br>> You may also want to use Mesa 7.10.<br>><br>><br>>> Regards,<br>>> Srini.<br>>><br>>> ________________________________<br>>> From: Chia-I Wu <<a ymailto="mailto:olvaffe@gmail.com" href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>><br>>> To: Srini <<a ymailto="mailto:srini_rajini@yahoo.com" href="mailto:srini_rajini@yahoo.com">srini_rajini@yahoo.com</a>><br>>> Cc: <a
ymailto="mailto:mesa-users@lists.freedesktop.org" href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>>> Sent: Wed, 23 February, 2011 12:20:22 AM<br>>> Subject: Re: [Mesa-users] EGL DRI Driver Loading Error<br>>><br>>> On Tue, Feb 22, 2011 at 9:31 AM, Srini <<a ymailto="mailto:srini_rajini@yahoo.com" href="mailto:srini_rajini@yahoo.com">srini_rajini@yahoo.com</a>> wrote:<br>>>> I have solved the loading problem by building the Mesa again with below<br>>>> configuration<br>>>><br>>>> ./configure --prefix=/usr/local --enable-gles2 --enable-egl<br>>>> --with-egl-platforms=drm --enable-gallium-egl=i915<br>>>> --with-dri-drivers=i915<br>>>> --disable-glw --enable-gallium-intel --with-state-trackers=egl,es,dri<br>>>><br>>>> this configuration will install in /ur/local/ and removed all the entries<br>>>>
from /usr/<br>>>><br>>>> Now the gles applicaton is running fine but it again goes through<br>>>> software<br>>>> with below warning message.<br>>>><br>>>><br>>>><br>>>> ********************************************************************************************<br>>>> ./sphere<br>>>> libEGL warning: GLX/DRI2 is not supported<br>>> This message means that either GLX or DRI2 extension is not available.<br>>> What does<br>>><br>>> $ xdpyinfo | grep GLX<br>>> $ xdpyinfo | grep DRI2<br>>><br>>> give on your machine?<br>>>> libEGL warning: use software fallback<br>>>><br>>>><br>>>> *********************************************************************************************<br>>>><br>>>> How can i enable the hardware rendering.<br>>>> My Desktop has
support for advanced graphics.<br>>>><br>>>> glxinfo |grep renderin returns<br>>>> Direct rendering yes.<br>>>><br>>>><br>>>> anyone please give me hint.<br>>>><br>>>> Regards,<br>>>> Srini.<br>>>> ________________________________<br>>>> From: Srini <<a ymailto="mailto:srini_rajini@yahoo.com" href="mailto:srini_rajini@yahoo.com">srini_rajini@yahoo.com</a>><br>>>> To: <a ymailto="mailto:mesa-users@lists.freedesktop.org" href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>>>> Sent: Tue, 22 February, 2011 9:00:10 PM<br>>>> Subject: [Mesa-users] EGL DRI Driver Loading Error<br>>>><br>>>> Dear All,<br>>>><br>>>> May be i could have write the same earlier, but still i am not clear,<br>>>> deep<br>>>> apolozise for fillup your
inbox.<br>>>><br>>>> I downloaded Mesa 7.8.2 and configured with<br>>>> ./configure --prefix=/usr --enable-gles2 --enable-egl<br>>>> --with-egl-platforms=x11,drm --enable-gallium-egl=i915<br>>>> --with-dri-drivers=i915,swrast --disable-glw<br>>>><br>>>> I belive this configuration will built hardware pipe line driver for i915<br>>>> GPU<br>>>><br>>>> after built and install. i can see libraries in /usr/lib/ and<br>>>> /usr/lib/egl/<br>>>><br>>>> i have simple gles test application runs pretty good with software<br>>>> acceleration in different machine. when i try to run the same application<br>>>> by<br>>>> loading the newly built mesa librires i am getting below error.<br>>>><br>>>><br>>>>
****************************************************************************************************************<br>>>> libEGL warning: Could not open driver /usr/lib/egl/egl_glx<br>>>> (/usr/lib/egl/egl_glx: cannot open shared object file: No such file or<br>>>> directory)<br>>>> libEGL warning: The driver can be overridden by setting EGL_DRIVER<br>>>> Error returned by eglCreateWindowSurface - error = 0x3005<br>>>><br>>>><br>>>> ****************************************************************************************************************<br>>>> if i do set EGL_DRIVER=/usr/lib/egl/egl_dri2.so i am getting the same<br>>>> error.<br>>>><br>>>> My question is first is.<br>>>> 1) is the configuration options what i am enabling is right?to get the<br>>>> hardware GPU enabled GLES rendering.<br>>>> 2) How can i resolve
above errors while running the application?<br>>>> 3) after appliaction start runs successfully how can i ensure that it<br>>>> goes<br>>>> through hardware pipe line only?<br>>>><br>>>> could anyone please give me hint to solve this issue.<br>>>><br>>>> eagerly waiting for reply.<br>>>><br>>>> Many thanks in advance.<br>>>><br>>>> Regards,<br>>>> Srini.<br>>>><br>>>><br>>>><br>>>> _______________________________________________<br>>>> mesa-users mailing list<br>>>> <a ymailto="mailto:mesa-users@lists.freedesktop.org" href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>>>> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-users"
target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-users</a><br>>>><br>>>><br>>><br>>><br>>><br>>> --<br>>> <a ymailto="mailto:olv@LunarG.com" href="mailto:olv@LunarG.com">olv@LunarG.com</a><br>>><br>>><br>><br>><br>><br>> --<br>> <a ymailto="mailto:olv@LunarG.com" href="mailto:olv@LunarG.com">olv@LunarG.com</a><br>><br>><br><br><br><br>-- <br><a ymailto="mailto:olv@LunarG.com" href="mailto:olv@LunarG.com">olv@LunarG.com</a><br></div></div>
</div><br></body></html>