From a96308c37db0bc0086a017d318bc3504aa5f0b1a Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 30 Oct 2000 13:31:59 +0000 Subject: Replace the flags Mesa was using for ctx->NewState with a new set based on the GL attribute groups. Introduced constants describing the circumstances under which some key derived values can change: _SWRAST_NEW_RASTERMASK -- ctx->RasterMask _SWRAST_NEW_TRIANGLE -- The software rasterizer's triangle function _DD_NEW_FEEDBACK -- the 'DD_FEEDBACK' bit in ctx->TriangleCaps These are helpful in deciding whether you need to recalculate state if your recalculation involves reference to a derived value. --- src/mesa/drivers/x11/xm_tri.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/x11/xm_tri.c') diff --git a/src/mesa/drivers/x11/xm_tri.c b/src/mesa/drivers/x11/xm_tri.c index 5392c0f353..b0d134a259 100644 --- a/src/mesa/drivers/x11/xm_tri.c +++ b/src/mesa/drivers/x11/xm_tri.c @@ -1,4 +1,4 @@ -/* $Id: xm_tri.c,v 1.4 2000/09/28 22:44:32 brianp Exp $ */ +/* $Id: xm_tri.c,v 1.5 2000/10/30 13:32:03 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -106,6 +106,7 @@ static void smooth_TRUECOLOR_z_triangle( GLcontext *ctx, { \ GLint i, xx = LEFT, yy = FLIP(xmesa->xm_buffer, Y); \ GLint len = RIGHT-LEFT; \ + (void) fffog; \ for (i=0;ixm_buffer,Y), len = RIGHT-LEFT; \ + (void) fffog; \ for (i=0;ixm_buffer,Y), len = RIGHT-LEFT; \ XDITHER_SETUP(yy); \ + (void) fffog; \ for (i=0;ixm_buffer,Y), len = RIGHT-LEFT; \ XDITHER_SETUP(yy); \ + (void) fffog; \ for (i=0;ixm_buffer,Y), len = RIGHT-LEFT; \ + (void) fffog; \ for (i=0;ixm_buffer,Y), len = RIGHT-LEFT; \ + (void) fffog; \ for (i=0;ixm_buffer,Y), len = RIGHT-LEFT; \ + (void) fffog; \ for (i=0;ixm_buffer, Y)); \ + (void) fffog; \ for (i=0;ixm_buffer,Y), len = RIGHT-LEFT; \ FLAT_DITHER_ROW_SETUP(yy); \ + (void) fffog; \ for (i=0;ixm_buffer,Y), len = RIGHT-LEFT; \ + (void) fffog; \ for (i=0;i