[Mesa-dev] [PATCH 1/5] mesa: Save and restore GL_RASTERIZER_DISCARD state during meta ops.

Brian Paul brian.e.paul at gmail.com
Thu Dec 22 09:07:13 PST 2011


On Wed, Dec 21, 2011 at 2:39 PM, Paul Berry <stereotype441 at gmail.com> wrote:
> During meta-operations (such as _mesa_meta_GenerateMipmap()), we need
> to be able to draw even if GL_RASTERIZER_DISCARD is enabled.  This
> patch causes _mesa_meta_begin() to save the state of
> GL_RASTERIZER_DISCARD and disable it (so that drawing can be done
> during the meta-op), and causes _mesa_meta_end() to restore it.
>
> Fixes piglit test "EXT_transform_feedback/generatemipmap discard" on
> i965 Gen6.


Reviewed-by: Brian Paul <brianp at vmare.com>


More information about the mesa-dev mailing list