weston 0.95 on 945GME using i915 drm

Pekka Paalanen ppaalanen at gmail.com
Fri Aug 10 08:52:06 PDT 2012


On Fri, 10 Aug 2012 11:11:14 -0400
jegde jedge <bubbah.t at gmail.com> wrote:

> I rebuilt (make clean, make, make install) mesa, then pixman, then
> cairo, then weston.

Hi,

only Mesa rebuild is needed at this point.

> When I recompile mesa with --disable-gallium-egl, I now fail where
> gallium works:
> [code]<code>
> [bcpl at localhost ~]$ source wayland/wld.rc
> [bcpl at localhost ~]$ ./mesa-demos-8.0.1/src/egl/opengles1/torus_screen
> libEGL debug: Native platform type: drm (build-time configuration)
> libEGL debug: EGL search path is
> /home/bcpl/install/lib:/home/bcpl/install/lib/egl
> libEGL debug: added egl_dri2 to module array
> libEGL debug: added egl_glx to module array
> libEGL debug: the best driver is DRI2
> EGL_VERSION = 1.4 (DRI2)
> libEGL debug: attribute 0x3033 has an invalid value 0x8
> libEGL debug: EGL user error 0x3004 (EGL_BAD_ATTRIBUTE) in eglChooseConfig

Yes, it is trying to use the gallium driver still.

> [bcpl at localhost bin]$ ./weston-launch
> Date: 2012-08-10 UTC
> [14:41:13.327] weston 0.95.0
>                http://wayland.freedesktop.org/
>                Bug reports to:
> https://bugs.freedesktop.org/enter_bug.cgi?product=weston
>                Build: 0.95.0-76-g3d89049-dirty config-parser: Handle
> lines that don't end in
>  (2012-08-03 21:56:41 -0400)
> [14:41:13.327] OS: Linux, 2.6.32-220.el6.i686, #1 SMP Wed Nov 9
> 08:02:18 EST 2011, i686
> [14:41:13.329] Loading module '/home/bcpl/install/lib/weston/drm-backend.so'
> [14:41:13.330] initializing drm backend
> [14:41:13.337] using /dev/dri/card0
> libEGL debug: Native platform type: drm (autodetected)
> libEGL debug: EGL search path is
> /home/bcpl/install/lib:/home/bcpl/install/lib/egl
> libEGL debug: added egl_dri2 to module array
> libEGL debug: added egl_glx to module array
> libEGL debug: the best driver is DRI2
> Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
> compression/decompression unavailable
> [14:41:13.361] EGL version: 1.4 (DRI2)
> [14:41:13.361] EGL vendor: Mesa Project
> [14:41:13.361] EGL client APIs: OpenGL OpenGL_ES OpenGL_ES2
> [14:41:13.361] EGL extensions: EGL_MESA_drm_image EGL_WL_bind_wayland_display
>                EGL_KHR_image_base EGL_KHR_gl_renderbuffer_image
>                EGL_KHR_surfaceless_context
> [14:41:13.361] GL version: OpenGL ES 2.0 Mesa 8.1-devel (git-04a11b5)
> [14:41:13.361] GLSL version: OpenGL ES GLSL ES 1.0.16
> [14:41:13.361] GL vendor: VMware, Inc.
> [14:41:13.361] GL renderer: Gallium 0.4 on i915 (chipset: 945GME)

The above line should not say Gallium.

Just drop the i915 from the gallium driver list on the Mesa
configure line, and keep it in the dri driver list. Also the configure
line from http://wayland.freedesktop.org/building.html should
work just fine. Intel dri drivers get built by default, when
they are not explicitly configured.

Make sure to wipe all intel drivers from your install prefix before
you install Mesa again, so that the intel gallium driver does not
remain there.

Actually, simply removing the intel gallium driver should be
enough, no need to even rebuild, I guess.

-- 
Pekka Paalanen
http://www.iki.fi/pq/


More information about the wayland-devel mailing list