i965/blorp: Configure SURFACE_STATE correctly for IMS surfaces.
authorPaul Berry <stereotype441@gmail.com>
Mon, 9 Jul 2012 19:50:31 +0000 (12:50 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 20 Jul 2012 16:35:38 +0000 (09:35 -0700)
commit989218b9801f0afd0cbadce19a5719b0aa0deb70
tree98c9e0eff1be3ef68b931d051a246a23ecc71af9
parentf91b4d92b97664e6354f66138705e93bec363ba0
i965/blorp: Configure SURFACE_STATE correctly for IMS surfaces.

This patch modifies gen7_set_surface_num_multisamples() to set up the
SURFACE_STATE appropriately for texturing from IMS format MSAA
surfaces (which are only used on Gen7 for depth and stencil buffers).
Since the function now sets more than just the number of multisamples,
it's been renamed to gen7_set_surface_msaa().

This will make it possible to remove some kludginess from the blorp
engine.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.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