Merge remote branch 'main/master' into radeon-rewrite
[mesa.git] / src / mesa / drivers / dri / radeon / radeon_swtcl.h
1 /**************************************************************************
2
3 Copyright 2000, 2001 ATI Technologies Inc., Ontario, Canada, and
4 VA Linux Systems Inc., Fremont, California.
5
6 All Rights Reserved.
7
8 Permission is hereby granted, free of charge, to any person obtaining a
9 copy of this software and associated documentation files (the "Software"),
10 to deal in the Software without restriction, including without limitation
11 on the rights to use, copy, modify, merge, publish, distribute, sub
12 license, and/or sell copies of the Software, and to permit persons to whom
13 the Software is furnished to do so, subject to the following conditions:
14
15 The above copyright notice and this permission notice (including the next
16 paragraph) shall be included in all copies or substantial portions of the
17 Software.
18
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
22 ATI, VA LINUX SYSTEMS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
23 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
25 USE OR OTHER DEALINGS IN THE SOFTWARE.
26
27 **************************************************************************/
28
29 /*
30 * Authors:
31 * Keith Whitwell <keith@tungstengraphics.com>
32 *
33 */
34
35 #ifndef __RADEON_TRIS_H__
36 #define __RADEON_TRIS_H__
37
38 #include "main/mtypes.h"
39 #include "swrast/swrast.h"
40 #include "radeon_context.h"
41
42 extern void radeonInitSwtcl( GLcontext *ctx );
43 extern void radeonDestroySwtcl( GLcontext *ctx );
44
45 extern void radeonChooseRenderState( GLcontext *ctx );
46 extern void radeonChooseVertexState( GLcontext *ctx );
47
48 extern void radeonCheckTexSizes( GLcontext *ctx );
49
50 extern void radeonBuildVertices( GLcontext *ctx, GLuint start, GLuint count,
51 GLuint newinputs );
52
53 extern void radeonPrintSetupFlags(char *msg, GLuint flags );
54
55
56 extern void radeon_emit_indexed_verts( GLcontext *ctx,
57 GLuint start,
58 GLuint count );
59
60 extern void radeon_translate_vertex( GLcontext *ctx,
61 const radeonVertex *src,
62 SWvertex *dst );
63
64 extern void radeon_print_vertex( GLcontext *ctx, const radeonVertex *v );
65
66 extern void r100_swtcl_flush(GLcontext *ctx, uint32_t current_offset);
67 #endif