i965/msaa: Use MESA_FORMAT_R8 for MCS buffer.
authorPaul Berry <stereotype441@gmail.com>
Thu, 26 Jul 2012 21:13:35 +0000 (14:13 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 27 Jul 2012 17:42:19 +0000 (10:42 -0700)
commitee9f6a34ccf7f51111b21bba8d8f9d03cc0a2c74
tree2c0c5c18b53c4b89fec42b74a5da3995f7cb49a8
parent588881430a3d328f2d99fbd5197d85dafc31209b
i965/msaa: Use MESA_FORMAT_R8 for MCS buffer.

No functional change.  This patch modifies intel_miptree_alloc_mcs to
allocate the 4x MCS buffer using MESA_FORMAT_R8 instead of
MESA_FORMAT_A8.  In principle it doesn't matter, since we only access
the buffer using MCS-specific hardware mechanisms, so all that's
important is to use a format with the correct size.  However,
MESA_FORMAT_A8 has enough unusual behaviours that it seems prudent to
avoid it.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c