Hi, I've tried some time to get EGL running with current mesa cvs. When EGL is activated, r200_dri.so (the only egl-aware driver till now afaik) needs to be linked against libGL, libEGL and libEGLdri (else also normal dri will fail).
Attached patch does this, I think it can be applied (but I'm not sure if this is the right way to do it, someone with more knowledge about the mesa/Makefile-stuff should have a look at it. At least it works). After that I can build the examples in progs/egl, but they don't work, they print some messages, then they consume a lot of cpu and hang. This is what I get from eglinfo (the others are the same): EGL Info: eglChooseDriver() choosing libEGLdri EGL Debug: dlopen(libEGLdri.so) EGL Info: Opening /sys/class/drm/card0/dri_library_name EGL Debug: dlopen(r200_dri.so) EGL Debug: mapped SAREA 0xe1958000 to 0xb7eb1000, size 8192 EGL Info: Found framebuffer size: 134217728 Using 8 MB AGP aperture Using 1 MB for the ring buffer Using 2 MB for vertex/indirect buffers Using 1 MB for AGP textures page flipping disabled [gart] 8192 kB allocated with handle 0x00000001 [gart] ring handle = 0xe0000000 [gart] ring read ptr handle = 0xe0101000 [gart] vertex/indirect buffers handle = 0xe0102000 [gart] AGP texture map handle = 0xe0302000 Will use back buffer at offset 0x600000, pitch 1280 Will use depth buffer at offset 0xb00000, pitch 1280 Will use 114688 kb for textures at offset 0x1000000 -- Hanno Böck Blog: http://www.hboeck.de/ GPG: 3DBD3B20 Jabber: [EMAIL PROTECTED]
--- Mesa/src/mesa/drivers/dri/r200/Makefile.orig 2006-06-08 18:14:47.298507000 +0200 +++ Mesa/src/mesa/drivers/dri/r200/Makefile 2006-06-08 18:14:54.970986500 +0200 @@ -8,7 +8,7 @@ MINIGLX_SOURCES = server/radeon_dri.c ifeq ($(USING_EGL), 1) -EGL_SOURCES = server/radeon_egl.c +EGL_SOURCES = server/radeon_egl.c -lGL -lEGL -lEGLdri endif DRIVER_SOURCES = r200_context.c \
pgplVAth0DPSz.pgp
Description: PGP signature
_______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
