diff options
author | Gareth Hughes <[email protected]> | 2001-03-30 14:44:43 +0000 |
---|---|---|
committer | Gareth Hughes <[email protected]> | 2001-03-30 14:44:43 +0000 |
commit | 5e23af22f708a66695c0e44e599c26f02d8d4dcd (patch) | |
tree | c01158b3ff58369e296a395c91c2dd6be0a12071 /src/mesa/math/m_debug_norm.c | |
parent | afc5699b08b7eb4d29f2872c308800f2ae43d6b0 (diff) |
Remove all traces of CULL_MASK_ACTIVE.
Diffstat (limited to 'src/mesa/math/m_debug_norm.c')
-rw-r--r-- | src/mesa/math/m_debug_norm.c | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/src/mesa/math/m_debug_norm.c b/src/mesa/math/m_debug_norm.c index 45532475b3a..f1b702f02cd 100644 --- a/src/mesa/math/m_debug_norm.c +++ b/src/mesa/math/m_debug_norm.c @@ -1,4 +1,4 @@ -/* $Id: m_debug_norm.c,v 1.6 2001/03/29 06:46:27 gareth Exp $ */ +/* $Id: m_debug_norm.c,v 1.7 2001/03/30 14:44:43 gareth Exp $ */ /* * Mesa 3-D graphics library @@ -113,7 +113,7 @@ static char *norm_strings[8] = { }; -/* ================================================================ +/* ============================================================= * Reference transformations */ @@ -121,7 +121,6 @@ static void ref_norm_transform_rescale( const GLmatrix *mat, GLfloat scale, const GLvector3f *in, const GLfloat *lengths, - const GLubyte mask[], GLvector3f *dest ) { GLuint i; @@ -129,7 +128,6 @@ static void ref_norm_transform_rescale( const GLmatrix *mat, const GLfloat *m = mat->inv; GLfloat (*out)[3] = (GLfloat (*)[3])dest->start; - (void) mask; (void) lengths; for ( i = 0 ; i < in->count ; i++ ) { @@ -146,7 +144,6 @@ static void ref_norm_transform_normalize( const GLmatrix *mat, GLfloat scale, const GLvector3f *in, const GLfloat *lengths, - const GLubyte mask[], GLvector3f *dest ) { GLuint i; @@ -154,8 +151,6 @@ static void ref_norm_transform_normalize( const GLmatrix *mat, const GLfloat *m = mat->inv; GLfloat (*out)[3] = (GLfloat (*)[3])dest->start; - (void) mask; - for ( i = 0 ; i < in->count ; i++ ) { GLfloat t[3]; @@ -182,7 +177,7 @@ static void ref_norm_transform_normalize( const GLmatrix *mat, } -/* ================================================================ +/* ============================================================= * Normal transformation tests */ @@ -268,20 +263,20 @@ static int test_norm_function( normal_func func, int mtype, long *cycles ) ref2->flags = 0; if ( norm_normalize_types[mtype] == 0 ) { - ref_norm_transform_rescale( mat, scale, source, NULL, NULL, ref ); + ref_norm_transform_rescale( mat, scale, source, NULL, ref ); } else { - ref_norm_transform_normalize( mat, scale, source, NULL, NULL, ref ); - ref_norm_transform_normalize( mat, scale, source, length, NULL, ref2 ); + ref_norm_transform_normalize( mat, scale, source, NULL, ref ); + ref_norm_transform_normalize( mat, scale, source, length, ref2 ); } if ( mesa_profile ) { BEGIN_RACE( *cycles ); - func( mat, scale, source, NULL, NULL, dest ); + func( mat, scale, source, NULL, dest ); END_RACE( *cycles ); - func( mat, scale, source, length, NULL, dest2 ); + func( mat, scale, source, length, dest2 ); } else { - func( mat, scale, source, NULL, NULL, dest ); - func( mat, scale, source, length, NULL, dest2 ); + func( mat, scale, source, NULL, dest ); + func( mat, scale, source, length, dest2 ); } for ( i = 0 ; i < TEST_COUNT ; i++ ) { @@ -327,7 +322,7 @@ static int test_norm_function( normal_func func, int mtype, long *cycles ) void _math_test_all_normal_transform_functions( char *description ) { int mtype; - long benchmark_tab[0xf][0x4]; + long benchmark_tab[0xf]; static int first_time = 1; if ( first_time ) { @@ -348,8 +343,8 @@ void _math_test_all_normal_transform_functions( char *description ) #endif for ( mtype = 0 ; mtype < 8 ; mtype++ ) { - normal_func func = _mesa_normal_tab[norm_types[mtype]][0]; - long *cycles = &(benchmark_tab[mtype][0]); + normal_func func = _mesa_normal_tab[norm_types[mtype]]; + long *cycles = &benchmark_tab[mtype]; if ( test_norm_function( func, mtype, cycles ) == 0 ) { char buf[100]; @@ -360,7 +355,7 @@ void _math_test_all_normal_transform_functions( char *description ) #ifdef RUN_DEBUG_BENCHMARK if ( mesa_profile ) { - printf( " %li\t", benchmark_tab[mtype][0] ); + printf( " %li\t", benchmark_tab[mtype] ); printf( " | [%s]\n", norm_strings[mtype] ); } #endif |