i965/gen7: Fold WM surface state prepare()/emit() together.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 18:07:00 +0000 (11:07 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:16:36 +0000 (12:16 -0700)
commit4de2cfc3a08819b869ac3326f171d0a9f0fecf65
treef51763751207fc8c4bd99f9a60a184622c2b4564
parent93cabff7d69a29b75e8f3143099edebf6e46bee7
i965/gen7: 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/gen7_wm_surface_state.c