ok , when i replaced my own build i915_dri.so with the orginal dri driver xeglgears works with hw acceleration. ( i used original because with some configs x console reports unknown pci id .... and clients say could not get dobule buffered RGB ... )<br>
<br>but opengles1 demos still not working. <br><br>libEGL debug: EGL user error 0x3004 (EGL_BAD_ATTRIBUTE) in eglChoseConfig<br>EGLUT: failed to choose config .<br><br><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 7:37 PM, Chia-I Wu <span dir="ltr"><<a href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Wed, Nov 10, 2010 at 11:40 PM, Clurado cl <<a href="mailto:clurado1980@gmail.com">clurado1980@gmail.com</a>> wrote:<br>
><br>
> Mesa 7.9 from ftp , demos 8.0.1 from ftp<br>
><br>
><br>
> when there is no gallium egl driver , without setting EGL_DRIVER=egl_dri2:<br>
><br>
> egl/opengl/xeglgears :<br>
><br>
> ./xeglgears<br>
> libEGL debug: added /usr/lib/egl/egl_dri2.so to module array<br>
> libEGL debug: added /usr/lib/egl/egl_glx.so to module array<br>
> libEGL debug: added /usr/lib/egl/egl_x11_nouveau.so to module array<br>
> libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so)<br>
> libEGL debug: DRI2: dlopen(/usr/lib/dri/i915_dri.so)<br>
> libEGL debug: DRI2: found extension `DRI_Core'<br>
> libEGL info: DRI2: found extension DRI_Core version 1<br>
> libEGL debug: DRI2: found extension `DRI_DRI2'<br>
> libEGL info: DRI2: found extension DRI_DRI2 version 1<br>
</div>There is a bug in egl_dri2 that makes it fail to work with DRI drivers<br>
with DRI_DRI2 extension version 1. As a workaround, you have to build<br>
i915_dri.so and have it replace your system's. Or choose a different<br>
installation path.<br>
<br>
But the log from last week showed version 2. If you still have<br>
problems after replacing i915_dri.so, you should run the demos with<br>
breakpoints set at dri2_init_screen and intelInitScreen2 to see which<br>
bits of api_mask are set. Normally, __DRI_API_OPENGL and<br>
__DRI_API_GLES2 should be set when --enable-gles2 is given.<br>
<div><div></div><div class="h5">> libEGL debug: DRI2: found extension `DRI_ReadDrawable'<br>
> libEGL debug: DRI2: found extension `DRI_TexBuffer'<br>
> libEGL info: DRI2: found extension DRI_TexBuffer version 2<br>
> libEGL debug: DRI2: found extension `DRI2_Flush'<br>
> libEGL info: DRI2: found extension DRI2_Flush version 3<br>
> libEGL debug: DRI2: found extension `DRI_IMAGE'<br>
> libEGL info: DRI2: found extension DRI_IMAGE version 1<br>
> libEGL debug: the best driver is DRI2 (score 100)<br>
> EGL_VERSION = 1.4 (DRI2)<br>
> libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
> (0x1)<br>
> libEGL debug: the value (0x0) of attribute 0x3040 did not meet the criteria<br>
> (0x8)<br>
> libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
> (0x1)<br>
> libEGL debug: the value (0x0) of attribute 0x3040 did not meet the criteria<br>
> (0x8)<br>
> libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
> (0x1)<br>
> libEGL debug: the value (0x0) of attribute 0x3040 did not meet the criteria<br>
> (0x8)<br>
> eglChooseConfig() failed<br>
><br>
> -------------------<br>
> ./eglgears_x11<br>
> libEGL debug: added /usr/lib/egl/egl_dri2.so to module array<br>
> libEGL debug: added /usr/lib/egl/egl_glx.so to module array<br>
> libEGL debug: added /usr/lib/egl/egl_x11_nouveau.so to module array<br>
> libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so)<br>
> libEGL debug: DRI2: dlopen(/usr/lib/dri/i915_dri.so)<br>
> libEGL debug: DRI2: found extension `DRI_Core'<br>
> libEGL info: DRI2: found extension DRI_Core version 1<br>
> libEGL debug: DRI2: found extension `DRI_DRI2'<br>
> libEGL info: DRI2: found extension DRI_DRI2 version 1<br>
> libEGL debug: DRI2: found extension `DRI_ReadDrawable'<br>
> libEGL debug: DRI2: found extension `DRI_TexBuffer'<br>
> libEGL info: DRI2: found extension DRI_TexBuffer version 2<br>
> libEGL debug: DRI2: found extension `DRI2_Flush'<br>
> libEGL info: DRI2: found extension DRI2_Flush version 3<br>
> libEGL debug: DRI2: found extension `DRI_IMAGE'<br>
> libEGL info: DRI2: found extension DRI_IMAGE version 1<br>
> libEGL debug: the best driver is DRI2 (score 100)<br>
> EGL_VERSION = 1.4 (DRI2)<br>
> libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
> (0x1)<br>
> libEGL debug: the value (0x0) of attribute 0x3040 did not meet the criteria<br>
> (0x8)<br>
> libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
> (0x1)<br>
> libEGL debug: the value (0x0) of attribute 0x3040 did not meet the criteria<br>
> (0x8)<br>
> libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
> (0x1)<br>
> libEGL debug: the value (0x0) of attribute 0x3040 did not meet the criteria<br>
> (0x8)<br>
> EGLUT: failed to choose a config<br>
><br>
><br>
> with EGL_DRIVER=egl_dri2 there is any difference.<br>
><br>
> is there any egl/dri2 binaries available for download ?!<br>
><br>
> On Wed, Nov 10, 2010 at 8:34 AM, Chia-I Wu <<a href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>> wrote:<br>
>><br>
>> On Wed, Nov 10, 2010 at 6:26 AM, Clurado cl <<a href="mailto:clurado1980@gmail.com">clurado1980@gmail.com</a>> wrote:<br>
>> > Still having the problem , i attached the config file , anybody can help<br>
>> > !?<br>
>> The config file looks correct. Do not set any variable except for<br>
>> EGL_LOG_LEVEL. What happens when you run xeglgears under X11? What<br>
>> happens when you have EGL_DRIVER=egl_dri2 set?<br>
>><br>
>> What are the versions of your Mesa and Mesa Demos?<br>
>> > On Fri, Nov 5, 2010 at 5:09 PM, Clurado cl <<a href="mailto:clurado1980@gmail.com">clurado1980@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> yes , those configs has -DFEATURE_ES1=y<br>
>> >><br>
>> >> On Fri, Nov 5, 2010 at 5:19 AM, Chia-I Wu <<a href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>> wrote:<br>
>> >>><br>
>> >>> On Fri, Nov 5, 2010 at 1:34 AM, Clurado cl <<a href="mailto:clurado1980@gmail.com">clurado1980@gmail.com</a>><br>
>> >>> wrote:<br>
>> >>> ><br>
>> >>> ><br>
>> >>> > On Thu, Nov 4, 2010 at 6:56 AM, Chia-I Wu <<a href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>> wrote:<br>
>> >>> >><br>
>> >>> >> On Thu, Nov 4, 2010 at 6:14 AM, Clurado cl <<a href="mailto:clurado1980@gmail.com">clurado1980@gmail.com</a>><br>
>> >>> >> wrote:<br>
>> >>> >> > Hi, i have build mesa with ./configure --disable-gallium-radeon<br>
>> >>> >> > --with-dri-drivers=i915 --enable-gles-overlay --enable-gles1<br>
>> >>> >> > i make it and installed it in /usr/lib<br>
>> >>> >> ><br>
>> >>> >> > the problem is i cant run demos in egl/opengles1 demos from<br>
>> >>> >> > mesa.demos.8.0.1.<br>
>> >>> >> ><br>
>> >>> >> > with EGL_LOG_LEVEL=debug . i get errors like this :<br>
>> >>> >> ><br>
>> >>> >> > libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so)<br>
>> >>> >> > libEGL warning: EGL-DRI2: failed to stat fd 134533128<br>
>> >>> >> Did you set EGL_PLATFORM=drm? That will force egl_dri2 to treat<br>
>> >>> >> the<br>
>> >>> >> argument of eglGetDisplay as an fd while it is actually a pointer<br>
>> >>> >> to<br>
>> >>> >> Xlib Display.<br>
>> >>> ><br>
>> >>> > Yes , i set EGL_PLATFORM=drm.<br>
>> >>> > when i doesnt set this var , or when i set this to x11 the errors<br>
>> >>> > are :<br>
>> >>> ><br>
>> >>> > libEGL debug: added /usr/lib/egl/egl_dri2.so to module array<br>
>> >>> > libEGL debug: added /usr/lib/egl/egl_gallium.so to module array<br>
>> >>> > libEGL debug: added /usr/lib/egl/egl_glx.so to module array<br>
>> >>> > libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so)<br>
>> >>> ><br>
>> >>> > libEGL debug: DRI2: dlopen(/usr/local/lib/dri/i915_dri.so)<br>
>> >>> > libEGL debug: DRI2: found extension `DRI_Core'<br>
>> >>> > libEGL info: DRI2: found extension DRI_Core version 1<br>
>> >>> > libEGL debug: DRI2: found extension `DRI_DRI2'<br>
>> >>> > libEGL info: DRI2: found extension DRI_DRI2 version 2<br>
>> >>> > libEGL debug: DRI2: found extension `DRI_ReadDrawable'<br>
>> >>> > libEGL debug: DRI2: found extension `DRI_TexBuffer'<br>
>> >>> > libEGL info: DRI2: found extension DRI_TexBuffer version 2<br>
>> >>> > libEGL debug: DRI2: found extension `DRI2_Flush'<br>
>> >>> > libEGL info: DRI2: found extension DRI2_Flush version 3<br>
>> >>> > libEGL debug: DRI2: found extension `DRI_IMAGE'<br>
>> >>> > libEGL info: DRI2: found extension DRI_IMAGE version 1<br>
>> >>> > libEGL debug: DRI2: found extension `DRI_CONFIG_QUERY'<br>
>> >>> > libEGL debug: the best driver is DRI2 (score 100)<br>
>> >>> ><br>
>> >>> > EGL_VERSION = 1.4 (DRI2)<br>
>> >>> ><br>
>> >>> > libEGL debug: the value (0x8) of attribute 0x3040 did not meet the<br>
>> >>> > criteria<br>
>> >>> > (0x1)<br>
>> >>> > libEGL debug: the value (0x8) of attribute 0x3040 did not meet the<br>
>> >>> > criteria<br>
>> >>> > (0x1)<br>
>> >>> > libEGL debug: the value (0x8) of attribute 0x3040 did not meet the<br>
>> >>> > criteria<br>
>> >>> > (0x1)<br>
>> >>> > EGLUT: failed to choose a config<br>
>> >>> The DRI driver reported only OpenGL support (0x8) while the demo asked<br>
>> >>> for OpenGL ES 1.x (0x1). You may check if FEATURE_ES1 is defined to 1<br>
>> >>> in configs/current and "make clean; make" again.<br>
>> >>> ><br>
>> >>> >><br>
>> >>> >> > libEGL debug: EGL user error 0x3003 (EGL_BAD_ALOC) in DRI2 :<br>
>> >>> >> > failed<br>
>> >>> >> > to<br>
>> >>> >> > get<br>
>> >>> >> > driver name<br>
>> >>> >> ><br>
>> >>> >> > libEGL debug: dlopen(/usr/lib/egl/egl_glx.so)<br>
>> >>> >> > libEGL debug: EGL user error 0x3001 (other) in eglInitialize<br>
>> >>> >> ><br>
>> >>> >> > EGLUT: failed to initialize EGL display<br>
>> >>> >> ><br>
>> >>> >> > ----<br>
>> >>> >> ><br>
>> >>> >> > i able to run xegl_gears from opengl , but nothing from gles1 .<br>
>> >>> >> ><br>
>> >>> >> > is the problem related to demos or the libGLESv1 doesnt work<br>
>> >>> >> > correctly<br>
>> >>> >> > !?<br>
>> >>> >> ><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>
>> >>> >> ><br>
>> >>> >> ><br>
>> >>> >><br>
>> >>> >><br>
>> >>> >><br>
>> >>> >> --<br>
>> >>> >> olv@LunarG.com<br>
>> >>> ><br>
>> >>> ><br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> --<br>
>> >>> olv@LunarG.com<br>
>> >><br>
>> ><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> olv@LunarG.com<br>
><br>
><br>
><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>
><br>
><br>
<br>
<br>
<br>
--<br>
olv@LunarG.com<br>
</div></div></blockquote></div><br>