From c0bcd2ca99609fe8b6e992e2277ef8612d46fdfe Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 17 Jan 2001 02:49:38 +0000 Subject: Fixes for performance bug on compiled array element paths. --- src/mesa/swrast_setup/ss_vb.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/mesa/swrast_setup') diff --git a/src/mesa/swrast_setup/ss_vb.c b/src/mesa/swrast_setup/ss_vb.c index f6720dc2f7e..d2cfc6a4f98 100644 --- a/src/mesa/swrast_setup/ss_vb.c +++ b/src/mesa/swrast_setup/ss_vb.c @@ -242,6 +242,20 @@ _swsetup_vb_init( GLcontext *ctx ) setup_func[INDEX|TEX0|FOG|POINT] = rs_index_tex0_fog_point; } +static void printSetupFlags(char *msg, GLuint flags ) +{ + fprintf(stderr, "%s(%x): %s%s%s%s%s%s%s\n", + msg, + (int)flags, + (flags & COLOR) ? "color, " : "", + (flags & INDEX) ? "index, " : "", + (flags & TEX0) ? "tex0, " : "", + (flags & MULTITEX) ? "multitex, " : "", + (flags & SPEC) ? "spec, " : "", + (flags & FOG) ? "fog, " : "", + (flags & POINT) ? "point, " : ""); +} + void _swsetup_choose_rastersetup_func(GLcontext *ctx) @@ -281,6 +295,7 @@ _swsetup_choose_rastersetup_func(GLcontext *ctx) else funcindex = 0; +/* printSetupFlags("software setup func", funcindex); */ swsetup->BuildProjVerts = setup_func[funcindex]; ASSERT(setup_func[funcindex] != rs_invalid); } -- cgit v1.2.3