intel: Conditionally compile mcs-related code for i965 only.
authorPaul Berry <stereotype441@gmail.com>
Mon, 20 May 2013 20:29:39 +0000 (13:29 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 12 Jun 2013 17:45:42 +0000 (10:45 -0700)
commit8f5147c199748ae129c527322823c2b40fb36941
tree318bb0fcd6d4d653fc0813102b79994b6fc153f7
parenta5efdca7b70a237b8786c595453f4599e38263ea
intel: Conditionally compile mcs-related code for i965 only.

This patch ifdefs out intel_mipmap_tree::mcs_mt when building the i915
(pre-Gen4) driver (MCS buffers aren't supported until Gen7, so there
is no need for this field in the i915 driver).  This should make it a
bit easier to implement fast color clears without undue risk to i915.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h