[Mesa-users] EGL DRI Driver Loading Error

Srini srini_rajini at yahoo.com
Wed Feb 23 21:47:48 PST 2011


Hi Chai,
 this is the response.
[srini at RHEL2 check_GLES]$ export EGL_DRIVER=/usr/local/lib/egl/egl_dri2.so
[srini at RHEL2 check_GLES]$ ./sphere 
libEGL fatal: DRI2: did not find extension DRI_IMAGE version 1

what does it mean? am i messing up anywhere?

Regards,
Srini




________________________________
From: Chia-I Wu <olvaffe at gmail.com>
To: Srini <srini_rajini at yahoo.com>
Sent: Wed, 23 February, 2011 9:57:25 PM
Subject: Re: [Mesa-users] EGL DRI Driver Loading Error

On Wed, Feb 23, 2011 at 6:16 AM, Srini <srini_rajini at yahoo.com> wrote:
> Hello Mr Chia,
>     after building the mesa with this configuration i can list the
> egl_dri2.so in install path below is the listing.
>
> [srini at RHEL2 check_GLES]$ ls -l /usr/local/lib/egl/
> total 7896
> -rwxr-xr-x 1 root root   65383 Feb 23 16:58 egl_dri2.so
> -rwxr-xr-x 1 root root   41347 Feb 23 16:58 egl_glx.so
> -rwxr-xr-x 1 root root 3223858 Feb 23 16:58 egl_x11_i915.so
> -rwxr-xr-x 1 root root 4744090 Feb 23 16:58 egl_x11_i965.so
>
> but still, if i run the application the below warning mesasge is printing
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./sphere
> libEGL warning: GLX/DRI2 is not supported
> libEGL warning: use software fallback
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> and then i tried exporting EGL_DRIVER as below
> set EGL_DRIVER=/usr/local/lib/egl_dri2.so
Try

  $ export EGL_DRIVER=/usr/local/lib/egl_dri2.so
> even now i am getting the same reply, saying fallback to software. i could
> didn't understand how to divert it through hardware. is it mean that my PC
> doesn't have GPU?how can i ensure that my PC have GPU.
>
>
> Many Thanks in Advance.
>
> Regards,
> Srini.
>
>
> ________________________________
> From: Chia-I Wu <olvaffe at gmail.com>
> To: Srini <srini_rajini at yahoo.com>
> Cc: mesa-users at lists.freedesktop.org
> Sent: Wed, 23 February, 2011 11:18:31 AM
> Subject: Re: [Mesa-users] EGL DRI Driver Loading Error
>
> On Tue, Feb 22, 2011 at 9:56 PM, Srini <srini_rajini at yahoo.com> wrote:
>> [srini at RHEL2 ~]$ xdpyinfo |grep GLX
>> [srini at RHEL2 ~]$
>>
>> Doesn't print anything.
>> [srini at RHEL2 ~]$ xdpyinfo |grep DRI2
>>     DRI2
>> [srini at RHEL2 ~]$
>>
>> This prints DRI2.
>>
>> I couldn't understand what it is significant for, can you please explain
>> me?
>>
>> can you please confirm me the configurationn i am doing is correct for
>> enabling hardware acceleration?
> The EGL driver you are using uses GLX protocol to get a list of
> supported visuals from the server.
>
> With i915, you might prefer
>
>   $ ./configure --enable-gles2 --with-dri-drivers=i915 --disable-gallium
>
> and be sure egl_dri2 is listed in "EGL drivers:" (which depends on
> xcb-dri2 and xcb-fixes).
>
> You may also want to use Mesa 7.10.
>
>
>> Regards,
>> Srini.
>>
>> ________________________________
>> From: Chia-I Wu <olvaffe at gmail.com>
>> To: Srini <srini_rajini at yahoo.com>
>> Cc: mesa-users at lists.freedesktop.org
>> Sent: Wed, 23 February, 2011 12:20:22 AM
>> Subject: Re: [Mesa-users] EGL DRI Driver Loading Error
>>
>> On Tue, Feb 22, 2011 at 9:31 AM, Srini <srini_rajini at yahoo.com> wrote:
>>> I have solved the loading problem by building the Mesa again with below
>>> configuration
>>>
>>> ./configure --prefix=/usr/local --enable-gles2 --enable-egl
>>> --with-egl-platforms=drm --enable-gallium-egl=i915
>>> --with-dri-drivers=i915
>>> --disable-glw --enable-gallium-intel --with-state-trackers=egl,es,dri
>>>
>>> this configuration will install in /ur/local/ and removed all the entries
>>> from /usr/
>>>
>>> Now the gles applicaton is running fine but it again goes through
>>> software
>>> with below warning message.
>>>
>>>
>>>
>>>********************************************************************************************
>>>*
>>> ./sphere
>>> libEGL warning: GLX/DRI2 is not supported
>> This message means that either GLX or DRI2 extension is not available.
>> What does
>>
>>   $ xdpyinfo | grep GLX
>>   $ xdpyinfo | grep DRI2
>>
>> give on your machine?
>>> libEGL warning: use software fallback
>>>
>>>
>>>*********************************************************************************************
>>>*
>>>
>>> How can i enable the hardware rendering.
>>> My Desktop has support for advanced graphics.
>>>
>>> glxinfo |grep renderin returns
>>> Direct rendering yes.
>>>
>>>
>>> anyone please give me hint.
>>>
>>> Regards,
>>> Srini.
>>> ________________________________
>>> From: Srini <srini_rajini at yahoo.com>
>>> To: mesa-users at lists.freedesktop.org
>>> Sent: Tue, 22 February, 2011 9:00:10 PM
>>> Subject: [Mesa-users] EGL DRI Driver Loading Error
>>>
>>> Dear All,
>>>
>>> May be i could have write the same earlier, but still i am not clear,
>>> deep
>>> apolozise for fillup your inbox.
>>>
>>>     I downloaded Mesa 7.8.2 and configured with
>>> ./configure --prefix=/usr --enable-gles2 --enable-egl
>>> --with-egl-platforms=x11,drm --enable-gallium-egl=i915
>>> --with-dri-drivers=i915,swrast --disable-glw
>>>
>>> I belive this configuration will built hardware pipe line driver for i915
>>> GPU
>>>
>>> after built and install. i can see libraries in /usr/lib/ and
>>> /usr/lib/egl/
>>>
>>> i have simple gles test application runs pretty good with software
>>> acceleration in different machine. when i try to run the same application
>>> by
>>> loading the newly built mesa librires i am getting below error.
>>>
>>>
>>>****************************************************************************************************************
>>>*
>>> libEGL warning: Could not open driver /usr/lib/egl/egl_glx
>>> (/usr/lib/egl/egl_glx: cannot open shared object file: No such file or
>>> directory)
>>> libEGL warning: The driver can be overridden by setting EGL_DRIVER
>>> Error returned by eglCreateWindowSurface - error = 0x3005
>>>
>>>
>>>****************************************************************************************************************
>>>*
>>> if i do set EGL_DRIVER=/usr/lib/egl/egl_dri2.so i am getting the same
>>> error.
>>>
>>> My question is first is.
>>> 1) is the configuration options what i am enabling is right?to get the
>>> hardware GPU enabled GLES rendering.
>>> 2) How can i resolve above errors while running the application?
>>> 3) after appliaction start runs successfully how can i ensure that it
>>> goes
>>> through hardware pipe line only?
>>>
>>> could anyone please give me hint to solve this issue.
>>>
>>> eagerly waiting for reply.
>>>
>>> Many thanks in advance.
>>>
>>> Regards,
>>> Srini.
>>>
>>>
>>>
>>> _______________________________________________
>>> mesa-users mailing list
>>> mesa-users at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/mesa-users
>>>
>>>
>>
>>
>>
>> --
>> olv at LunarG.com
>>
>>
>
>
>
> --
> olv at LunarG.com
>
>



-- 
olv at LunarG.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-users/attachments/20110224/770ff4b6/attachment.htm>


More information about the mesa-users mailing list