mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 17:00:27 +01:00
added GL_MESA_trace support
This commit is contained in:
parent
98b3dd40f7
commit
1ff933b452
3 changed files with 14 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: glapi.c,v 1.43 2000/09/05 20:17:37 brianp Exp $ */
|
||||
/* $Id: glapi.c,v 1.44 2000/09/15 19:45:41 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
#include "glapitable.h"
|
||||
#include "glthread.h"
|
||||
|
||||
#if defined(TRACE)
|
||||
#if defined(GL_MESA_TRACE)
|
||||
#include "types.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -170,7 +170,7 @@ _glapi_get_context(void)
|
|||
void
|
||||
_glapi_set_dispatch(struct _glapi_table *dispatch)
|
||||
{
|
||||
#if defined(TRACE)
|
||||
#if defined(GL_MESA_TRACE)
|
||||
GLcontext * ctx;
|
||||
#endif
|
||||
|
||||
|
|
@ -185,7 +185,7 @@ _glapi_set_dispatch(struct _glapi_table *dispatch)
|
|||
#endif
|
||||
|
||||
#if defined(THREADS)
|
||||
#if defined(TRACE)
|
||||
#if defined(GL_MESA_TRACE)
|
||||
ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD);
|
||||
if (ctx->TraceCtx->traceEnabled == GL_TRUE) {
|
||||
_glthread_SetTSD(&DispatchTSD, (void*) ctx->TraceDispatch);
|
||||
|
|
@ -206,14 +206,14 @@ _glapi_set_dispatch(struct _glapi_table *dispatch)
|
|||
_glapi_Dispatch = NULL;
|
||||
else
|
||||
_glapi_Dispatch = dispatch;
|
||||
#endif /*TRACE*/
|
||||
#endif /*GL_MESA_TRACE*/
|
||||
#else /*THREADS*/
|
||||
#if defined(TRACE)
|
||||
#if defined(GL_MESA_TRACE)
|
||||
ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD);
|
||||
_glapi_Dispatch = ctx->TraceDispatch;
|
||||
#else
|
||||
_glapi_Dispatch = dispatch;
|
||||
#endif /*TRACE*/
|
||||
#endif /*GL_MESA_TRACE*/
|
||||
#endif /*THREADS*/
|
||||
}
|
||||
|
||||
|
|
@ -239,7 +239,7 @@ _glapi_get_dispatch(void)
|
|||
}
|
||||
|
||||
|
||||
#if defined(TRACE)
|
||||
#if defined(GL_MESA_TRACE)
|
||||
struct _glapi_table *
|
||||
_glapi_get_true_dispatch(void)
|
||||
{
|
||||
|
|
@ -263,7 +263,7 @@ _glapi_get_true_dispatch(void)
|
|||
return ((GLcontext *)_glapi_Context)->CurrentDispatch;
|
||||
#endif
|
||||
}
|
||||
#endif /* TRACE */
|
||||
#endif /* GL_MESA_TRACE */
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: glapi.h,v 1.15 2000/09/05 20:17:37 brianp Exp $ */
|
||||
/* $Id: glapi.h,v 1.16 2000/09/15 19:45:41 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -59,7 +59,7 @@ extern struct _glapi_table *
|
|||
_glapi_get_dispatch(void);
|
||||
|
||||
|
||||
#if defined(TRACE)
|
||||
#if defined(GL_MESA_TRACE)
|
||||
extern struct _glapi_table *
|
||||
_glapi_get_true_dispatch(void);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: context.c,v 1.86 2000/09/14 23:13:23 brianp Exp $ */
|
||||
/* $Id: context.c,v 1.87 2000/09/15 19:45:40 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
#if defined(TRACE)
|
||||
#if defined(GL_MESA_TRACE)
|
||||
#include "Trace/tr_context.h"
|
||||
#include "Trace/tr_wrapper.h"
|
||||
#endif
|
||||
|
|
@ -1492,7 +1492,7 @@ _mesa_initialize_context( GLcontext *ctx,
|
|||
_mesa_init_dlist_table(ctx->Save, dispatchSize);
|
||||
ctx->CurrentDispatch = ctx->Exec;
|
||||
|
||||
#if defined(TRACE)
|
||||
#if defined(GL_MESA_TRACE)
|
||||
ctx->TraceCtx = CALLOC( sizeof(trace_context_t) );
|
||||
#if 0
|
||||
/* Brian: do you want to have CreateContext fail here,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue