i965/gen4: Fold WM surface state prepare()/emit() together.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 18:01:40 +0000 (11:01 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:16:32 +0000 (12:16 -0700)
commit93cabff7d69a29b75e8f3143099edebf6e46bee7
tree43d69bbf88af470523d72bc0e20bdda5f22b3669
parent9a5f8a98ed9eebec89f151d2b6df08c423b6ef34
i965/gen4: Fold WM surface state prepare()/emit() together.

These produce BRW_NEW_SURFACES (used by binding table emit()) and
BRW_NEW_NR_WM_SURFACES (used by WM unit emit()).  Fixes a bug where
with no texturing and no color buffer, we wouldn't consider the null
renderbuffer in nr_surfaces.  This was harmless because nr_surfaces is
only used for the prefetch info in the unit state.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c