<br>First of all, Thanks. <br>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? <br>It seems drmdpy->event_handler->new_drm_screen at gallium/state_trackers/egl/drm/native_drm.c is just for it.<br>
<br><br>By the way, <a href="http://configure.ac">configure.ac</a>:<br> if test "$mesa_driver" = dri; then<br> # build egl_dri2 when xcb-dri2 is available<br> PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb-dri2 xcb-xfixes],<br>
[have_xcb_dri2=yes],[have_xcb_dri2=no])<br><br>Would there need some kind of warnings about package missing or just don't check them up to users?<br><br>Best Regards,<br><div class="gmail_quote">
Arthur<br><br><br>2011/1/30 Chia-I Wu <span dir="ltr"><<a href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sat, Jan 29, 2011 at 10:19 PM, Arthur Zhu<br>
<<a href="mailto:xiaoxiaomuyusajiangtian@gmail.com">xiaoxiaomuyusajiangtian@gmail.com</a>> wrote:<br>
><br>
> drmdpy->event_handler->new_drm_screen(&drmdpy->base, name, drmdpy->fd);<br>
><br>
> Dose there have a chance to call new_sw_screen?<br>
</div>You cannot use swrast with DRM. Judging by the log below, you have an<br>
i915 card. It is best supported by egl_dri2, which is not enabled in<br>
your build. You might want to make sure you have the necessary -dev<br>
packages installed (xcb-dri2, xcb-fixes, and libudev) and rebuild<br>
mesa.<br>
<div><div></div><div class="h5">> gallium/state_trackers/egl/drm/native_drm.c<br>
><br>
> Thanks,<br>
> Arthur<br>
><br>
><br>
><br>
> wayland/compositor# ./compositor<br>
> libEGL debug: added /usr/lib/egl/egl_gallium.so to module array<br>
> libEGL debug: added /usr/lib/egl/egl_glx.so to module array<br>
> libEGL debug: dlopen(/usr/lib/egl/egl_gallium.so)<br>
> libEGL info: use DRM for display 0x5<br>
> libEGL debug: searching for pipe module i915<br>
> libEGL warning: failed to create DRM screen<br>
> libEGL debug: EGL user error 0x3001 (other) in eglInitialize(no usable<br>
> display)<br>
><br>
> libEGL debug: dlopen(/usr/lib/egl/egl_glx.so)<br>
> libEGL debug: EGL user error 0x3001 (other) in eglInitialize<br>
><br>
> failed to initialize display<br>
> GL User Error: calling GL function without a rendering context<br>
> GL User Error: calling GL function without a rendering context<br>
> GL User Error: calling GL function without a rendering context<br>
> GL User Error: calling GL function without a rendering context<br>
> GL User Error: calling GL function without a rendering context<br>
> GL User Error: calling GL function without a rendering context<br>
> libEGL debug: EGL user error 0x3001 (other) in eglCreateDRMImageMESA<br>
><br>
> Segmentation fault<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
olv@LunarG.com<br>
</font></blockquote></div><br>