i965: Generalize brw_vec4_upload_binding_table() beyond vec4 stages.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 13 Sep 2013 22:13:49 +0000 (15:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Sep 2013 17:52:57 +0000 (10:52 -0700)
commit72340839cae5db8630256f48868d8ce4a526a687
tree86924947f50faa89a8a836dbe0d47ab673af82b3
parent254891b3fcd8ecfcea746f3bae4b274328981201
i965: Generalize brw_vec4_upload_binding_table() beyond vec4 stages.

Instead of passing in a brw_vec4_prog_data structure, we can simply
pass the one field it needs: the number of entries in the binding table.

We also need to pass in the shader time surface index rather than
hardcoding SURF_INDEX_VEC4_SHADER_TIME.

Since the resulting function is stage-agnostic, this patch removes
"vec4_" from the name.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_gs_surface_state.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_vs_surface_state.c