mesa: Respect GL_RASTERIZER_DISCARD for various meta-type operations.
authorEric Anholt <eric@anholt.net>
Fri, 30 Sep 2011 06:13:44 +0000 (23:13 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 2 Oct 2011 05:16:07 +0000 (22:16 -0700)
commite7c2b711a3b01cbeb0bf93d5442599457e7f8f51
tree641814c96430487d478587cc1052c91075e03a37
parent3a1ba094f45b3df9b5b4449fcac926b844aca7a4
mesa: Respect GL_RASTERIZER_DISCARD for various meta-type operations.

From the EXT_transform_feedback spec:

    Primitives can be optionally discarded before rasterization by calling
    Enable and Disable with RASTERIZER_DISCARD_EXT. When enabled, primitives
    are discared right before the rasterization stage, but after the optional
    transform feedback stage. When disabled, primitives are passed through to
    the rasterization stage to be processed normally. RASTERIZER_DISCARD_EXT
    applies to the DrawPixels, CopyPixels, Bitmap, Clear and Accum commands as
    well.

And the GL 3.2 spec says it applies to ClearBuffer* as well.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/accum.c
src/mesa/main/clear.c
src/mesa/main/drawpix.c