i965: Tell the unit states how many binding table entries we have.
authorEric Anholt <eric@anholt.net>
Sat, 2 Nov 2013 00:43:43 +0000 (17:43 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 5 Nov 2013 23:39:45 +0000 (15:39 -0800)
commitff337bc80069c74c6ad5d4ce84cd2029282d9e93
tree81874fe9931bd534dfcfe3548eaa3adfc3140ab2
parent3f319eef76a31776085accb38c06851bc04f64b8
i965: Tell the unit states how many binding table entries we have.

Before the series with 3c9dc2d31b80fc73bffa1f40a91443a53229c8e2 to
dynamically assign our binding table indices, we didn't really track our
binding table count per shader, so we never filled in these fields.

Affects cairo-gl trace runtime by -2.47953% +/- 1.07281% (n=20)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vs_state.c
src/mesa/drivers/dri/i965/brw_wm_state.c
src/mesa/drivers/dri/i965/gen6_vs_state.c
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_gs_state.c
src/mesa/drivers/dri/i965/gen7_vs_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c