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

Arthur Zhu xiaoxiaomuyusajiangtian at gmail.com
Sun Jan 30 04:10:35 PST 2011


First of all, Thanks.
I suppose the egl-drm will use /usr/lib/dri/* drivers, what does the
pipe_swrast.so for? and why we can't use swrast with DRM?
It seems drmdpy->event_handler->new_drm_screen at
gallium/state_trackers/egl/drm/native_drm.c is just for it.


By the way,  configure.ac:
        if test "$mesa_driver" = dri; then
            # build egl_dri2 when xcb-dri2 is available
            PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb-dri2 xcb-xfixes],
                          [have_xcb_dri2=yes],[have_xcb_dri2=no])

Would there need some kind of warnings about package missing or just don't
check them up to users?

Best Regards,
Arthur


2011/1/30 Chia-I Wu <olvaffe at gmail.com>

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20110130/3403735b/attachment.htm>


More information about the wayland-devel mailing list