diff options
author | Keith Whitwell <[email protected]> | 2001-08-13 22:15:54 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-08-13 22:15:54 +0000 |
commit | c8a27838a0b9e59d5c875f92202fccf49a0a3e44 (patch) | |
tree | 4a13cf4ac0059dfe309b67f977650e83950a746c /src/mesa/tnl/t_array_import.c | |
parent | d922109eb37e943661f1c88c6a97284f6b6267ea (diff) |
Removed optimizations (this code is now seldom used)
Diffstat (limited to 'src/mesa/tnl/t_array_import.c')
-rw-r--r-- | src/mesa/tnl/t_array_import.c | 109 |
1 files changed, 1 insertions, 108 deletions
diff --git a/src/mesa/tnl/t_array_import.c b/src/mesa/tnl/t_array_import.c index 56b4641de01..513e8931fc1 100644 --- a/src/mesa/tnl/t_array_import.c +++ b/src/mesa/tnl/t_array_import.c @@ -1,4 +1,4 @@ -/* $Id: t_array_import.c,v 1.17 2001/05/17 11:33:33 keithw Exp $ */ +/* $Id: t_array_import.c,v 1.18 2001/08/13 22:15:54 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -388,110 +388,3 @@ void _tnl_vb_bind_arrays( GLcontext *ctx, GLint start, GLsizei count ) } - - -/* Function to fill an immediate struct with the effects of - * consecutive calls to ArrayElement with consecutive indices. Used - * for display lists and very large fan-like primitives only. - */ -void _tnl_fill_immediate_drawarrays( GLcontext *ctx, struct immediate *IM, - GLuint start, GLuint count ) -{ - TNLcontext *tnl = TNL_CONTEXT(ctx); - GLuint required = ctx->Array._Enabled; - GLuint n = count - start; - GLuint i; - - if (!ctx->CompileFlag) - required &= tnl->pipeline.inputs; - - if (MESA_VERBOSE&VERBOSE_IMMEDIATE) - fprintf(stderr, "exec_full_array_elements %d .. %d\n", start, count); - - _math_trans_4f( IM->Obj + IM->Start, - ctx->Array.Vertex.Ptr, - ctx->Array.Vertex.StrideB, - ctx->Array.Vertex.Type, - ctx->Array.Vertex.Size, - start, n ); - - if (ctx->Array.Vertex.Size == 4) - required |= VERT_OBJ_234; - else if (ctx->Array.Vertex.Size == 3) - required |= VERT_OBJ_23; - - - if (required & VERT_NORM) { - _math_trans_3f( IM->Normal + IM->Start, - ctx->Array.Normal.Ptr, - ctx->Array.Normal.StrideB, - ctx->Array.Normal.Type, - start, n ); - } - - if (required & VERT_EDGE) { - _math_trans_1ub( IM->EdgeFlag + IM->Start, - ctx->Array.EdgeFlag.Ptr, - ctx->Array.EdgeFlag.StrideB, - ctx->Array.EdgeFlag.Type, - start, n ); - } - - if (required & VERT_RGBA) { - _math_trans_4f( IM->Color + IM->Start, - ctx->Array.Color.Ptr, - ctx->Array.Color.StrideB, - ctx->Array.Color.Type, - ctx->Array.Color.Size, - start, n ); - } - - if (required & VERT_SPEC_RGB) { - _math_trans_4f( IM->SecondaryColor + IM->Start, - ctx->Array.SecondaryColor.Ptr, - ctx->Array.SecondaryColor.StrideB, - ctx->Array.SecondaryColor.Type, - ctx->Array.SecondaryColor.Size, - start, n ); - } - - if (required & VERT_FOG_COORD) { - _math_trans_1f( IM->FogCoord + IM->Start, - ctx->Array.FogCoord.Ptr, - ctx->Array.FogCoord.StrideB, - ctx->Array.FogCoord.Type, - start, n ); - } - - if (required & VERT_INDEX) { - _math_trans_1ui( IM->Index + IM->Start, - ctx->Array.Index.Ptr, - ctx->Array.Index.StrideB, - ctx->Array.Index.Type, - start, n ); - } - - if (required & VERT_TEX_ANY) { - for (i = 0 ; i < ctx->Const.MaxTextureUnits ; i++) { - if (required & VERT_TEX(i)) { - _math_trans_4f( IM->TexCoord[i] + IM->Start, - ctx->Array.TexCoord[i].Ptr, - ctx->Array.TexCoord[i].StrideB, - ctx->Array.TexCoord[i].Type, - ctx->Array.TexCoord[i].Size, - start, n ); - - if (ctx->Array.TexCoord[i].Size == 4) - IM->TexSize |= TEX_SIZE_4(i); - else if (ctx->Array.TexCoord[i].Size == 3) - IM->TexSize |= TEX_SIZE_3(i); - } - } - } - - IM->Count = IM->Start + n; - IM->Flag[IM->Start] &= IM->ArrayEltFlags; - IM->Flag[IM->Start] |= required; - for (i = IM->Start+1 ; i < IM->Count ; i++) - IM->Flag[i] = required; -} |