mesa: Track changes to transform feedback state.
authorPaul Berry <stereotype441@gmail.com>
Tue, 22 Nov 2011 19:53:46 +0000 (11:53 -0800)
committerPaul Berry <stereotype441@gmail.com>
Thu, 8 Dec 2011 00:38:00 +0000 (16:38 -0800)
commita98ceee0ee3692783047c6f8f9f6bf6afbf4dd3b
tree3444e6dc78e3d2f0253e5454be681edda770cdf7
parent63a6fd6603574c1c01324fbeb0863e39d3864c16
mesa: Track changes to transform feedback state.

This patch adds a new bit to the ctx->NewState bitfield,
_NEW_TRANSFORM_FEEDBACK, to track state changes that affect
ctx->TransformFeedback.  This bit can be used by driver back-ends to
avoid expensive recomputations when transform feedback state has not
been modified.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/mtypes.h
src/mesa/main/transformfeedback.c