i965: Correct the size of the state batch space allocated for binding tables.
authorEric Anholt <eric@anholt.net>
Tue, 21 Feb 2012 21:05:57 +0000 (13:05 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 21 Feb 2012 21:30:48 +0000 (13:30 -0800)
commit6ca50f381c9cbc87bbb864d2710f3cfa46a95ead
tree51c9ed900a3906c677ae8a83036666fb1067c652
parent9fa6377a75817eb9284d6dc482726943d2061489
i965: Correct the size of the state batch space allocated for binding tables.

In the gen6 GS case, we were under-counting and so other state would
get smashed.  In the VS case, we were over-counting, so everything was
fine.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/gen6_sol.c