diff options
Diffstat (limited to 'src/mesa/swrast_setup')
-rw-r--r-- | src/mesa/swrast_setup/ss_vb.c | 15 |
1 files changed, 15 insertions, 0 deletions
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); } |