[Mesa-dev] How to use pipe_swrast.so for rendering?

Chia-I Wu olvaffe at gmail.com
Sat Jan 29 13:36:05 PST 2011


On Sat, Jan 29, 2011 at 10:19 PM, Arthur Zhu
<xiaoxiaomuyusajiangtian at gmail.com> wrote:
>
> drmdpy->event_handler->new_drm_screen(&drmdpy->base, name, drmdpy->fd);
>
> Dose there have a chance to call new_sw_screen?
You cannot use swrast with DRM.  Judging by the log below, you have an
i915 card.  It is best supported by egl_dri2, which is not enabled in
your build.  You might want to make sure you have the necessary -dev
packages installed (xcb-dri2, xcb-fixes, and libudev) and rebuild
mesa.
> gallium/state_trackers/egl/drm/native_drm.c
>
> Thanks,
> Arthur
>
>
>
> wayland/compositor# ./compositor
> 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_gallium.so)
> libEGL info: use DRM for display 0x5
> libEGL debug: searching for pipe module i915
> libEGL warning: failed to create DRM screen
> libEGL debug: EGL user error 0x3001 (other) in eglInitialize(no usable
> display)
>
> libEGL debug: dlopen(/usr/lib/egl/egl_glx.so)
> libEGL debug: EGL user error 0x3001 (other) in eglInitialize
>
> failed to initialize display
> GL User Error: calling GL function without a rendering context
> GL User Error: calling GL function without a rendering context
> GL User Error: calling GL function without a rendering context
> GL User Error: calling GL function without a rendering context
> GL User Error: calling GL function without a rendering context
> GL User Error: calling GL function without a rendering context
> libEGL debug: EGL user error 0x3001 (other) in eglCreateDRMImageMESA
>
> Segmentation fault
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
>



-- 
olv at LunarG.com


More information about the wayland-devel mailing list