mesa: Move RasterDiscard to toplevel of gl_context.
authorPaul Berry <stereotype441@gmail.com>
Wed, 21 Dec 2011 00:18:39 +0000 (16:18 -0800)
committerPaul Berry <stereotype441@gmail.com>
Wed, 21 Dec 2011 21:33:31 +0000 (13:33 -0800)
commitaee96806f049c17384a8edc11acce76257d98a57
tree59c1eda366888295e188e18858b146097035c17f
parent636f2fc46c83d471b60b96bca1ced0c78b3415b5
mesa: Move RasterDiscard to toplevel of gl_context.

Previously we were storing the RasterDiscard flag (for
GL_RASTERIZER_DISCARD) in gl_context::TransformFeedback.  This was
confusing, because we use the _NEW_TRANSFORM flag (not
_NEW_TRANSFORM_FEEDBACK) to track state updates to it, and because
rasterizer discard has effects even when transform feedback is not in
use.

This patch makes RasterDiscard a toplevel element in gl_context rather
than a subfield of gl_context::TransformFeedback.

Note: We can't put RasterDiscard inside gl_context::Transform, since
all items inside gl_context::Transform need to be pieces of state that
are saved and restored using PushAttrib and PopAttrib.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/main/accum.c
src/mesa/main/clear.c
src/mesa/main/drawpix.c
src/mesa/main/enable.c
src/mesa/main/get.c
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_atom_rasterizer.c