i965/gen7+: Set up MCS in SURFACE_STATE whenever MCS is present.
authorPaul Berry <stereotype441@gmail.com>
Wed, 1 May 2013 14:16:52 +0000 (07:16 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 12 Jun 2013 17:45:42 +0000 (10:45 -0700)
commit460b7bc7a103d7a7518b4187f0c1dfc452f75137
tree0fbb85260345d9474ff846ba04a010f705188b17
parent7e5cb4bc4c8dfc96019b815e2c9a62af12e1f958
i965/gen7+: Set up MCS in SURFACE_STATE whenever MCS is present.

On Gen7+, MCS buffers are used both for compressed multisampled color
buffers and for "fast clear" of single-sampled color buffers.

Previous to this patch series, we didn't support fast clear, so we
only used MCS with multisampled bolor buffers.

As a first step to implementing fast clears, this patch modifies the
code that sets up SURFACE_STATE so that it configures the MCS buffer
whenever it is present, regardless of whether we are multisampling or
not.

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