Rename the various function types in t_context.h to include a tnl_ prefix.
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 Jul 2004 13:14:05 +0000 (13:14 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 Jul 2004 13:14:05 +0000 (13:14 +0000)
51 files changed:
src/mesa/drivers/dri/ffb/ffb_tris.c
src/mesa/drivers/dri/ffb/ffb_vb.c
src/mesa/drivers/dri/gamma/gamma_render.c
src/mesa/drivers/dri/gamma/gamma_tris.c
src/mesa/drivers/dri/gamma/gamma_vb.c
src/mesa/drivers/dri/i810/i810tris.c
src/mesa/drivers/dri/i810/i810vb.c
src/mesa/drivers/dri/i830/i830_tris.c
src/mesa/drivers/dri/i915/intel_tris.c
src/mesa/drivers/dri/mach64/mach64_tris.c
src/mesa/drivers/dri/mach64/mach64_vb.c
src/mesa/drivers/dri/mga/mgatris.c
src/mesa/drivers/dri/mga/mgavb.c
src/mesa/drivers/dri/r128/r128_tris.c
src/mesa/drivers/dri/r128/r128_vb.c
src/mesa/drivers/dri/r200/r200_swtcl.c
src/mesa/drivers/dri/radeon/radeon_swtcl.c
src/mesa/drivers/dri/savage/savagetris.c
src/mesa/drivers/dri/sis/sis_tris.c
src/mesa/drivers/dri/tdfx/tdfx_tris.c
src/mesa/drivers/dri/tdfx/tdfx_vb.c
src/mesa/drivers/dri/unichrome/via_dmatmp.h
src/mesa/drivers/dri/unichrome/via_render.c
src/mesa/drivers/dri/unichrome/via_tris.c
src/mesa/drivers/dri/unichrome/via_vb.c
src/mesa/drivers/dri/unichrome/via_vb_cliptmp.h
src/mesa/drivers/glide/fxtris.c
src/mesa/drivers/glide/fxvb.c
src/mesa/drivers/windows/gdi/wmesa.c
src/mesa/drivers/windows/gldirect/dx7/gld_vb_d3d_render_dx7.c
src/mesa/drivers/windows/gldirect/dx7/gld_vb_mesa_render_dx7.c
src/mesa/drivers/windows/gldirect/dx8/gld_vb_d3d_render_dx8.c
src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c
src/mesa/drivers/windows/gldirect/dx9/gld_vb_d3d_render_dx9.c
src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c
src/mesa/drivers/windows/gldirect/mesasw/gld_wgl_mesasw.c
src/mesa/swrast_setup/ss_triangle.c
src/mesa/tnl/t_context.h
src/mesa/tnl/t_pipeline.h
src/mesa/tnl/t_vb_cliptmp.h
src/mesa/tnl/t_vb_render.c
src/mesa/tnl/t_vertex.c
src/mesa/tnl/t_vertex.h
src/mesa/tnl/t_vertex_c.c
src/mesa/tnl/t_vertex_codegen.c
src/mesa/tnl/t_vtx_api.c
src/mesa/tnl/t_vtx_api.h
src/mesa/tnl/t_vtx_generic.c
src/mesa/tnl/t_vtx_x86.c
src/mesa/tnl_dd/t_dd_dmatmp.h
src/mesa/tnl_dd/t_dd_dmatmp2.h

index 62c74247b079528cf24acb297c4a61dd223c5f19..ca0e514dc0e5907f6700a06045ee5afc5ef63bd4 100644 (file)
@@ -306,8 +306,8 @@ static void ffbRasterPrimitive(GLcontext *ctx, GLenum rprim);
 #define FFB_MAX_TRIFUNC        0x08
 
 static struct {
-       triangle_func triangle;
-       quad_func quad;
+       tnl_triangle_func triangle;
+       tnl_quad_func quad;
 } rast_tab[FFB_MAX_TRIFUNC];
 
 #define DO_OFFSET   (IND & FFB_OFFSET_BIT)
@@ -549,13 +549,13 @@ static void init_render_tab(void)
                render_tab_flat_alpha_tricull_elt;
 
        for (i = 0; i < MAX_FFB_RENDER_FUNCS; i++) {
-               render_func *rf = render_tabs[i];
-               render_func *rfe = render_tabs_elt[i];
+               tnl_render_func *rf = render_tabs[i];
+               tnl_render_func *rfe = render_tabs_elt[i];
 
                if (i & FFB_TRI_CULL_BIT) {
                        int from_idx = (i & ~FFB_TRI_CULL_BIT);
-                       render_func *rf_from = render_tabs[from_idx];
-                       render_func *rfe_from = render_tabs_elt[from_idx];
+                       tnl_render_func *rf_from = render_tabs[from_idx];
+                       tnl_render_func *rfe_from = render_tabs_elt[from_idx];
                        int j;
 
                        for (j = GL_POINTS; j < GL_TRIANGLES; j++) {
index 5b8e5923a5f47b2aba83546a294fc48989b213ea..6ba1eabbf241c3dbfdb8441f784f9274d365fe89 100644 (file)
@@ -78,7 +78,7 @@ typedef void (*ffb_emit_func)(GLcontext *, GLuint, GLuint);
 
 static struct {
        ffb_emit_func   emit;
-       interp_func     interp;
+       tnl_interp_func interp;
 } setup_tab[FFB_VB_MAX];
 
 
index 6454bb978036f0953bdbfca2e7dd0845fb689002..ce8b83934c9c048e81f043927306f74cad9bebc4 100644 (file)
@@ -177,7 +177,7 @@ static GLboolean gamma_run_render( GLcontext *ctx,
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    struct vertex_buffer *VB = &tnl->vb;
    GLuint i;
-   render_func *tab;
+   tnl_render_func *tab;
 
                                /* GH: THIS IS A HACK!!! */
    if (VB->ClipOrMask || gmesa->RenderIndex != 0)
index da7ae5e247af1babd8cbd49045e246181df7262c..83bf56a141a9d283a850cba31a55d49dc3f5e104 100644 (file)
@@ -275,10 +275,10 @@ do {                                              \
 
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[GAMMA_MAX_TRIFUNC];
 
 
index f2dd0d8de00d5de63a1436c20f9c8e5ad2451d0c..80d35cba9e931416516194fe90e66996ebb0d9c0 100644 (file)
@@ -51,8 +51,8 @@
 
 static struct {
    void                (*emit)( GLcontext *, GLuint, GLuint, void *, GLuint );
-   interp_func         interp;
-   copy_pv_func                copy_pv;
+   tnl_interp_func             interp;
+   tnl_copy_pv_func            copy_pv;
    GLboolean           (*check_tex_sizes)( GLcontext *ctx );
    GLuint               vertex_size;
    GLuint               vertex_format;
index b035b9beb02aec64b6ff7eb6d2d12a21bc16ab57..5b2ea018e1ed4adad5616074f1f8d96860ec379b 100644 (file)
@@ -199,10 +199,10 @@ do {                                              \
 
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[I810_MAX_TRIFUNC];
 
 
index 2cdf0252ce7886b4dc346dff4c1adadcc2ae4529..880cfaf7a070b64da263b226228f3c5ae0f37ee7 100644 (file)
@@ -55,8 +55,8 @@
 
 static struct {
    void                (*emit)( GLcontext *, GLuint, GLuint, void *, GLuint );
-   interp_func         interp;
-   copy_pv_func                copy_pv;
+   tnl_interp_func             interp;
+   tnl_copy_pv_func            copy_pv;
    GLboolean           (*check_tex_sizes)( GLcontext *ctx );
    GLuint               vertex_size;
    GLuint               vertex_format;
index 8421897cfeae7768d69a4e9b06b5d04a0b5f7e46..e0907202d501b273465d74e8508f188c45a11538 100644 (file)
@@ -190,10 +190,10 @@ do {                                              \
 
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[I830_MAX_TRIFUNC];
 
 
index 261b1f27950168df332b813f00ae79554e027f0d..886029574e02e02ed2a858b8d3770ca6508b0783 100644 (file)
@@ -285,10 +285,10 @@ do {                                              \
 
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[INTEL_MAX_TRIFUNC];
 
 
index 3ef34fbb4b665bd623fa6102feb2026189b7d545..6b12ee92e24c20a393dd0cba19fe3ffb38afc10e 100644 (file)
@@ -1227,10 +1227,10 @@ do {                                            \
 #define MACH64_MAX_TRIFUNC     0x10
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[MACH64_MAX_TRIFUNC];
 
 
index 7e23006132b52d4725d2289af1d2f5ff4f45e092..83a5f73e6ba80742b8db45e704a5547b1d5a56b3 100644 (file)
@@ -56,8 +56,8 @@
 
 static struct {
    void                (*emit)( GLcontext *, GLuint, GLuint, void *, GLuint );
-   interp_func         interp;
-   copy_pv_func                copy_pv;
+   tnl_interp_func             interp;
+   tnl_copy_pv_func            copy_pv;
    GLboolean           (*check_tex_sizes)( GLcontext *ctx );
    GLuint               vertex_size;
    GLuint               vertex_format;
index bf415a15a636b72a6a1f229c7da72dd091437f61..1f142ccb4dd775eb7494c31eb3215e02a4c5742d 100644 (file)
@@ -328,10 +328,10 @@ mga_fallback_point( mgaContextPtr mmesa,
 #define MGA_MAX_TRIFUNC     0x20
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[MGA_MAX_TRIFUNC];
 
 #define DO_FALLBACK (IND & MGA_FALLBACK_BIT)
index dacb38dd9fcc5c70ccd42595053f1d4daebe3302..902d8bd1c1bb40a58a19957a38fe9fca34084de0 100644 (file)
@@ -55,8 +55,8 @@
 
 static struct {
    void                (*emit)( GLcontext *, GLuint, GLuint, void *, GLuint );
-   interp_func         interp;
-   copy_pv_func                copy_pv;
+   tnl_interp_func             interp;
+   tnl_copy_pv_func            copy_pv;
    GLboolean           (*check_tex_sizes)( GLcontext *ctx );
    GLuint               vertex_size;
    GLuint               vertex_format;
index b00ea62e28d22c3ae3b0225476cc43159d8b6e0a..d3dfb3b1174e50d82296908632a1c3ab352ec0a1 100644 (file)
@@ -199,10 +199,10 @@ do {                                              \
 
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[R128_MAX_TRIFUNC];
 
 
index 541d7ecd02fe57b5ef93181452fc59bdb7b79275..213a335052676c4c32e9452c82bb1558658d23a7 100644 (file)
@@ -60,8 +60,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 static struct {
    void                (*emit)( GLcontext *, GLuint, GLuint, void *, GLuint );
-   interp_func         interp;
-   copy_pv_func                copy_pv;
+   tnl_interp_func             interp;
+   tnl_copy_pv_func            copy_pv;
    GLboolean           (*check_tex_sizes)( GLcontext *ctx );
    GLuint               vertex_size;
    GLuint               vertex_format;
index 5c5c5bd75e39c6c428b8b7d0e924058f33e03066..0444294d797ca1cfd5e604f2535a574d514117a3 100644 (file)
@@ -380,10 +380,10 @@ static void r200ResetLineStipple( GLcontext *ctx );
 
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[R200_MAX_TRIFUNC];
 
 
index fd14e76d4441a3218e1fc4daa46ea1aef9e07ac9..789f2777c0022f7d47fe0a42e1bc759ce9a7de79 100644 (file)
@@ -70,8 +70,8 @@ static void flush_last_swtcl_prim( radeonContextPtr rmesa  );
 
 static struct {
    void                (*emit)( GLcontext *, GLuint, GLuint, void *, GLuint );
-   interp_func         interp;
-   copy_pv_func                copy_pv;
+   tnl_interp_func             interp;
+   tnl_copy_pv_func            copy_pv;
    GLboolean           (*check_tex_sizes)( GLcontext *ctx );
    GLuint               vertex_size;
    GLuint               vertex_format;
@@ -595,7 +595,7 @@ static GLboolean radeon_run_render( GLcontext *ctx,
    radeonContextPtr rmesa = RADEON_CONTEXT(ctx);
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    struct vertex_buffer *VB = &tnl->vb;
-   render_func *tab = TAG(render_tab_verts);
+   tnl_render_func *tab = TAG(render_tab_verts);
    GLuint i;
 
    if (rmesa->swtcl.indexed_verts.buf && (!VB->Elts || stage->changed_inputs)) 
@@ -859,10 +859,10 @@ static void radeonResetLineStipple( GLcontext *ctx );
 
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[RADEON_MAX_TRIFUNC];
 
 
index 1cb2d46e90d26761751ba3bda13f5f57750ebd94..31917132f7f6a11944f73957a70ed581a748746f 100644 (file)
@@ -251,10 +251,10 @@ do {                                              \
 
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[SAVAGE_MAX_TRIFUNC];
 
 
index 56676b04cf4fb86e3df5b5e9eca421a49af9c033..da23df5fe73e3efa322311b8d7a1f699d1a3b458 100644 (file)
@@ -333,10 +333,10 @@ do {                                              \
 
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[SIS_MAX_TRIFUNC];
 
 
index 408682e1fac417db14c79c56da53a54345789e8a..c3398c73fc682c3975675e6ffb8f285f951d077d 100644 (file)
@@ -303,10 +303,10 @@ static void tdfx_draw_point( tdfxContextPtr fxMesa,
 #define TDFX_MAX_TRIFUNC     0x20
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[TDFX_MAX_TRIFUNC];
 
 #define DO_FALLBACK (IND & TDFX_FALLBACK_BIT)
index 28cd9793a7eea22a092027b43e19ae9f80558b08..b7d75bb4e461fe8eb15b28b35c21bda32c84bbba 100644 (file)
@@ -63,8 +63,8 @@ typedef void (*tdfx_emit_func)( GLcontext *, GLuint, GLuint, void *, GLuint );
 
 static struct {
    tdfx_emit_func              emit;
-   interp_func         interp;
-   copy_pv_func                copy_pv;
+   tnl_interp_func             interp;
+   tnl_copy_pv_func            copy_pv;
    GLboolean           (*check_tex_sizes)( GLcontext *ctx );
    GLuint               vertex_size;
    GLuint               vertex_stride_shift;
index 5808b505f37861f0c16fb3b8ebeeb43d417c4480..0253d7b57fe1d1920ecb1f2ce7ad6c68b08d0b72 100644 (file)
@@ -579,7 +579,7 @@ static void TAG(render_noop)(GLcontext *ctx,
 }
 
 
-static render_func TAG(render_tab_verts)[GL_POLYGON + 2] =
+static tnl_render_func TAG(render_tab_verts)[GL_POLYGON + 2] =
 {
     TAG(render_points_verts),
     TAG(render_lines_verts),
index 9f87533e3d01e68e336cd8a9bb57f57bbd1ad045..210248ff4beec53e5c474d70befceaafe67b960a 100644 (file)
@@ -321,9 +321,9 @@ const struct tnl_pipeline_stage _via_fastrender_stage =
     const GLuint * const elt = VB->Elts;                               \
     const GLubyte *mask = VB->ClipMask;                                        \
     const GLuint sz = VB->ClipPtr->size;                               \
-    const line_func LineFunc = tnl->Driver.Render.Line;                        \
-    const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;    \
-    const quad_func QuadFunc = tnl->Driver.Render.Quad;                        \
+    const tnl_line_func LineFunc = tnl->Driver.Render.Line;                    \
+    const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle;        \
+    const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;                    \
     const GLboolean stipple = ctx->Line.StippleFlag;                   \
     (void) (LineFunc && TriangleFunc && QuadFunc);                     \
     (void) elt; (void) mask; (void) sz; (void) stipple;
@@ -355,7 +355,7 @@ static void clip_elt_triangles(GLcontext *ctx,
                               GLuint flags)
 {
     TNLcontext *tnl = TNL_CONTEXT(ctx);
-    render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
+    tnl_render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
     struct vertex_buffer *VB = &tnl->vb;
     const GLuint * const elt = VB->Elts;
     GLubyte *mask = VB->ClipMask;
@@ -423,7 +423,7 @@ static GLboolean via_run_render(GLcontext *ctx,
     GLuint newInputs = stage->changed_inputs;
     /*GLuint newInputs = stage->inputs;*/
     
-    render_func *tab;
+    tnl_render_func *tab;
     GLuint pass = 0;
     
 #ifdef DEBUG
index 61f80ae97049ced6e9a4433293085dfb86770020..423b1372a730344dcb1423e6d8ce894a6585fa39 100644 (file)
@@ -229,10 +229,10 @@ static __inline__ void via_draw_line(viaContextPtr vmesa,
 
 
 static struct {
-    points_func          points;
-    line_func            line;
-    triangle_func        triangle;
-    quad_func            quad;
+    tnl_points_func          points;
+    tnl_line_func            line;
+    tnl_triangle_func        triangle;
+    tnl_quad_func            quad;
 } rast_tab[VIA_MAX_TRIFUNC];
 
 
@@ -551,9 +551,9 @@ via_fallback_point(viaContextPtr vmesa,
     TNLcontext *tnl = TNL_CONTEXT(ctx);                                        \
     struct vertex_buffer *VB = &tnl->vb;                               \
     const GLuint * const elt = VB->Elts;                               \
-    const line_func LineFunc = tnl->Driver.Render.Line;                        \
-    const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;    \
-    const quad_func QuadFunc = tnl->Driver.Render.Quad;                        \
+    const tnl_line_func LineFunc = tnl->Driver.Render.Line;                    \
+    const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle;        \
+    const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;                    \
     const GLboolean stipple = ctx->Line.StippleFlag;                   \
     (void) (LineFunc && TriangleFunc && QuadFunc);                     \
     (void) elt; (void) stipple;
index 6e8a5371815bb2d71f8ae27881cbe713d2f3990c..f0a0edfbd154c5f87c8e5cc7128a8db708d9ed53 100644 (file)
@@ -39,8 +39,8 @@
 
 static struct {
     void                (*emit)(GLcontext *, GLuint, GLuint, void *, GLuint);
-    interp_func          interp;
-    copy_pv_func         copyPv;
+    tnl_interp_func          interp;
+    tnl_copy_pv_func         copyPv;
     GLboolean           (*check_tex_sizes)(GLcontext *ctx);
     GLuint               vertexSize;
     GLuint               vertexStrideShift;
index 99f90003e13b9880a610c7d25f5ba0688a8b2eba..fd9f39a0580e9152f76aa5771d6ef5c4bc0ab140 100644 (file)
@@ -119,7 +119,7 @@ TAG(clip_line)(GLcontext *ctx, GLuint i, GLuint j, GLubyte mask)
 {
     TNLcontext *tnl = TNL_CONTEXT(ctx);
     struct vertex_buffer *VB = &tnl->vb;
-    interp_func interp = tnl->Driver.Render.Interp;
+    tnl_interp_func interp = tnl->Driver.Render.Interp;
     GLfloat (*coord)[4] = VB->ClipPtr->data;
     GLuint ii = i, jj = j, p;
 #ifdef DEBUG    
@@ -168,7 +168,7 @@ TAG(clip_tri)(GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLubyte mask)
 {
     TNLcontext *tnl = TNL_CONTEXT(ctx);
     struct vertex_buffer *VB = &tnl->vb;
-    interp_func interp = tnl->Driver.Render.Interp;
+    tnl_interp_func interp = tnl->Driver.Render.Interp;
     GLfloat (*coord)[4] = VB->ClipPtr->data;
     GLuint pv = v2;
     GLuint vlist[2][MAX_CLIPPED_VERTICES];
@@ -224,7 +224,7 @@ TAG(clip_quad)(GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLuint v3,
 {
     TNLcontext *tnl = TNL_CONTEXT(ctx);
     struct vertex_buffer *VB = &tnl->vb;
-    interp_func interp = tnl->Driver.Render.Interp;
+    tnl_interp_func interp = tnl->Driver.Render.Interp;
     GLfloat (*coord)[4] = VB->ClipPtr->data;
     GLuint pv = v3;
     GLuint vlist[2][MAX_CLIPPED_VERTICES];
index b85db94c6b70bc2e74714a69dec9cc7f9dc0371a..9eb895073bf6a4c18540d9f51223af6afb4a1449 100644 (file)
@@ -404,10 +404,10 @@ static void fx_draw_point_wide_aa ( fxMesaContext fxMesa,
 #define FX_MAX_TRIFUNC     0x20
 
 static struct {
-   points_func         points;
-   line_func           line;
-   triangle_func       triangle;
-   quad_func           quad;
+   tnl_points_func             points;
+   tnl_line_func               line;
+   tnl_triangle_func   triangle;
+   tnl_quad_func               quad;
 } rast_tab[FX_MAX_TRIFUNC];
 
 #define DO_FALLBACK (IND & FX_FALLBACK_BIT)
index f00f26442955a6c1a6c07e3e09859cf8cd5407ad..46a4278d0759acfc6808f43695ffc20c11ff7391 100644 (file)
@@ -72,8 +72,8 @@ typedef void (*emit_func)( GLcontext *, GLuint, GLuint, void * );
 
 static struct {
    emit_func           emit;
-   copy_pv_func                copy_pv;
-   interp_func         interp;
+   tnl_copy_pv_func            copy_pv;
+   tnl_interp_func             interp;
    GLboolean           (*check_tex_sizes)( GLcontext *ctx );
    GLuint               vertex_format;
 } setup_tab[MAX_SETUP];
index 46273546266f6f52ab5369ddb77818bf91b9ec69..eb64cf69a598834bb5cb77522fe17fec580e0e2c 100644 (file)
@@ -654,7 +654,7 @@ static void fast_rgb_points( GLcontext* ctx, GLuint first, GLuint last )
 }
 
 /* Return pointer to accelerated points function */
-extern points_func choose_points_function( GLcontext* ctx )
+extern tnl_points_func choose_points_function( GLcontext* ctx )
 {
   return NULL;
 }
@@ -664,7 +664,7 @@ static void fast_flat_rgb_line( GLcontext* ctx, GLuint v0,
 {
 }
 
-static line_func choose_line_function( GLcontext* ctx )
+static tnl_line_func choose_line_function( GLcontext* ctx )
 {
 }
 
@@ -3182,7 +3182,7 @@ static void flat_DITHER8_triangle( GLcontext *ctx, GLuint v0, GLuint v1,
 #endif
 /************** END DEAD TRIANGLE CODE ***********************/
 
-static triangle_func choose_triangle_function( GLcontext *ctx )
+static tnl_triangle_func choose_triangle_function( GLcontext *ctx )
 {
 #if 0
     WMesaContext wmesa = (WMesaContext) ctx->DriverCtx;
index cecfaa5f70e3b0078192212e65d394f9bd07d126..21b562857966fe611ce9fb359f8af9d2e7b0e161 100644 (file)
@@ -125,7 +125,7 @@ static GLboolean gld_d3d_render_stage_run(
        TNLcontext                              *tnl;
        struct vertex_buffer    *VB;
        GLuint                                  new_inputs;
-       render_func                             *tab;
+       tnl_render_func                         *tab;
        GLint                                   pass;
        GLD_pb_dx7                              *gldPB = &gld->PB3d;
        DWORD                                   dwFlags;
index f122d25c74c848d44ffa54ac0fe33c796c49e09e..7ee625d04bdcdef4410b104c79e45d84a2e03371 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: gld_vb_mesa_render_dx7.c,v 1.1 2004/04/20 11:13:11 alanh Exp $ */
+/* $Id: gld_vb_mesa_render_dx7.c,v 1.2 2004/07/01 13:14:06 keithw Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -143,9 +143,9 @@ do {                                                        \
    const GLuint * const elt = VB->Elts;                                \
    const GLubyte *mask = VB->ClipMask;                         \
    const GLuint sz = VB->ClipPtr->size;                                \
-   const line_func LineFunc = tnl->Driver.Render.Line;         \
-   const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;     \
-   const quad_func QuadFunc = tnl->Driver.Render.Quad;         \
+   const tnl_line_func LineFunc = tnl->Driver.Render.Line;             \
+   const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
+   const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;             \
    const GLboolean stipple = ctx->Line.StippleFlag;            \
    (void) (LineFunc && TriangleFunc && QuadFunc);              \
    (void) elt; (void) mask; (void) sz; (void) stipple;
@@ -175,7 +175,7 @@ static void clip_elt_triangles( GLcontext *ctx,
                                GLuint flags )
 {
    TNLcontext *tnl = TNL_CONTEXT(ctx);
-   render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
+   tnl_render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
    struct vertex_buffer *VB = &tnl->vb;
    const GLuint * const elt = VB->Elts;
    GLubyte *mask = VB->ClipMask;
@@ -232,9 +232,9 @@ static void clip_elt_triangles( GLcontext *ctx,
    TNLcontext *tnl = TNL_CONTEXT(ctx);                         \
    struct vertex_buffer *VB = &tnl->vb;                                \
    const GLuint * const elt = VB->Elts;                                \
-   const line_func LineFunc = tnl->Driver.Render.Line;         \
-   const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;     \
-   const quad_func QuadFunc = tnl->Driver.Render.Quad;         \
+   const tnl_line_func LineFunc = tnl->Driver.Render.Line;             \
+   const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
+   const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;             \
    (void) (LineFunc && TriangleFunc && QuadFunc);              \
    (void) elt;
 
@@ -281,25 +281,25 @@ void _tnl_RenderClippedLine( GLcontext *ctx, GLuint ii, GLuint jj )
 /*              Clip and render whole vertex buffers                  */
 /**********************************************************************/
 
-points_func _gldSetupPoints[4] = {
+tnl_points_func _gldSetupPoints[4] = {
        gld_Points2D_DX7,
        gld_Points2D_DX7,
        gld_Points2D_DX7,
        gld_Points2D_DX7
 };
-line_func _gldSetupLine[4] = {
+tnl_line_func _gldSetupLine[4] = {
        gld_Line2DFlat_DX7,
        gld_Line2DSmooth_DX7,
        gld_Line2DFlat_DX7,
        gld_Line2DSmooth_DX7,
 };
-triangle_func _gldSetupTriangle[4] = {
+tnl_triangle_func _gldSetupTriangle[4] = {
        gld_Triangle2DFlat_DX7,
        gld_Triangle2DSmooth_DX7,
        gld_Triangle2DFlatExtras_DX7,
        gld_Triangle2DSmoothExtras_DX7
 };
-quad_func _gldSetupQuad[4] = {
+tnl_quad_func _gldSetupQuad[4] = {
        gld_Quad2DFlat_DX7,
        gld_Quad2DSmooth_DX7,
        gld_Quad2DFlatExtras_DX7,
@@ -318,7 +318,7 @@ static GLboolean _gld_mesa_render_stage_run(
        TNLcontext                              *tnl = TNL_CONTEXT(ctx);
        struct vertex_buffer    *VB = &tnl->vb;
        GLuint                                  new_inputs = stage->changed_inputs;
-       render_func                             *tab;
+       tnl_render_func                         *tab;
        GLint                                   pass = 0;
        GLD_pb_dx7                              *gldPB;
        DWORD                                   dwFlags;
index 871a651990a8c52d1ab86a869e49c32de227d6fc..e6e020fc7ce268e0b7f0ee24e94c369e324f1a40 100644 (file)
@@ -125,7 +125,7 @@ static GLboolean gld_d3d_render_stage_run(
        TNLcontext                              *tnl;
        struct vertex_buffer    *VB;
        GLuint                                  new_inputs;
-       render_func                             *tab;
+       tnl_render_func                         *tab;
        GLint                                   pass;
        GLD_pb_dx8                              *gldPB = &gld->PB3d;
 /*
index 083b9d4910a7df7a630a1486a2793a1a92d9638c..98adc6769ad14241b056f3800bc02683ddf81c3e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: gld_vb_mesa_render_dx8.c,v 1.1 2004/04/20 11:13:11 alanh Exp $ */
+/* $Id: gld_vb_mesa_render_dx8.c,v 1.2 2004/07/01 13:14:07 keithw Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -143,9 +143,9 @@ do {                                                        \
    const GLuint * const elt = VB->Elts;                                \
    const GLubyte *mask = VB->ClipMask;                         \
    const GLuint sz = VB->ClipPtr->size;                                \
-   const line_func LineFunc = tnl->Driver.Render.Line;         \
-   const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;     \
-   const quad_func QuadFunc = tnl->Driver.Render.Quad;         \
+   const tnl_line_func LineFunc = tnl->Driver.Render.Line;             \
+   const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
+   const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;             \
    const GLboolean stipple = ctx->Line.StippleFlag;            \
    (void) (LineFunc && TriangleFunc && QuadFunc);              \
    (void) elt; (void) mask; (void) sz; (void) stipple;
@@ -175,7 +175,7 @@ static void clip_elt_triangles( GLcontext *ctx,
                                GLuint flags )
 {
    TNLcontext *tnl = TNL_CONTEXT(ctx);
-   render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
+   tnl_render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
    struct vertex_buffer *VB = &tnl->vb;
    const GLuint * const elt = VB->Elts;
    GLubyte *mask = VB->ClipMask;
@@ -232,9 +232,9 @@ static void clip_elt_triangles( GLcontext *ctx,
    TNLcontext *tnl = TNL_CONTEXT(ctx);                         \
    struct vertex_buffer *VB = &tnl->vb;                                \
    const GLuint * const elt = VB->Elts;                                \
-   const line_func LineFunc = tnl->Driver.Render.Line;         \
-   const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;     \
-   const quad_func QuadFunc = tnl->Driver.Render.Quad;         \
+   const tnl_line_func LineFunc = tnl->Driver.Render.Line;             \
+   const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
+   const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;             \
    (void) (LineFunc && TriangleFunc && QuadFunc);              \
    (void) elt;
 
@@ -281,25 +281,25 @@ void _tnl_RenderClippedLine( GLcontext *ctx, GLuint ii, GLuint jj )
 /*              Clip and render whole vertex buffers                  */
 /**********************************************************************/
 
-points_func _gldSetupPoints[4] = {
+tnl_points_func _gldSetupPoints[4] = {
        gld_Points2D_DX8,
        gld_Points2D_DX8,
        gld_Points2D_DX8,
        gld_Points2D_DX8
 };
-line_func _gldSetupLine[4] = {
+tnl_line_func _gldSetupLine[4] = {
        gld_Line2DFlat_DX8,
        gld_Line2DSmooth_DX8,
        gld_Line2DFlat_DX8,
        gld_Line2DSmooth_DX8,
 };
-triangle_func _gldSetupTriangle[4] = {
+tnl_triangle_func _gldSetupTriangle[4] = {
        gld_Triangle2DFlat_DX8,
        gld_Triangle2DSmooth_DX8,
        gld_Triangle2DFlatExtras_DX8,
        gld_Triangle2DSmoothExtras_DX8
 };
-quad_func _gldSetupQuad[4] = {
+tnl_quad_func _gldSetupQuad[4] = {
        gld_Quad2DFlat_DX8,
        gld_Quad2DSmooth_DX8,
        gld_Quad2DFlatExtras_DX8,
@@ -318,7 +318,7 @@ static GLboolean _gld_mesa_render_stage_run(
        TNLcontext                              *tnl = TNL_CONTEXT(ctx);
        struct vertex_buffer    *VB = &tnl->vb;
        GLuint                                  new_inputs = stage->changed_inputs;
-       render_func                             *tab;
+       tnl_render_func                         *tab;
        GLint                                   pass = 0;
        GLD_pb_dx8                              *gldPB;
 
index 30650d6f9a9a534d48459005c077bb0b82c7bf5b..f19f2a5eaafdf1f342a0c300297cab9023cfc3c2 100644 (file)
@@ -125,7 +125,7 @@ static GLboolean gld_d3d_render_stage_run(
        TNLcontext                              *tnl;
        struct vertex_buffer    *VB;
        GLuint                                  new_inputs;
-       render_func                             *tab;
+       tnl_render_func                         *tab;
        GLint                                   pass;
        GLD_pb_dx9                              *gldPB = &gld->PB3d;
 /*
index 10e994c3c85a59e5026baaa4469ca5476ea02392..b55a417d7bed2d2b42a83d33f23172ebf6910339 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: gld_vb_mesa_render_dx9.c,v 1.1 2004/04/20 11:13:11 alanh Exp $ */
+/* $Id: gld_vb_mesa_render_dx9.c,v 1.2 2004/07/01 13:14:07 keithw Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -138,9 +138,9 @@ do {                                                        \
    const GLuint * const elt = VB->Elts;                                \
    const GLubyte *mask = VB->ClipMask;                         \
    const GLuint sz = VB->ClipPtr->size;                                \
-   const line_func LineFunc = tnl->Driver.Render.Line;         \
-   const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;     \
-   const quad_func QuadFunc = tnl->Driver.Render.Quad;         \
+   const tnl_line_func LineFunc = tnl->Driver.Render.Line;             \
+   const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
+   const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;             \
    const GLboolean stipple = ctx->Line.StippleFlag;            \
    (void) (LineFunc && TriangleFunc && QuadFunc);              \
    (void) elt; (void) mask; (void) sz; (void) stipple;
@@ -170,7 +170,7 @@ static void clip_elt_triangles( GLcontext *ctx,
                                GLuint flags )
 {
    TNLcontext *tnl = TNL_CONTEXT(ctx);
-   render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
+   tnl_render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
    struct vertex_buffer *VB = &tnl->vb;
    const GLuint * const elt = VB->Elts;
    GLubyte *mask = VB->ClipMask;
@@ -227,9 +227,9 @@ static void clip_elt_triangles( GLcontext *ctx,
    TNLcontext *tnl = TNL_CONTEXT(ctx);                         \
    struct vertex_buffer *VB = &tnl->vb;                                \
    const GLuint * const elt = VB->Elts;                                \
-   const line_func LineFunc = tnl->Driver.Render.Line;         \
-   const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;     \
-   const quad_func QuadFunc = tnl->Driver.Render.Quad;         \
+   const tnl_line_func LineFunc = tnl->Driver.Render.Line;             \
+   const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
+   const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;             \
    (void) (LineFunc && TriangleFunc && QuadFunc);              \
    (void) elt;
 
@@ -276,25 +276,25 @@ void _tnl_RenderClippedLine( GLcontext *ctx, GLuint ii, GLuint jj )
 /*              Clip and render whole vertex buffers                  */
 /**********************************************************************/
 
-points_func _gldSetupPoints[4] = {
+tnl_points_func _gldSetupPoints[4] = {
        gld_Points2D_DX9,
        gld_Points2D_DX9,
        gld_Points2D_DX9,
        gld_Points2D_DX9
 };
-line_func _gldSetupLine[4] = {
+tnl_line_func _gldSetupLine[4] = {
        gld_Line2DFlat_DX9,
        gld_Line2DSmooth_DX9,
        gld_Line2DFlat_DX9,
        gld_Line2DSmooth_DX9,
 };
-triangle_func _gldSetupTriangle[4] = {
+tnl_triangle_func _gldSetupTriangle[4] = {
        gld_Triangle2DFlat_DX9,
        gld_Triangle2DSmooth_DX9,
        gld_Triangle2DFlatExtras_DX9,
        gld_Triangle2DSmoothExtras_DX9
 };
-quad_func _gldSetupQuad[4] = {
+tnl_quad_func _gldSetupQuad[4] = {
        gld_Quad2DFlat_DX9,
        gld_Quad2DSmooth_DX9,
        gld_Quad2DFlatExtras_DX9,
@@ -313,7 +313,7 @@ static GLboolean _gld_mesa_render_stage_run(
        TNLcontext                              *tnl = TNL_CONTEXT(ctx);
        struct vertex_buffer    *VB = &tnl->vb;
        GLuint                                  new_inputs = stage->changed_inputs;
-       render_func                             *tab;
+       tnl_render_func                         *tab;
        GLint                                   pass = 0;
        GLD_pb_dx9                              *gldPB;
 
index ed58e35301c45e3ada20e1ea38c7efd5da6ef36d..0a5957b5a4faef0a5df011018e986a699229f15a 100644 (file)
@@ -909,7 +909,7 @@ static void fast_rgb_points( GLcontext* ctx, GLuint first, GLuint last )
 //---------------------------------------------------------------------------
 
 /* Return pointer to accelerated points function */
-extern points_func choose_points_function( GLcontext* ctx )
+extern tnl_points_func choose_points_function( GLcontext* ctx )
 {
   return NULL;
 }
@@ -923,7 +923,7 @@ static void fast_flat_rgb_line( GLcontext* ctx, GLuint v0,
 
 //---------------------------------------------------------------------------
 
-static line_func choose_line_function( GLcontext* ctx )
+static tnl_line_func choose_line_function( GLcontext* ctx )
 {
 }
 
index 1f46331be39c3298517f2b576750ad1796aef06d..d37bdf71cbc361cd78c6af50d6f3542da7361742 100644 (file)
@@ -41,8 +41,8 @@
 #define SS_UNFILLED_BIT            0x8
 #define SS_MAX_TRIFUNC      0x10
 
-static triangle_func tri_tab[SS_MAX_TRIFUNC];
-static quad_func     quad_tab[SS_MAX_TRIFUNC];
+static tnl_triangle_func tri_tab[SS_MAX_TRIFUNC];
+static tnl_quad_func     quad_tab[SS_MAX_TRIFUNC];
 
 
 static void _swsetup_render_line_tri( GLcontext *ctx,
index 7e1aaead88506dfd43f62e298e6299ecc113979a..47e71c38beb5732dc9c10bb980cf656fe8222344 100644 (file)
@@ -249,7 +249,7 @@ struct tnl_copied_vtx {
 #define VERT_BUFFER_SIZE 2048  /* 8kbytes */
 
 
-typedef void (*attrfv_func)( const GLfloat * );
+typedef void (*tnl_attrfv_func)( const GLfloat * );
 
 struct _tnl_dynfn {
    struct _tnl_dynfn *next, *prev;
@@ -288,7 +288,7 @@ struct tnl_vtx {
    GLuint counter, initial_counter;
    struct tnl_copied_vtx copied;
 
-   attrfv_func tabfv[_TNL_MAX_ATTR_CODEGEN+1][4]; /* plus 1 for ERROR_ATTRIB */
+   tnl_attrfv_func tabfv[_TNL_MAX_ATTR_CODEGEN+1][4]; /* plus 1 for ERROR_ATTRIB */
 
    struct _tnl_dynfn_lists cache;
    struct _tnl_dynfn_generators gen;
@@ -527,14 +527,17 @@ struct tnl_pipeline {
 struct tnl_clipspace;
 struct tnl_clipspace_attr;
 
-typedef void (*extract_func)( const struct tnl_clipspace_attr *a, GLfloat *out, 
-                             const GLubyte *v );
+typedef void (*tnl_extract_func)( const struct tnl_clipspace_attr *a, 
+                                 GLfloat *out, 
+                                 const GLubyte *v );
 
-typedef void (*insert_func)( const struct tnl_clipspace_attr *a, GLubyte *v, 
-                            const GLfloat *in );
+typedef void (*tnl_insert_func)( const struct tnl_clipspace_attr *a, 
+                                GLubyte *v, 
+                                const GLfloat *in );
 
-typedef void (*emit_func)( GLcontext *ctx, GLuint start, 
-                          GLuint end, void *dest );
+typedef void (*tnl_emit_func)( GLcontext *ctx, 
+                              GLuint start, 
+                              GLuint end, void *dest );
 
 
 /**
@@ -549,9 +552,9 @@ struct tnl_clipspace_attr
    GLuint vertattrsize;    /* size of the attribute in bytes */
    GLubyte *inputptr;
    GLuint inputstride;
-   insert_func *insert;
-   insert_func emit;
-   extract_func extract;
+   tnl_insert_func *insert;
+   tnl_insert_func emit;
+   tnl_extract_func extract;
    const GLfloat *vp;   /* NDC->Viewport mapping matrix */
 };
 
@@ -579,7 +582,7 @@ struct tnl_clipspace_codegen {
                                     GLint, GLint );
    GLboolean (*emit_const_ubyte)( struct tnl_clipspace_codegen *, 
                                  GLint, GLubyte );
-   emit_func (*emit_store_func)( struct tnl_clipspace_codegen * );
+   tnl_emit_func (*emit_store_func)( struct tnl_clipspace_codegen * );
    
    struct _tnl_dynfn codegen_list;
    
@@ -591,21 +594,21 @@ struct tnl_clipspace_codegen {
 
 
 
-typedef void (*points_func)( GLcontext *ctx, GLuint first, GLuint last );
-typedef void (*line_func)( GLcontext *ctx, GLuint v1, GLuint v2 );
-typedef void (*triangle_func)( GLcontext *ctx,
-                               GLuint v1, GLuint v2, GLuint v3 );
-typedef void (*quad_func)( GLcontext *ctx, GLuint v1, GLuint v2,
-                           GLuint v3, GLuint v4 );
-typedef void (*render_func)( GLcontext *ctx, GLuint start, GLuint count,
-                            GLuint flags );
-typedef void (*interp_func)( GLcontext *ctx,
-                            GLfloat t, GLuint dst, GLuint out, GLuint in,
-                            GLboolean force_boundary );
-typedef void (*copy_pv_func)( GLcontext *ctx, GLuint dst, GLuint src );
-typedef void (*setup_func)( GLcontext *ctx,
-                           GLuint start, GLuint end,
-                           GLuint new_inputs);
+typedef void (*tnl_points_func)( GLcontext *ctx, GLuint first, GLuint last );
+typedef void (*tnl_line_func)( GLcontext *ctx, GLuint v1, GLuint v2 );
+typedef void (*tnl_triangle_func)( GLcontext *ctx,
+                                  GLuint v1, GLuint v2, GLuint v3 );
+typedef void (*tnl_quad_func)( GLcontext *ctx, GLuint v1, GLuint v2,
+                              GLuint v3, GLuint v4 );
+typedef void (*tnl_render_func)( GLcontext *ctx, GLuint start, GLuint count,
+                                GLuint flags );
+typedef void (*tnl_interp_func)( GLcontext *ctx,
+                                GLfloat t, GLuint dst, GLuint out, GLuint in,
+                                GLboolean force_boundary );
+typedef void (*tnl_copy_pv_func)( GLcontext *ctx, GLuint dst, GLuint src );
+typedef void (*tnl_setup_func)( GLcontext *ctx,
+                               GLuint start, GLuint end,
+                               GLuint new_inputs);
 
 
 /**
@@ -625,9 +628,9 @@ struct tnl_clipspace
    struct tnl_clipspace_attr attr[_TNL_ATTRIB_MAX];
    GLuint attr_count;
 
-   emit_func emit;
-   interp_func interp;
-   copy_pv_func copy_pv;
+   tnl_emit_func emit;
+   tnl_interp_func interp;
+   tnl_copy_pv_func copy_pv;
 
    struct tnl_clipspace_codegen codegen;
 };
@@ -673,14 +676,14 @@ struct tnl_device_driver
        * modes accepted by glBegin().
        */
 
-      interp_func Interp;
+      tnl_interp_func Interp;
       /* The interp function is called by the clipping routines when we need
        * to generate an interpolated vertex.  All pertinant vertex ancilliary
        * data should be computed by interpolating between the 'in' and 'out'
        * vertices.
        */
 
-      copy_pv_func CopyPV;
+      tnl_copy_pv_func CopyPV;
       /* The copy function is used to make a copy of a vertex.  All pertinant
        * vertex attributes should be copied.
        */
@@ -693,16 +696,16 @@ struct tnl_device_driver
       void (*ClippedLine)( GLcontext *ctx, GLuint v0, GLuint v1 );
       /* Render a line between the two vertices given by indexes v0 and v1. */
 
-      points_func           Points; /* must now respect vb->elts */
-      line_func             Line;
-      triangle_func         Triangle;
-      quad_func             Quad;
+      tnl_points_func           Points; /* must now respect vb->elts */
+      tnl_line_func             Line;
+      tnl_triangle_func         Triangle;
+      tnl_quad_func             Quad;
       /* These functions are called in order to render points, lines,
        * triangles and quads.  These are only called via the T&L module.
        */
 
-      render_func          *PrimTabVerts;
-      render_func          *PrimTabElts;
+      tnl_render_func          *PrimTabVerts;
+      tnl_render_func          *PrimTabElts;
       /* Render whole unclipped primitives (points, lines, linestrips,
        * lineloops, etc).  The tables are indexed by the GL enum of the
        * primitive to be rendered.  RenderTabVerts is used for non-indexed
@@ -714,7 +717,7 @@ struct tnl_device_driver
       /* Reset the hardware's line stipple counter.
        */
 
-      setup_func BuildVertices;
+      tnl_setup_func BuildVertices;
       /* This function is called whenever new vertices are required for
        * rendering.  The vertices in question are those n such that start
        * <= n < end.  The new_inputs parameter indicates those fields of
index d356ee4532cf7a69f85d7890de3a243adc1102e8..9efb5b8d65a744a87b5786caa179b732a4ecc8dc 100644 (file)
@@ -64,8 +64,8 @@ extern const struct tnl_pipeline_stage *_tnl_default_pipeline[];
 
 /* Convenience routines provided by t_vb_render.c:
  */
-extern render_func _tnl_render_tab_elts[];
-extern render_func _tnl_render_tab_verts[];
+extern tnl_render_func _tnl_render_tab_elts[];
+extern tnl_render_func _tnl_render_tab_verts[];
 
 extern void _tnl_RenderClippedPolygon( GLcontext *ctx, 
                                       const GLuint *elts, GLuint n );
index 47a3142e441a94288512632b09aec7a53a787d32..1e3a6b02ee226789c87f86a1348002852a4ab371 100644 (file)
@@ -122,7 +122,7 @@ TAG(clip_line)( GLcontext *ctx, GLuint i, GLuint j, GLubyte mask )
 {
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    struct vertex_buffer *VB = &tnl->vb;
-   interp_func interp = tnl->Driver.Render.Interp;
+   tnl_interp_func interp = tnl->Driver.Render.Interp;
    GLfloat (*coord)[4] = VB->ClipPtr->data;
    GLuint ii = i, jj = j, p;
 
@@ -163,7 +163,7 @@ TAG(clip_tri)( GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLubyte mask )
 {
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    struct vertex_buffer *VB = &tnl->vb;
-   interp_func interp = tnl->Driver.Render.Interp;
+   tnl_interp_func interp = tnl->Driver.Render.Interp;
    GLfloat (*coord)[4] = VB->ClipPtr->data;
    GLuint pv = v2;
    GLuint vlist[2][MAX_CLIPPED_VERTICES];
@@ -216,7 +216,7 @@ TAG(clip_quad)( GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLuint v3,
 {
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    struct vertex_buffer *VB = &tnl->vb;
-   interp_func interp = tnl->Driver.Render.Interp;
+   tnl_interp_func interp = tnl->Driver.Render.Interp;
    GLfloat (*coord)[4] = VB->ClipPtr->data;
    GLuint pv = v3;
    GLuint vlist[2][MAX_CLIPPED_VERTICES];
index f8e41f5d9be6949bcd56a152349048a1c5224036..cbeb9d5f71fafd5aa75d8d0f1cc20636942e8b08 100644 (file)
@@ -123,9 +123,9 @@ do {                                                        \
    const GLuint * const elt = VB->Elts;                                \
    const GLubyte *mask = VB->ClipMask;                         \
    const GLuint sz = VB->ClipPtr->size;                                \
-   const line_func LineFunc = tnl->Driver.Render.Line;         \
-   const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;     \
-   const quad_func QuadFunc = tnl->Driver.Render.Quad;         \
+   const tnl_line_func LineFunc = tnl->Driver.Render.Line;             \
+   const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
+   const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;             \
    const GLboolean stipple = ctx->Line.StippleFlag;            \
    (void) (LineFunc && TriangleFunc && QuadFunc);              \
    (void) elt; (void) mask; (void) sz; (void) stipple;
@@ -155,7 +155,7 @@ static void clip_elt_triangles( GLcontext *ctx,
                                GLuint flags )
 {
    TNLcontext *tnl = TNL_CONTEXT(ctx);
-   render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
+   tnl_render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES];
    struct vertex_buffer *VB = &tnl->vb;
    const GLuint * const elt = VB->Elts;
    GLubyte *mask = VB->ClipMask;
@@ -212,9 +212,9 @@ static void clip_elt_triangles( GLcontext *ctx,
    TNLcontext *tnl = TNL_CONTEXT(ctx);                         \
    struct vertex_buffer *VB = &tnl->vb;                                \
    const GLuint * const elt = VB->Elts;                                \
-   const line_func LineFunc = tnl->Driver.Render.Line;         \
-   const triangle_func TriangleFunc = tnl->Driver.Render.Triangle;     \
-   const quad_func QuadFunc = tnl->Driver.Render.Quad;         \
+   const tnl_line_func LineFunc = tnl->Driver.Render.Line;             \
+   const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
+   const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad;             \
    const GLboolean stipple = ctx->Line.StippleFlag;            \
    (void) (LineFunc && TriangleFunc && QuadFunc);              \
    (void) elt; (void) stipple
@@ -269,7 +269,7 @@ static GLboolean run_render( GLcontext *ctx,
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    struct vertex_buffer *VB = &tnl->vb;
    GLuint new_inputs = stage->changed_inputs;
-   render_func *tab;
+   tnl_render_func *tab;
    GLint pass = 0;
 
    /* Allow the drivers to lock before projected verts are built so
index 0adbfede2d5321946bea10f6602b8cb95d983ee3..28b81c1d371e66d867c149f60e82cb589965097e 100644 (file)
@@ -588,8 +588,8 @@ static void extract_1ub_1f( const struct tnl_clipspace_attr *a, GLfloat *out, co
 
 static struct {
    const char *name;
-   extract_func extract;
-   insert_func insert[4];
+   tnl_extract_func extract;
+   tnl_insert_func insert[4];
    const GLuint attrsize;
 } format_info[EMIT_MAX] = {
 
index dda3ab0dad1ed1868680b24689c9c697d3cc73c4..6e0813e79c1383a12fba51764e7a531e0ca886ca 100644 (file)
@@ -125,7 +125,7 @@ extern void _tnl_invalidate_vertices( GLcontext *ctx, GLuint newinputs );
 
 extern void _tnl_invalidate_vertex_state( GLcontext *ctx, GLuint new_state );
 
-extern emit_func _tnl_codegen_emit( GLcontext *ctx );
+extern tnl_emit_func _tnl_codegen_emit( GLcontext *ctx );
 
 #define REG_IN   (0<<16)
 #define REG_OUT  (1<<16)
index d1ef7cd53c0f4481770bb703cd37e59550794110..9d18b23fc78902dde621a8cf3f3a0e1811586a6b 100644 (file)
@@ -228,7 +228,7 @@ static GLboolean print_attr_footer( struct tnl_clipspace_codegen *p )
       emit(p, "      }\n");
 }
 
-static emit_func print_store_func( struct tnl_clipspace_codegen *p ) 
+static tnl_emit_func print_store_func( struct tnl_clipspace_codegen *p ) 
 {
    fprintf(stderr, "%s: emitted:\n%s\n", __FUNCTION__, p->buf);
    
index 3c99b0411ea682be6af3777ae554266843793fcd..e3e7f2ef1d2c89d8ffb484ce829bf0142e024c53 100644 (file)
@@ -447,7 +447,7 @@ static struct {
  * the pipeline has been run.
  */
 
-emit_func _tnl_codegen_emit( GLcontext *ctx )
+tnl_emit_func _tnl_codegen_emit( GLcontext *ctx )
 {
    struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb;
    struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
index 1bc84ee53d370d369b3147a2607eb0ba6b5cd0e6..e75ac5b3397963456c3e87b0ada6f8a6a61d9ba1 100644 (file)
@@ -45,8 +45,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 static void reset_attrfv( TNLcontext *tnl );
 
-static attrfv_func choose[_TNL_MAX_ATTR_CODEGEN+1][4]; /* +1 for ERROR_ATTRIB */
-static attrfv_func generic_attr_func[_TNL_MAX_ATTR_CODEGEN][4];
+static tnl_attrfv_func choose[_TNL_MAX_ATTR_CODEGEN+1][4]; /* +1 for ERROR_ATTRIB */
+static tnl_attrfv_func generic_attr_func[_TNL_MAX_ATTR_CODEGEN][4];
 
 
 /* Close off the last primitive, execute the buffer, restart the
@@ -359,7 +359,7 @@ static struct _tnl_dynfn *lookup( struct _tnl_dynfn *l, GLuint key )
 }
 
 
-static attrfv_func do_codegen( GLcontext *ctx, GLuint attr, GLuint sz )
+static tnl_attrfv_func do_codegen( GLcontext *ctx, GLuint attr, GLuint sz )
 {
    TNLcontext *tnl = TNL_CONTEXT(ctx); 
    struct _tnl_dynfn *dfn = 0;
@@ -382,7 +382,7 @@ static attrfv_func do_codegen( GLcontext *ctx, GLuint attr, GLuint sz )
    }
 
    if (dfn) 
-      return (attrfv_func) dfn->code;
+      return (tnl_attrfv_func) dfn->code;
    else
       return 0;
 }
@@ -391,7 +391,7 @@ static attrfv_func do_codegen( GLcontext *ctx, GLuint attr, GLuint sz )
  * entrypoint is called for the first time.
  */
 
-static attrfv_func do_choose( GLuint attr, GLuint sz )
+static tnl_attrfv_func do_choose( GLuint attr, GLuint sz )
 { 
    GET_CURRENT_CONTEXT( ctx ); 
    TNLcontext *tnl = TNL_CONTEXT(ctx); 
@@ -432,7 +432,7 @@ static attrfv_func do_choose( GLuint attr, GLuint sz )
 #define CHOOSE( ATTR, N )                              \
 static void choose_##ATTR##_##N( const GLfloat *v )    \
 {                                                      \
-   attrfv_func f = do_choose(ATTR, N);                 \
+   tnl_attrfv_func f = do_choose(ATTR, N);                     \
    f( v );                                             \
 }
 
index 97d5cf55638e7ff7c8f44ec7d6a37e2b090eeb7c..9818c082b8020f06742c4818de006220606e45d4 100644 (file)
@@ -72,7 +72,7 @@ extern GLboolean *_tnl_import_current_edgeflag( GLcontext *ctx,
  */
 extern void _tnl_generic_exec_vtxfmt_init( GLcontext *ctx );
 
-extern void _tnl_generic_attr_table_init( attrfv_func (*tab)[4] );
+extern void _tnl_generic_attr_table_init( tnl_attrfv_func (*tab)[4] );
 
 /* t_vtx_x86.c:
  */
@@ -80,8 +80,8 @@ extern void _tnl_InitX86Codegen( struct _tnl_dynfn_generators *gen );
 
 extern void _tnl_x86_exec_vtxfmt_init( GLcontext *ctx );
 
-extern void _tnl_x86choosers( attrfv_func (*choose)[4],
-                             attrfv_func (*do_choose)( GLuint attr,
+extern void _tnl_x86choosers( tnl_attrfv_func (*choose)[4],
+                             tnl_attrfv_func (*do_choose)( GLuint attr,
                                                        GLuint sz ));
 
 
index 323dca5cd7fb43753f0bd22131ea3d3fa0c6fb62..daa7deace37e3b31f0f0b54c2628cb5251aad061 100644 (file)
@@ -113,7 +113,7 @@ ATTRS( 13 )
 ATTRS( 14 )
 ATTRS( 15 )
 
-void _tnl_generic_attr_table_init( attrfv_func (*tab)[4] )
+void _tnl_generic_attr_table_init( tnl_attrfv_func (*tab)[4] )
 {
    INIT( tab, 0 );
    INIT( tab, 1 );
index 53265d23759c67e05c7db243e37e3b20b82f7c0c..59a869879a516289ede3480c418fe69fa6d7ce39 100644 (file)
@@ -337,8 +337,8 @@ void _tnl_x86_exec_vtxfmt_init( GLcontext *ctx )
 /* Install the codegen'ed choosers.
  * We should keep a list and free them in the end...
  */
-void _tnl_x86choosers( attrfv_func (*choose)[4],
-                      attrfv_func (*do_choose)( GLuint attr,
+void _tnl_x86choosers( tnl_attrfv_func (*choose)[4],
+                      tnl_attrfv_func (*do_choose)( GLuint attr,
                                                 GLuint sz ))
 {
    int attr, size;
@@ -354,7 +354,7 @@ void _tnl_x86choosers( attrfv_func (*choose)[4],
          FIXUP(code, 0, 0, attr);
          FIXUP(code, 0, 1, size + 1);
          FIXUPREL(code, 0, 2, do_choose);
-         choose[attr][size] = (attrfv_func)code;
+         choose[attr][size] = (tnl_attrfv_func)code;
       }
    }
 }
@@ -373,8 +373,8 @@ void _tnl_x86_exec_vtxfmt_init( GLcontext *ctx )
 }
 
 
-void _tnl_x86choosers( attrfv_func (*choose)[4],
-                      attrfv_func (*do_choose)( GLuint attr,
+void _tnl_x86choosers( tnl_attrfv_func (*choose)[4],
+                      tnl_attrfv_func (*do_choose)( GLuint attr,
                                                 GLuint sz ))
 {
    (void) choose;
index 43d50308566dc7a277e7a49c33850d9e2d1cd33f..5ba6920804e2a63dd9b28e99036b01a85ebc6f89 100644 (file)
@@ -633,7 +633,7 @@ static void TAG(render_noop)( GLcontext *ctx,
 
 
 
-static render_func TAG(render_tab_verts)[GL_POLYGON+2] =
+static tnl_render_func TAG(render_tab_verts)[GL_POLYGON+2] =
 {
    TAG(render_points_verts),
    TAG(render_lines_verts),
@@ -1121,7 +1121,7 @@ static void TAG(render_quads_elts)( GLcontext *ctx,
 
 
 
-static render_func TAG(render_tab_elts)[GL_POLYGON+2] =
+static tnl_render_func TAG(render_tab_elts)[GL_POLYGON+2] =
 {
    TAG(render_points_elts),
    TAG(render_lines_elts),
index 46a35de06a9d3a9719c9f99613a022a8ad4309a0..b6eb71c56741ad69d079fb811c633d9e88da217c 100644 (file)
@@ -516,7 +516,7 @@ static void TAG(render_noop)( GLcontext *ctx,
 
 
 
-static render_func TAG(render_tab_verts)[GL_POLYGON+2] =
+static tnl_render_func TAG(render_tab_verts)[GL_POLYGON+2] =
 {
    TAG(render_points_verts),
    TAG(render_lines_verts),
@@ -898,7 +898,7 @@ static void TAG(render_quads_elts)( GLcontext *ctx,
 
 
 
-static render_func TAG(render_tab_elts)[GL_POLYGON+2] =
+static tnl_render_func TAG(render_tab_elts)[GL_POLYGON+2] =
 {
    TAG(render_points_elts),
    TAG(render_lines_elts),