weston 0.95 on 945GME using i915 drm
jegde jedge
bubbah.t at gmail.com
Fri Aug 10 08:11:14 PDT 2012
Thank you for your help.
It looks like I have a dri/mesa issue to resolve before I can run weston...
Is there a resource that shows how to get mesa egl/dri/drm working on i915?
I rebuilt (make clean, make, make install) mesa, then pixman, then
cairo, then weston.
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
EGLUT: failed to choose a config
</code>[/code]
When I run with weston-launch i get:
failed to get cairo egl argb device
failed to create display: Invalid argument
[code]<code>
[bcpl at localhost bin]$ source ~/wayland/wld.rc
[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)
[14:41:13.361] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_format_BGRA8888 GL_OES_depth24
GL_OES_element_index_uint GL_OES_fbo_render_mipmap
GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives
GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_npot
GL_OES_EGL_image GL_OES_depth_texture
GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
GL_OES_EGL_image_external GL_EXT_unpack_subimage
GL_NV_draw_buffers GL_NV_read_buffer
[14:41:13.413] failed to get plane resources: Invalid argument
[14:41:13.413] Output LVDS1, (connector 5, crtc 4)
mode 1024x768 at 60.0, preferred, current
mode 1024x768 at 60.0
[14:41:13.833] input device Power Button, /dev/input/event2 is a keyboard
[14:41:13.836] input device Sleep Button, /dev/input/event0 is a keyboard
[14:41:13.839] input device Power Button, /dev/input/event1 is a keyboard
[14:41:13.845] input device Interlink Electronics, Inc. FSR 4ZUSB,
/dev/input/event8 is a pointer
[14:41:13.848] input device DRS Inc. DRS Inc. Keyboard,
/dev/input/event9 is a keyboard
[14:41:13.851] input device Hampshire Company TSHARC Analog Resistive,
/dev/input/event5 is a pointer
[14:41:13.854] input device Dell Dell USB Optical Mouse,
/dev/input/event11 is a pointer
[14:41:13.862] input device Dell Dell Wired Multimedia Keyboard,
/dev/input/event6 is a keyboard
[14:41:13.865] input device Dell Dell Wired Multimedia Keyboard,
/dev/input/event7 is a pointer
[14:41:13.865] input device Dell Dell Wired Multimedia Keyboard,
/dev/input/event7 is a keyboard
[14:41:13.868] input device AT Translated Set 2 keyboard,
/dev/input/event4 is a keyboard
[14:41:13.871] input device Macintosh mouse button emulation,
/dev/input/event3 is a pointer
[14:41:13.871] Loading module '/home/bcpl/install/lib/weston/desktop-shell.so'
[14:41:13.879] libwayland: using socket /home/bcpl/wayland/xdg/wayland-0
libEGL debug: Native platform type: wayland (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: pci id for 5: 8086:27ae, driver i915
libEGL debug: DRI2: dlopen(/home/bcpl/install/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 3
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
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
failed to get cairo egl argb device
failed to create display: Invalid argument
libEGL debug: Display 0x9837e60 is destroyed with resources
[14:41:13.974] libwayland: disconnect from client 0x8cc9a30
[14:41:13.974] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (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: pci id for 5: 8086:27ae, driver i915
libEGL debug: DRI2: dlopen(/home/bcpl/install/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 3
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
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
failed to get cairo egl argb device
failed to create display: Invalid argument
libEGL debug: Display 0x937ee60 is destroyed with resources
[14:41:14.015] libwayland: disconnect from client 0x8d3ff30
[14:41:14.015] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (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: pci id for 5: 8086:27ae, driver i915
libEGL debug: DRI2: dlopen(/home/bcpl/install/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 3
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
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
failed to get cairo egl argb device
failed to create display: Invalid argument
libEGL debug: Display 0x993ae60 is destroyed with resources
[14:41:14.055] libwayland: disconnect from client 0x8d5b2c0
[14:41:14.055] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (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: pci id for 5: 8086:27ae, driver i915
libEGL debug: DRI2: dlopen(/home/bcpl/install/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 3
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
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
failed to get cairo egl argb device
failed to create display: Invalid argument
libEGL debug: Display 0x8284e60 is destroyed with resources
[14:41:14.096] libwayland: disconnect from client 0x8d3dde0
[14:41:14.096] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (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: pci id for 5: 8086:27ae, driver i915
libEGL debug: DRI2: dlopen(/home/bcpl/install/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 3
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
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
failed to get cairo egl argb device
failed to create display: Invalid argument
libEGL debug: Display 0x9fc8e60 is destroyed with resources
[14:41:14.137] libwayland: disconnect from client 0x8d6a600
[14:41:14.137] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (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: pci id for 5: 8086:27ae, driver i915
libEGL debug: DRI2: dlopen(/home/bcpl/install/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 3
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
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
failed to get cairo egl argb device
failed to create display: Invalid argument
libEGL debug: Display 0x9d06e60 is destroyed with resources
[14:41:14.178] libwayland: disconnect from client 0x8d3e5d0
[14:41:14.178] weston-desktop-shell died, giving up.
</code>[/code]
More information about the wayland-devel
mailing list