i965/msaa: Set SURFACE_STATE properly when CMS MSAA is in use.
authorPaul Berry <stereotype441@gmail.com>
Tue, 3 Jul 2012 18:36:39 +0000 (11:36 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 11 Jul 2012 22:14:49 +0000 (15:14 -0700)
commit7b3263af696e504ec68b91b0ce128d46a0691dce
tree049f5d9958c53e0c9eb8d9ea9e79da38ba657e18
parent0ba813506d770ead7eb181fb2bf48d5a408fe0ea
i965/msaa: Set SURFACE_STATE properly when CMS MSAA is in use.

When a buffer using Gen7's CMS MSAA layout is bound to a texture or a
render target, the SURFACE_STATE structure needs to point to the MCS
buffer and to indicate its pitch.  This patch updates the functions
that emit SURFACE_STATE to handle CMS layout properly.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen7_blorp.cpp
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c