intel: Add flags to intel_context for hiz and separate stencil
authorChad Versace <chad@chad-versace.us>
Mon, 23 May 2011 20:47:01 +0000 (13:47 -0700)
committerChad Versace <chad@chad-versace.us>
Wed, 25 May 2011 14:41:31 +0000 (07:41 -0700)
commit76f77cb07edf9c6a548f782c709de70aa0a41458
tree49cdebe206381880ccc04d3ace6e0bac4db86798
parenta95ec18549b677b5e9912ca9e2c92df5cfef3b4e
intel: Add flags to intel_context for hiz and separate stencil

Add the following flags:
    intel_context.has_separate_stencil
    intel_context.must_use_separate_stencil
    intel_context.has_hiz

The flags are currently set to false, and will be enabled for a given
chipset once the feature is completely implemented.

Since it may be some time before these features are completed, their
values can be overridden with environment variables INTEL_HIZ and
INTEL_SEPARATE_STENCIL. Valid values for these environment variables are
"0" and "1".

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h