-/* $Id: enums.c,v 1.10 2001/01/06 22:46:13 gareth Exp $ */
+/* $Id: enums.c,v 1.11 2001/01/17 02:49:38 keithw Exp $ */
/*
* Mesa 3-D graphics library
* BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Author:
+ * Keith Whitwell <keithw@valinux.com>
*/
}
-#if 0
-int main()
-{
- int i;
- static const char *test[] = {
- "GL_POLYGON",
- "GL_TRUE",
- "GL_BANANA",
- "GL_REFLECTION_MAP_NV",
- };
-
- for (i = 0 ; i < Elements(test) ; i++) {
- int d = gl_lookup_enum_by_name( test[i] );
- printf("%s --> %d --> %s\n", test[i], d, gl_lookup_enum_by_nr( d ));
- }
-}
-#endif
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)
else
funcindex = 0;
+/* printSetupFlags("software setup func", funcindex); */
swsetup->BuildProjVerts = setup_func[funcindex];
ASSERT(setup_func[funcindex] != rs_invalid);
}
-/* $Id: t_pipeline.c,v 1.9 2001/01/14 06:14:21 keithw Exp $ */
+/* $Id: t_pipeline.c,v 1.10 2001/01/17 02:49:39 keithw Exp $ */
/*
* Mesa 3-D graphics library
}
if (stage[i].active) {
- if (stage[i].changed_inputs)
+ if (stage[i].changed_inputs)
changed_inputs |= stage[i].outputs;
if (running) {
-/* fprintf(stderr, "run %s\n", stage[i].name); */
running = stage[i].run( ctx, &stage[i] );
+ stage[i].changed_inputs = 0;
}
}
}
-/* $Id: t_vb_cliptmp.h,v 1.6 2001/01/13 05:48:26 keithw Exp $ */
+/* $Id: t_vb_cliptmp.h,v 1.7 2001/01/17 02:49:39 keithw Exp $ */
/*
* Mesa 3-D graphics library
}
}
- TAG(build_proj_verts)( ctx );
-
if ((ctx->_TriangleCaps & DD_FLATSHADE) && j != jj)
VB->copypvfunc( ctx, jj, j );
+ TAG(build_proj_verts)( ctx );
+
/* Render the new line.
*/
ctx->Driver.LineFunc( ctx, ii, jj );
-/* $Id: t_vb_lighttmp.h,v 1.2 2001/01/03 15:59:30 brianp Exp $ */
+/* $Id: t_vb_lighttmp.h,v 1.3 2001/01/17 02:49:39 keithw Exp $ */
/*
* Mesa 3-D graphics library
if (IDX & LIGHT_TWOSIDE)
VB->ColorPtr[1] = &store->LitColor[1];
+ if (stage->changed_inputs == 0)
+ return;
+
if ( CHECK_COLOR_MATERIAL(j) )
gl_update_color_material( ctx, *CMcolor );
if (IDX & LIGHT_TWOSIDE)
VB->IndexPtr[1] = &store->LitIndex[1];
+ if (stage->changed_inputs == 0)
+ return;
+
indexResult[0] = VB->IndexPtr[0]->data;
indexResult[1] = VB->IndexPtr[1]->data;