diff options
Diffstat (limited to 'xc/extras/Mesa/src/cva.c')
-rw-r--r-- | xc/extras/Mesa/src/cva.c | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/xc/extras/Mesa/src/cva.c b/xc/extras/Mesa/src/cva.c index 0301956d5..d06890c3c 100644 --- a/xc/extras/Mesa/src/cva.c +++ b/xc/extras/Mesa/src/cva.c @@ -1,8 +1,7 @@ -/* $Id: cva.c,v 1.1.1.1 2000/01/06 13:26:47 faith Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.1 + * Version: 3.3 * * Copyright (C) 1999 Brian Paul All Rights Reserved. * @@ -28,27 +27,23 @@ * Copyright (C) 1999 Keith Whitwell */ -#ifndef XFree86Server -#include <stdlib.h> -#include <stdio.h> + +#ifdef PC_HEADER +#include "all.h" #else -#include "GL/xf86glx.h" -#endif -#include "api.h" +#include "glheader.h" #include "types.h" #include "cva.h" #include "context.h" #include "macros.h" +#include "mem.h" #include "pipeline.h" #include "varray.h" #include "vbcull.h" #include "vbrender.h" #include "vbxform.h" #include "vector.h" - -/* Mesa CVA implementation. - * Copyright (C) 1999 Keith Whitwell - */ +#endif @@ -377,12 +372,10 @@ void gl_rescue_cva( GLcontext *ctx, struct immediate *IM ) * actual draw commands arrive, the data will be merged prior to * calling render_vb. */ -void GLAPIENTRY glLockArraysEXT(CTX_ARG GLint first, GLsizei count ) +void +_mesa_LockArraysEXT(GLint first, GLsizei count) { - GLcontext *ctx; - GET_CONTEXT; - CHECK_CONTEXT; - ctx = CC; + GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx, "unlock arrays" ); if (MESA_VERBOSE & VERBOSE_API) @@ -430,12 +423,10 @@ void GLAPIENTRY glLockArraysEXT(CTX_ARG GLint first, GLsizei count ) -void GLAPIENTRY glUnlockArraysEXT(CTX_VOID ) +void +_mesa_UnlockArraysEXT( void ) { - GLcontext *ctx; - GET_CONTEXT; - CHECK_CONTEXT; - ctx = CC; + GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx, "unlock arrays" ); if (MESA_VERBOSE & VERBOSE_API) |