Index: src/egl/main/Makefile =================================================================== RCS file: /cvs/mesa/Mesa/src/egl/main/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- src/egl/main/Makefile 22 Apr 2005 21:09:39 -0000 1.1 +++ src/egl/main/Makefile 23 Aug 2005 22:58:45 -0000 @@ -17,7 +17,16 @@ eglscreen.h \ eglsurface.h +GLAPI_SOURCES = \ + $(TOP)/src/mesa/main/dispatch.c \ + $(TOP)/src/mesa/glapi/glapi.c \ + $(TOP)/src/mesa/glapi/glthread.c + +X86_SOURCES = $(TOP)/src/mesa/x86/glapi_x86.S +X86-64_SOURCES = $(TOP)/src/mesa/x86-64/glapi_x86-64.S + SOURCES = \ + $(GLAPI_SOURCES) \ eglapi.c \ eglconfig.c \ eglcontext.c \ @@ -29,7 +38,8 @@ eglscreen.c \ eglsurface.c -OBJECTS = $(SOURCES:.c=.o) +OBJECTS = $(SOURCES:.c=.o) \ + $(ASM_SOURCES:.S=.o) .c.o: @@ -45,7 +55,7 @@ $(LIB_DIR)/libEGL.so: $(OBJECTS) $(TOP)/bin/mklib -o EGL -major 1 -minor 0 \ - -install $(LIB_DIR) -ldl $(OBJECTS) + -install $(LIB_DIR) -ldl -lpthread $(OBJECTS) Index: progs/egl/Makefile =================================================================== RCS file: /cvs/mesa/Mesa/progs/egl/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile --- progs/egl/Makefile 21 Aug 2005 03:17:52 -0000 1.6 +++ progs/egl/Makefile 23 Aug 2005 22:59:11 -0000 @@ -32,14 +32,14 @@ demo2: demo2.o $(LIB_DIR)/libEGL.so - $(CC) $(CFLAGS) demo2.o -L$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ + $(CC) $(CFLAGS) demo2.o -L$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@ demo2.o: demo2.c $(HEADERS) $(CC) -c $(CFLAGS) -I$(TOP)/include demo2.c demo3: demo3.o $(LIB_DIR)/libEGL.so - $(CC) $(CFLAGS) demo3.o -L$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ + $(CC) $(CFLAGS) demo3.o -L$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@ demo3.o: demo3.c $(HEADERS) $(CC) -c $(CFLAGS) -I$(TOP)/include demo3.c @@ -53,7 +53,7 @@ eglgears: eglgears.o $(LIB_DIR)/libEGL.so - $(CC) $(CFLAGS) eglgears.o -L$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ + $(CC) $(CFLAGS) eglgears.o -L$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@ eglgears.o: eglgears.c $(HEADERS) $(CC) -c $(CFLAGS) -I$(TOP)/include eglgears.c Index: progs/egl/demo1.c =================================================================== RCS file: /cvs/mesa/Mesa/progs/egl/demo1.c,v retrieving revision 1.5 diff -u -r1.5 demo1.c --- progs/egl/demo1.c 16 Jun 2005 04:25:45 -0000 1.5 +++ progs/egl/demo1.c 23 Aug 2005 22:59:12 -0000 @@ -92,6 +92,9 @@ EGLContext ctx; EGLSurface pbuffer; EGLConfig configs[10]; + EGLScreenMESA screen; + EGLModeMESA mode; + EGLint numConfigs, count; EGLBoolean b; const EGLint pbufAttribs[] = { EGL_WIDTH, 500, @@ -113,6 +116,10 @@ printf("EGL version = %d.%d\n", maj, min); printf("EGL_VENDOR = %s\n", eglQueryString(d, EGL_VENDOR)); + eglGetConfigs(d, configs, 10, &numConfigs); + eglGetScreensMESA(d, &screen, 1, &count); + eglGetModesMESA(d, screen, &mode, 1, &count); + PrintConfigs(d); ctx = eglCreateContext(d, configs[0], EGL_NO_CONTEXT, NULL); Index: progs/egl/demo2.c =================================================================== RCS file: /cvs/mesa/Mesa/progs/egl/demo2.c,v retrieving revision 1.4 diff -u -r1.4 demo2.c --- progs/egl/demo2.c 20 May 2005 14:02:02 -0000 1.4 +++ progs/egl/demo2.c 23 Aug 2005 22:59:12 -0000 @@ -24,8 +24,6 @@ static void redraw(EGLDisplay dpy, EGLSurface surf, int rot) { - printf("Redraw event\n"); - #ifdef FRONTBUFFER glDrawBuffer( GL_FRONT ); #else @@ -177,8 +175,6 @@ for (i = 0; i < 6; i++) { redraw(d, screen_surf, i*10 ); - - printf("sleep(1)\n"); sleep(1); }