i965: Remove nr_surfaces computation from brw_update_wm_surfaces.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 1 Nov 2011 23:08:03 +0000 (16:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Nov 2011 06:51:19 +0000 (22:51 -0800)
commite4b1c9b4bebd8f1fe851617e9ad350e45435e130
treed9572df21b8280b5719063c5084a9d65fdb5d18a
parent6ba9090ea05e817bd38c1fcc63c53168b16593c7
i965: Remove nr_surfaces computation from brw_update_wm_surfaces.

This code is fairly fragile, as it depends on the ordering of the
entries in the binding table, which will change soon.

Also, stop listening on the BRW_NEW_WM_CONSTBUF dirty bit as it's no
longer required.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c