i965/msaa: Validate Gen7 surface state constraints.
authorPaul Berry <stereotype441@gmail.com>
Tue, 8 May 2012 22:30:33 +0000 (15:30 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 25 May 2012 15:45:11 +0000 (08:45 -0700)
commit31f3dfd59b6687214402c395ee03e7498fd6c79a
tree14627003f42d080f1e31a03f7b0efc15bf1a2527
parent455ac562722f60ac9fb0c3d3c697fa339fa011ad
i965/msaa: Validate Gen7 surface state constraints.

When a Gen7 SURFACE_STATE is configured for MSAA, a number of
additional constaints come in to play.  This patch adds a function
gen7_check_surface_setup() which verifies that all of those
constraints are met.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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