i965/msaa: Allocate MCS buffer when CMS MSAA is in use.
authorPaul Berry <stereotype441@gmail.com>
Tue, 3 Jul 2012 15:35:54 +0000 (08:35 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 11 Jul 2012 22:14:49 +0000 (15:14 -0700)
commitccae1b1cd7b89102a9d9bfc29eb1e7e48aad8969
tree2ef9de847c78e232fa11d04019fdfd3f7f8b1396
parent1bd4d456cdecf7bea55f4e3dac574af54efad994
i965/msaa: Allocate MCS buffer when CMS MSAA is in use.

To implement Gen7's CMS MSAA layout, we need an extra buffer, the MCS
(Multisample Control Surface) buffer.  This patch introduces code for
allocating and deallocating the buffer, and storing a pointer to it in
the intel_mipmap_tree struct.

No functional change, since the CMS layout is not enabled yet.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h