[Mesa-dev] Can't run OpenGL ES demos
Chia-I Wu
olvaffe at gmail.com
Fri Apr 15 11:39:40 PDT 2011
On Sat, Apr 16, 2011 at 2:20 AM, Matt Turner <mattst88 at gmail.com> wrote:
> Hi,
> I'm having trouble running any OpenGL ES programs from mesa-demos. It
> seems to be identical to what was reported here
> http://comments.gmane.org/gmane.comp.video.mesa3d.devel/22575
>
> I'm using a Sandy Bridge system. Direct Rendering is working.
>
> Mesa was configured with
> ./configure --prefix=/usr --build=x86_64-pc-linux-gnu
> --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
> --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
> --localstatedir=/var/lib --libdir=/usr/lib64 --disable-option-checking
> --with-driver=dri --disable-glut --without-demos --enable-xcb
> --disable-debug --disable-glw --disable-motif --enable-glx-tls
> --enable-asm --with-dri-drivers=swrast,i965 --enable-gles1
> --enable-gles2 --enable-egl --disable-openvg --disable-gallium
> --disable-gallium-egl --with-egl-platforms=wayland,drm,x11
>
> Don't know if it's helpful, but here's the output from eglinfo:
eglinfo reports only OpenGL support. It could be that a wrong DRI
driver (/usr/lib64/dri/i965_dri.so) was loaded. It the path is
correct, can you set a breakpoint at intelInitScreen2 and see which
bits of api_mask are set?
> mattst88 at localhost ~/projects/mesa-demos/src/egl/opengl $ MESA_DEBUG=1
> EGL_LOG_LEVEL=debug LIBGL_DEBUG=verbose EGL_PLATFORM=x11 ./eglinfo
> libEGL debug: EGL search path is /usr/lib64/egl
> libEGL debug: added egl_dri2 to module array
> libEGL debug: added egl_glx to module array
> libEGL debug: DRI2: dlopen(/usr/lib64/dri/i965_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
> libGL: Can't open configuration file /etc/drirc: No such file or directory.
> 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
> EGL API version: 1.4
> EGL vendor string: Mesa Project
> EGL version string: 1.4 (DRI2)
> EGL client APIs: OpenGL
> EGL extensions string:
> EGL_MESA_drm_image EGL_WL_bind_wayland_display EGL_KHR_image_base
> EGL_KHR_image_pixmap EGL_KHR_image EGL_KHR_gl_renderbuffer_image
> EGL_KHR_surfaceless_gles1 EGL_KHR_surfaceless_gles2
> EGL_KHR_surfaceless_opengl EGL_NOK_swap_region
> EGL_NOK_texture_from_pixmap
> Configurations:
> bf lv colorbuffer dp st ms vis cav bi renderable supported
> id sz l r g b a th cl ns b id eat nd gl es es2 vg surfaces
> ---------------------------------------------------------------------
> 0x07 24 0 8 8 8 0 0 0 0 0 0x21TC y y win,pb,pix
> 0x09 24 0 8 8 8 0 0 0 0 0 0x21TC y y win,pb
> 0x0a 24 0 8 8 8 0 24 8 0 0 0x21TC y y win,pb,pix
> 0x0c 24 0 8 8 8 0 24 8 0 0 0x21TC y y win,pb
> 0x15 24 0 8 8 8 0 24 8 0 0 0x21TC y y win,pb
> 0x16 24 0 8 8 8 0 24 8 0 0 0x21TC y y y win,pb
> 0x1f 24 0 8 8 8 0 0 0 0 0 0x22DC y y win,pb,pix
> 0x21 24 0 8 8 8 0 0 0 0 0 0x22DC y y win,pb
> 0x22 24 0 8 8 8 0 24 8 0 0 0x22DC y y win,pb,pix
> 0x24 24 0 8 8 8 0 24 8 0 0 0x22DC y y win,pb
> 0x2d 24 0 8 8 8 0 24 8 0 0 0x22DC y y win,pb
> 0x2e 24 0 8 8 8 0 24 8 0 0 0x22DC y y y win,pb
> 0x3d 32 0 8 8 8 8 0 0 0 0 0x68TC a y win,pb,pix
> 0x3f 32 0 8 8 8 8 0 0 0 0 0x68TC a y win,pb
> 0x40 32 0 8 8 8 8 24 8 0 0 0x68TC a y win,pb,pix
> 0x42 32 0 8 8 8 8 24 8 0 0 0x68TC a y win,pb
> 0x47 32 0 8 8 8 8 24 8 0 0 0x68TC a y win,pb
> 0x48 32 0 8 8 8 8 24 8 0 0 0x68TC y a y win,pb
>
> Running es2_info:
>
> mattst88 at localhost ~/projects/mesa-demos/src/egl/opengles2 $
> MESA_DEBUG=1 EGL_LOG_LEVEL=debug LIBGL_DEBUG=verbose EGL_PLATFORM=x11
> ./es2_info
> libEGL debug: EGL search path is /usr/lib64/egl
> libEGL debug: added egl_dri2 to module array
> libEGL debug: added egl_glx to module array
> libEGL debug: DRI2: dlopen(/usr/lib64/dri/i965_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
> libGL: Can't open configuration file /etc/drirc: No such file or directory.
> 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
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the
> criteria (0x4)
> es2_info: es2_info.c:153: make_x_window: Assertion `num_configs > 0' failed.
> Aborted
>
> So it's not getting any valid configs, it seems.
>
> Any idea what's going on here?
>
> Thanks,
> Matt
>
--
olv at LunarG.com
More information about the mesa-dev
mailing list