On Thu, Aug 27, 2009 at 01:24:27PM +0200, RALOVICH, Kristóf wrote: > On Tue, Aug 25, 2009 at 08:17, Chia-I Wu<olva...@gmail.com> wrote: > > On Mon, Aug 24, 2009 at 02:34:09PM +0200, RALOVICH, Kristóf wrote: > >> Is there any way to run EGL under X? > > For X, you need to use other drivers. A driver encodes a native window > > system information, and hence, EGL_i915 won't work under X. > > You can use any of egl_softpipe, egl_xdri, or egl_glx. The latter two > > are accelerated, but might take an addtional step to setup. Grep for > > LIBGL_DRIVERS_PATH. > Could you please give me a hint using either of those 3? > EGL_DRIVER=../../lib64/egl_softpipe.so ld-x ./eglgears > Only gives me a SEGV, I could not set LIBGL_DRIVERS_PATH in a way to > help me further. The problem you saw is that eglgears is not written for X. Only the demos with prefix xegl will work under X.
eglGetDisplay passes a "native display" to EGL. Under X, this maps to "Display *" naturally. However, eglgears passes a string, which is casted to "Display *" wrongly and segfaults immediately. I would like to improve the situation though. For example, instead of segfault, it should print an informative message. Both egl_xdri and egl_glx use DRI driver and must know where to find it. Unless the DRI driver is installed to ${libdir}/dri, you must set LIBGL_DRIVERS_PATH. As for egl_softpipe, it requires a libGL.so compiled from src/gallium/winsys/xlib/. -- Regards, olv ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev