Changed src/Makefile.X11 to compile Trace sources like other drivers.
-# $Id: Make-config,v 1.28 2000/09/15 19:44:43 brianp Exp $
+# $Id: Make-config,v 1.29 2000/09/26 15:27:20 brianp Exp $
MESA_MAJOR=3
MESA_MINOR=5
"GLUT_LIB = libglut.so" \
"GLW_LIB = libGLw.so" \
"CC = gcc" \
- "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -DGL_MESA_TRACE -I/usr/X11R6/include" \
+ "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -DMESA_TRACE -I/usr/X11R6/include" \
"MAKELIB = ../bin/mklib.linux" \
"GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread" \
"GLU_LIB_DEPS = -L../lib -lGL -lm" \
"GLUT_LIB = libglut.so" \
"GLW_LIB = libGLw.so" \
"CC = gcc" \
- "CFLAGS = -g -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DUSE_XSHM -DPTHREADS -DDEBUG -DMESA_DEBUG -DSVGA -I/usr/include/glide -DFX -DGL_MESA_TRACE" \
+ "CFLAGS = -g -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DUSE_XSHM -DPTHREADS -DDEBUG -DMESA_DEBUG -DSVGA -I/usr/include/glide -DFX" \
"MAKELIB = ../bin/mklib.linux" \
"GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread -lvga -L/usr/local/glide/lib -lglide2x" \
"GLU_LIB_DEPS = -L../lib -lGL -lm" \
-# $Id: Makefile.X11,v 1.22 2000/09/07 15:42:13 brianp Exp $
+# $Id: Makefile.X11,v 1.23 2000/09/26 15:27:23 brianp Exp $
# Mesa 3-D graphics library
# Version: 3.5
FX/fxtexman.c \
FX/fxtrifuncs.c \
FX/fxvsetup.c \
- FX/fxglidew.c
+ FX/fxglidew.c \
+ Trace/tr_2string.c \
+ Trace/tr_attrib.c \
+ Trace/tr_context.c \
+ Trace/tr_control.c \
+ Trace/tr_error.c \
+ Trace/tr_print.c \
+ Trace/tr_wrapper.c
+
ASM_SOURCES =
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
X/xm_tri.o: X/xm_tri.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
SVGA/svgamesa.o: SVGA/svgamesa.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
SVGA/svgamesa8.o: SVGA/svgamesa8.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
SVGA/svgamesa32.o: SVGA/svgamesa32.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
OSmesa/osmesa.o: OSmesa/osmesa.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
FX/fxapi.o: FX/fxapi.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
FX/fxclip.o: FX/fxclip.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
FX/fxglidew.o: FX/fxglidew.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
FX/X86/fx_3dnow_fastpath.o: FX/X86/fx_3dnow_fastpath.S
-GGI/ggimesa.o: GGI/ggimesa.c
- $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
X86/x86.o: X86/x86.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
X86/common_x86.o: X86/common_x86.c
X86/katmai.o: X86/katmai.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+GGI/ggimesa.o: GGI/ggimesa.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+Trace/tr_2string.o: Trace/tr_2string.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_attrib.o: Trace/tr_attrib.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_context.o: Trace/tr_context.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_control.o: Trace/tr_control.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_error.o: Trace/tr_error.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_print.o: Trace/tr_print.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_wrapper.o: Trace/tr_wrapper.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+
+
##### TARGETS #####
#default:
-/* $Id: glapi.c,v 1.44 2000/09/15 19:45:41 brianp Exp $ */
+/* $Id: glapi.c,v 1.45 2000/09/26 15:27:22 brianp Exp $ */
/*
* Mesa 3-D graphics library
#include "glapitable.h"
#include "glthread.h"
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
#include "types.h"
#endif
void
_glapi_set_dispatch(struct _glapi_table *dispatch)
{
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
GLcontext * ctx;
#endif
#endif
#if defined(THREADS)
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD);
if (ctx->TraceCtx->traceEnabled == GL_TRUE) {
- _glthread_SetTSD(&DispatchTSD, (void*) ctx->TraceDispatch);
+ _glthread_SetTSD(&DispatchTSD, (void *) ctx->TraceDispatch);
if (ThreadSafe)
_glapi_Dispatch = NULL;
else
_glapi_Dispatch = ctx->TraceDispatch;
- } else {
- _glthread_SetTSD(&DispatchTSD, (void*) dispatch);
+ }
+ else {
+ _glthread_SetTSD(&DispatchTSD, (void *) dispatch);
if (ThreadSafe)
_glapi_Dispatch = NULL;
else
_glapi_Dispatch = dispatch;
}
#else
- _glthread_SetTSD(&DispatchTSD, (void*) dispatch);
+ _glthread_SetTSD(&DispatchTSD, (void *) dispatch);
if (ThreadSafe)
_glapi_Dispatch = NULL;
else
_glapi_Dispatch = dispatch;
-#endif /*GL_MESA_TRACE*/
+#endif /*MESA_TRACE*/
#else /*THREADS*/
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD);
_glapi_Dispatch = ctx->TraceDispatch;
#else
_glapi_Dispatch = dispatch;
-#endif /*GL_MESA_TRACE*/
+#endif /*MESA_TRACE*/
#endif /*THREADS*/
}
}
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
struct _glapi_table *
_glapi_get_true_dispatch(void)
{
return ((GLcontext *)_glapi_Context)->CurrentDispatch;
#endif
}
-#endif /* GL_MESA_TRACE */
+#endif /* MESA_TRACE */
/*
-/* $Id: glapi.h,v 1.16 2000/09/15 19:45:41 brianp Exp $ */
+/* $Id: glapi.h,v 1.17 2000/09/26 15:27:23 brianp Exp $ */
/*
* Mesa 3-D graphics library
_glapi_get_dispatch(void);
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
extern struct _glapi_table *
_glapi_get_true_dispatch(void);
#endif
-# $Id: Makefile.X11,v 1.22 2000/09/07 15:42:13 brianp Exp $
+# $Id: Makefile.X11,v 1.23 2000/09/26 15:27:23 brianp Exp $
# Mesa 3-D graphics library
# Version: 3.5
FX/fxtexman.c \
FX/fxtrifuncs.c \
FX/fxvsetup.c \
- FX/fxglidew.c
+ FX/fxglidew.c \
+ Trace/tr_2string.c \
+ Trace/tr_attrib.c \
+ Trace/tr_context.c \
+ Trace/tr_control.c \
+ Trace/tr_error.c \
+ Trace/tr_print.c \
+ Trace/tr_wrapper.c
+
ASM_SOURCES =
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
X/xm_tri.o: X/xm_tri.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
SVGA/svgamesa.o: SVGA/svgamesa.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
SVGA/svgamesa8.o: SVGA/svgamesa8.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
SVGA/svgamesa32.o: SVGA/svgamesa32.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
OSmesa/osmesa.o: OSmesa/osmesa.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
FX/fxapi.o: FX/fxapi.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
FX/fxclip.o: FX/fxclip.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
FX/fxglidew.o: FX/fxglidew.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
FX/X86/fx_3dnow_fastpath.o: FX/X86/fx_3dnow_fastpath.S
-GGI/ggimesa.o: GGI/ggimesa.c
- $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
X86/x86.o: X86/x86.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
X86/common_x86.o: X86/common_x86.c
X86/katmai.o: X86/katmai.c
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+GGI/ggimesa.o: GGI/ggimesa.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+Trace/tr_2string.o: Trace/tr_2string.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_attrib.o: Trace/tr_attrib.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_context.o: Trace/tr_context.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_control.o: Trace/tr_control.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_error.o: Trace/tr_error.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_print.o: Trace/tr_print.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_wrapper.o: Trace/tr_wrapper.c
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+
+
##### TARGETS #####
#default:
-/* $Id: context.c,v 1.88 2000/09/17 21:56:07 brianp Exp $ */
+/* $Id: context.c,v 1.89 2000/09/26 15:27:22 brianp Exp $ */
/*
* Mesa 3-D graphics library
#endif
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
#include "Trace/tr_context.h"
#include "Trace/tr_wrapper.h"
#endif
_mesa_init_dlist_table(ctx->Save, dispatchSize);
ctx->CurrentDispatch = ctx->Exec;
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
ctx->TraceCtx = CALLOC( sizeof(trace_context_t) );
#if 0
/* Brian: do you want to have CreateContext fail here,