[Mesa-dev] Fwd: problems in building GLES1
Chia-I Wu
olvaffe at gmail.com
Wed Nov 10 11:29:02 PST 2010
On Thu, Nov 11, 2010 at 3:08 AM, Clurado cl <clurado1980 at gmail.com> wrote:
> 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 ... )
>
> but opengles1 demos still not working.
>
> libEGL debug: EGL user error 0x3004 (EGL_BAD_ATTRIBUTE) in eglChoseConfig
> EGLUT: failed to choose config .
I have no idea then. You might want to try the git version, or try
with a debugger.
>
> On Wed, Nov 10, 2010 at 7:37 PM, Chia-I Wu <olvaffe at gmail.com> wrote:
>>
>> On Wed, Nov 10, 2010 at 11:40 PM, Clurado cl <clurado1980 at gmail.com>
>> wrote:
>> >
>> > Mesa 7.9 from ftp , demos 8.0.1 from ftp
>> >
>> >
>> > when there is no gallium egl driver , without setting
>> > EGL_DRIVER=egl_dri2:
>> >
>> > egl/opengl/xeglgears :
>> >
>> > ./xeglgears
>> > libEGL debug: added /usr/lib/egl/egl_dri2.so to module array
>> > libEGL debug: added /usr/lib/egl/egl_glx.so to module array
>> > libEGL debug: added /usr/lib/egl/egl_x11_nouveau.so to module array
>> > libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so)
>> > libEGL debug: DRI2: dlopen(/usr/lib/dri/i915_dri.so)
>> > libEGL debug: DRI2: found extension `DRI_Core'
>> > libEGL info: DRI2: found extension DRI_Core version 1
>> > libEGL debug: DRI2: found extension `DRI_DRI2'
>> > libEGL info: DRI2: found extension DRI_DRI2 version 1
>> There is a bug in egl_dri2 that makes it fail to work with DRI drivers
>> with DRI_DRI2 extension version 1. As a workaround, you have to build
>> i915_dri.so and have it replace your system's. Or choose a different
>> installation path.
>>
>> But the log from last week showed version 2. If you still have
>> problems after replacing i915_dri.so, you should run the demos with
>> breakpoints set at dri2_init_screen and intelInitScreen2 to see which
>> bits of api_mask are set. Normally, __DRI_API_OPENGL and
>> __DRI_API_GLES2 should be set when --enable-gles2 is given.
>> > libEGL debug: DRI2: found extension `DRI_ReadDrawable'
>> > libEGL debug: DRI2: found extension `DRI_TexBuffer'
>> > libEGL info: DRI2: found extension DRI_TexBuffer version 2
>> > libEGL debug: DRI2: found extension `DRI2_Flush'
>> > libEGL info: DRI2: found extension DRI2_Flush version 3
>> > libEGL debug: DRI2: found extension `DRI_IMAGE'
>> > libEGL info: DRI2: found extension DRI_IMAGE version 1
>> > libEGL debug: the best driver is DRI2 (score 100)
>> > EGL_VERSION = 1.4 (DRI2)
>> > libEGL debug: the value (0x0) of attribute 0x3025 did not meet the
>> > criteria
>> > (0x1)
>> > libEGL debug: the value (0x0) of attribute 0x3040 did not meet the
>> > criteria
>> > (0x8)
>> > libEGL debug: the value (0x0) of attribute 0x3025 did not meet the
>> > criteria
>> > (0x1)
>> > libEGL debug: the value (0x0) of attribute 0x3040 did not meet the
>> > criteria
>> > (0x8)
>> > libEGL debug: the value (0x0) of attribute 0x3025 did not meet the
>> > criteria
>> > (0x1)
>> > libEGL debug: the value (0x0) of attribute 0x3040 did not meet the
>> > criteria
>> > (0x8)
>> > eglChooseConfig() failed
>> >
>> > -------------------
>> > ./eglgears_x11
>> > libEGL debug: added /usr/lib/egl/egl_dri2.so to module array
>> > libEGL debug: added /usr/lib/egl/egl_glx.so to module array
>> > libEGL debug: added /usr/lib/egl/egl_x11_nouveau.so to module array
>> > libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so)
>> > libEGL debug: DRI2: dlopen(/usr/lib/dri/i915_dri.so)
>> > libEGL debug: DRI2: found extension `DRI_Core'
>> > libEGL info: DRI2: found extension DRI_Core version 1
>> > libEGL debug: DRI2: found extension `DRI_DRI2'
>> > libEGL info: DRI2: found extension DRI_DRI2 version 1
>> > libEGL debug: DRI2: found extension `DRI_ReadDrawable'
>> > libEGL debug: DRI2: found extension `DRI_TexBuffer'
>> > libEGL info: DRI2: found extension DRI_TexBuffer version 2
>> > libEGL debug: DRI2: found extension `DRI2_Flush'
>> > libEGL info: DRI2: found extension DRI2_Flush version 3
>> > libEGL debug: DRI2: found extension `DRI_IMAGE'
>> > libEGL info: DRI2: found extension DRI_IMAGE version 1
>> > libEGL debug: the best driver is DRI2 (score 100)
>> > EGL_VERSION = 1.4 (DRI2)
>> > libEGL debug: the value (0x0) of attribute 0x3025 did not meet the
>> > criteria
>> > (0x1)
>> > libEGL debug: the value (0x0) of attribute 0x3040 did not meet the
>> > criteria
>> > (0x8)
>> > libEGL debug: the value (0x0) of attribute 0x3025 did not meet the
>> > criteria
>> > (0x1)
>> > libEGL debug: the value (0x0) of attribute 0x3040 did not meet the
>> > criteria
>> > (0x8)
>> > libEGL debug: the value (0x0) of attribute 0x3025 did not meet the
>> > criteria
>> > (0x1)
>> > libEGL debug: the value (0x0) of attribute 0x3040 did not meet the
>> > criteria
>> > (0x8)
>> > EGLUT: failed to choose a config
>> >
>> >
>> > with EGL_DRIVER=egl_dri2 there is any difference.
>> >
>> > is there any egl/dri2 binaries available for download ?!
>> >
>> > On Wed, Nov 10, 2010 at 8:34 AM, Chia-I Wu <olvaffe at gmail.com> wrote:
>> >>
>> >> On Wed, Nov 10, 2010 at 6:26 AM, Clurado cl <clurado1980 at gmail.com>
>> >> wrote:
>> >> > Still having the problem , i attached the config file , anybody can
>> >> > help
>> >> > !?
>> >> The config file looks correct. Do not set any variable except for
>> >> EGL_LOG_LEVEL. What happens when you run xeglgears under X11? What
>> >> happens when you have EGL_DRIVER=egl_dri2 set?
>> >>
>> >> What are the versions of your Mesa and Mesa Demos?
>> >> > On Fri, Nov 5, 2010 at 5:09 PM, Clurado cl <clurado1980 at gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> yes , those configs has -DFEATURE_ES1=y
>> >> >>
>> >> >> On Fri, Nov 5, 2010 at 5:19 AM, Chia-I Wu <olvaffe at gmail.com> wrote:
>> >> >>>
>> >> >>> On Fri, Nov 5, 2010 at 1:34 AM, Clurado cl <clurado1980 at gmail.com>
>> >> >>> wrote:
>> >> >>> >
>> >> >>> >
>> >> >>> > On Thu, Nov 4, 2010 at 6:56 AM, Chia-I Wu <olvaffe at gmail.com>
>> >> >>> > wrote:
>> >> >>> >>
>> >> >>> >> On Thu, Nov 4, 2010 at 6:14 AM, Clurado cl
>> >> >>> >> <clurado1980 at gmail.com>
>> >> >>> >> wrote:
>> >> >>> >> > Hi, i have build mesa with ./configure
>> >> >>> >> > --disable-gallium-radeon
>> >> >>> >> > --with-dri-drivers=i915 --enable-gles-overlay --enable-gles1
>> >> >>> >> > i make it and installed it in /usr/lib
>> >> >>> >> >
>> >> >>> >> > the problem is i cant run demos in egl/opengles1 demos from
>> >> >>> >> > mesa.demos.8.0.1.
>> >> >>> >> >
>> >> >>> >> > with EGL_LOG_LEVEL=debug . i get errors like this :
>> >> >>> >> >
>> >> >>> >> > libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so)
>> >> >>> >> > libEGL warning: EGL-DRI2: failed to stat fd 134533128
>> >> >>> >> Did you set EGL_PLATFORM=drm? That will force egl_dri2 to treat
>> >> >>> >> the
>> >> >>> >> argument of eglGetDisplay as an fd while it is actually a
>> >> >>> >> pointer
>> >> >>> >> to
>> >> >>> >> Xlib Display.
>> >> >>> >
>> >> >>> > Yes , i set EGL_PLATFORM=drm.
>> >> >>> > when i doesnt set this var , or when i set this to x11 the errors
>> >> >>> > are :
>> >> >>> >
>> >> >>> > libEGL debug: added /usr/lib/egl/egl_dri2.so to module array
>> >> >>> > libEGL debug: added /usr/lib/egl/egl_gallium.so to module array
>> >> >>> > libEGL debug: added /usr/lib/egl/egl_glx.so to module array
>> >> >>> > libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so)
>> >> >>> >
>> >> >>> > libEGL debug: DRI2: dlopen(/usr/local/lib/dri/i915_dri.so)
>> >> >>> > libEGL debug: DRI2: found extension `DRI_Core'
>> >> >>> > libEGL info: DRI2: found extension DRI_Core version 1
>> >> >>> > libEGL debug: DRI2: found extension `DRI_DRI2'
>> >> >>> > libEGL info: DRI2: found extension DRI_DRI2 version 2
>> >> >>> > libEGL debug: DRI2: found extension `DRI_ReadDrawable'
>> >> >>> > libEGL debug: DRI2: found extension `DRI_TexBuffer'
>> >> >>> > libEGL info: DRI2: found extension DRI_TexBuffer version 2
>> >> >>> > libEGL debug: DRI2: found extension `DRI2_Flush'
>> >> >>> > libEGL info: DRI2: found extension DRI2_Flush version 3
>> >> >>> > libEGL debug: DRI2: found extension `DRI_IMAGE'
>> >> >>> > libEGL info: DRI2: found extension DRI_IMAGE version 1
>> >> >>> > libEGL debug: DRI2: found extension `DRI_CONFIG_QUERY'
>> >> >>> > libEGL debug: the best driver is DRI2 (score 100)
>> >> >>> >
>> >> >>> > EGL_VERSION = 1.4 (DRI2)
>> >> >>> >
>> >> >>> > libEGL debug: the value (0x8) of attribute 0x3040 did not meet
>> >> >>> > the
>> >> >>> > criteria
>> >> >>> > (0x1)
>> >> >>> > libEGL debug: the value (0x8) of attribute 0x3040 did not meet
>> >> >>> > the
>> >> >>> > criteria
>> >> >>> > (0x1)
>> >> >>> > libEGL debug: the value (0x8) of attribute 0x3040 did not meet
>> >> >>> > the
>> >> >>> > criteria
>> >> >>> > (0x1)
>> >> >>> > EGLUT: failed to choose a config
>> >> >>> The DRI driver reported only OpenGL support (0x8) while the demo
>> >> >>> asked
>> >> >>> for OpenGL ES 1.x (0x1). You may check if FEATURE_ES1 is defined
>> >> >>> to 1
>> >> >>> in configs/current and "make clean; make" again.
>> >> >>> >
>> >> >>> >>
>> >> >>> >> > libEGL debug: EGL user error 0x3003 (EGL_BAD_ALOC) in DRI2 :
>> >> >>> >> > failed
>> >> >>> >> > to
>> >> >>> >> > get
>> >> >>> >> > driver name
>> >> >>> >> >
>> >> >>> >> > libEGL debug: dlopen(/usr/lib/egl/egl_glx.so)
>> >> >>> >> > libEGL debug: EGL user error 0x3001 (other) in eglInitialize
>> >> >>> >> >
>> >> >>> >> > EGLUT: failed to initialize EGL display
>> >> >>> >> >
>> >> >>> >> > ----
>> >> >>> >> >
>> >> >>> >> > i able to run xegl_gears from opengl , but nothing from gles1
>> >> >>> >> > .
>> >> >>> >> >
>> >> >>> >> > is the problem related to demos or the libGLESv1 doesnt work
>> >> >>> >> > correctly
>> >> >>> >> > !?
>> >> >>> >> >
>> >> >>> >> > _______________________________________________
>> >> >>> >> > mesa-dev mailing list
>> >> >>> >> > mesa-dev at lists.freedesktop.org
>> >> >>> >> > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> --
>> >> >>> >> olv at LunarG.com
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> olv at LunarG.com
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> olv at LunarG.com
>> >
>> >
>> >
>> > _______________________________________________
>> > mesa-dev mailing list
>> > mesa-dev at lists.freedesktop.org
>> > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>> >
>> >
>>
>>
>>
>> --
>> olv at LunarG.com
>
>
--
olv at LunarG.com
More information about the mesa-dev
mailing list