draw: corrections to allow for different cliptest cases
[mesa.git] / src / mesa / drivers / dri / i810 / i810vb.h
1 /*
2 * GLX Hardware Device Driver for Intel i810
3 * Copyright (C) 1999 Keith Whitwell
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * KEITH WHITWELL, OR ANY OTHER CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
21 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 *
23 *
24 */
25
26 #ifndef I810VB_INC
27 #define I810VB_INC
28
29 #include "main/mtypes.h"
30 #include "swrast/swrast.h"
31
32 #define _I810_NEW_VERTEX (_NEW_TEXTURE | \
33 _DD_NEW_SEPARATE_SPECULAR | \
34 _DD_NEW_TRI_UNFILLED | \
35 _DD_NEW_TRI_LIGHT_TWOSIDE | \
36 _NEW_FOG)
37
38
39 extern void i810ChooseVertexState( GLcontext *ctx );
40 extern void i810CheckTexSizes( GLcontext *ctx );
41 extern void i810BuildVertices( GLcontext *ctx,
42 GLuint start,
43 GLuint count,
44 GLuint newinputs );
45
46
47 extern void *i810_emit_contiguous_verts( GLcontext *ctx,
48 GLuint start,
49 GLuint count,
50 void *dest );
51
52 extern void i810_translate_vertex( GLcontext *ctx,
53 const i810Vertex *src,
54 SWvertex *dst );
55
56 extern void i810InitVB( GLcontext *ctx );
57 extern void i810FreeVB( GLcontext *ctx );
58
59 #endif