i965/gen7+: Disentangle MSAA layout from fast clear state.
authorPaul Berry <stereotype441@gmail.com>
Tue, 3 Dec 2013 16:33:41 +0000 (08:33 -0800)
committerPaul Berry <stereotype441@gmail.com>
Mon, 9 Dec 2013 18:51:10 +0000 (10:51 -0800)
commit25195b004176ba8681500c5dbcc446ad68705163
tree65d58011940c684490e6c5d2cbbd82f9ccbe03c0
parentf416a15096c0984dce689681a004554ecb2ea728
i965/gen7+: Disentangle MSAA layout from fast clear state.

This patch renames the enum that's used to keep track of fast clear
state from "mcs_state" to "fast_clear_state", and it removes the enum
value INTEL_MCS_STATE_MSAA (which previously meant, "this is an MSAA
buffer, so we're not keeping track of fast clear state").  The only
real purpose that enum value was serving was to prevent us from trying
to do fast clear resolves on MSAA buffers, and it's just as easy to
prevent that by checking the buffer's msaa_layout.

This paves the way for implementing fast clears of MSAA buffers.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h