mesa: Add new ctx->Stencil._WriteEnabled derived state flag.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 2 Apr 2013 17:22:18 +0000 (10:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Apr 2013 22:38:18 +0000 (15:38 -0700)
commit1e3235d36e45ee7565d322971dfa179f48d79767
treea6964f5567e64475655da4a26eb8d65573de73b9
parent9eef86bb55108bfe2537d90e7efb41a30bf8547a
mesa: Add new ctx->Stencil._WriteEnabled derived state flag.

i965 needs to know whether stencil writes are enabled in several places,
and gets the test wrong sometimes.  While we could create a function to
compute this, it seems generally useful enough to warrant a new piece of
derived state.  Also, all the plumbing is already in place.

NOTE: This is a candidate for stable branches.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/main/mtypes.h
src/mesa/main/stencil.c