i965: Fold prepare() and emit() of VS surface state setup together.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 18:12:43 +0000 (11:12 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:16:42 +0000 (12:16 -0700)
commitc933b33dc8e45c0ae01e901930842e615960677e
tree45596f3024f1e419c340183357ed81bd5487c71c
parent2b730c1f19ac1e15fa1b70c6cb3a3bd158e18ea1
i965: Fold prepare() and emit() of VS surface state setup together.

This rearranges the code a bit, and makes the upload of the binding
table take only as many surfaces as there are in use.

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