i965/gen7: Enable support for fast color clears.
authorPaul Berry <stereotype441@gmail.com>
Tue, 21 May 2013 18:58:38 +0000 (11:58 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 12 Jun 2013 18:10:07 +0000 (11:10 -0700)
commitb09a75407886fba476bb79d65b408ffc08876a75
treeb1958d1e5739c9c312945b372fbd04067027b9ef
parentef9142d4a37c28bf6ae3527f71b9aa1b57ba9eb0
i965/gen7: Enable support for fast color clears.

This patch adds code to place mcs_state into INTEL_MCS_STATE_RESOLVED
for miptrees that are capable of supporting fast color clears.  This
will have no effect on buffers that don't undergo a fast color clear;
however, for buffers that do undergo a fast color clear, an MCS
miptree will be allocated (at the time of the first fast clear), and
will be used thereafter.

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