Replace the flags Mesa was using for ctx->NewState with a new set
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 30 Oct 2000 13:31:59 +0000 (13:31 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 30 Oct 2000 13:31:59 +0000 (13:31 +0000)
commita96308c37db0bc0086a017d318bc3504aa5f0b1a
tree0010de3aa19901acf13b57e57e7ba465abffa95e
parenta4575499679d9d91055a35c7673b81872ec127cb
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.
35 files changed:
src/mesa/drivers/glide/fxdd.c
src/mesa/drivers/glide/fxddtex.c
src/mesa/drivers/glide/fxdrv.h
src/mesa/drivers/x11/xm_api.c
src/mesa/drivers/x11/xm_tri.c
src/mesa/main/accum.c
src/mesa/main/attrib.c
src/mesa/main/blend.c
src/mesa/main/buffers.c
src/mesa/main/clip.c
src/mesa/main/colortab.c
src/mesa/main/context.c
src/mesa/main/convolve.c
src/mesa/main/dd.h
src/mesa/main/depth.c
src/mesa/main/enable.c
src/mesa/main/eval.c
src/mesa/main/extensions.c
src/mesa/main/extensions.h
src/mesa/main/feedback.c
src/mesa/main/fog.c
src/mesa/main/get.c
src/mesa/main/hint.c
src/mesa/main/light.c
src/mesa/main/lines.c
src/mesa/main/matrix.c
src/mesa/main/pixel.c
src/mesa/main/points.c
src/mesa/main/polygon.c
src/mesa/main/state.c
src/mesa/main/stencil.c
src/mesa/main/teximage.c
src/mesa/main/texobj.c
src/mesa/main/texstate.c
src/mesa/main/varray.c