i965: Push computation for sampler state batch offsets up a level.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 26 Jul 2014 18:20:02 +0000 (11:20 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Aug 2014 12:14:42 +0000 (05:14 -0700)
commit378eea970824821ffb0d38c27e214af94ec0aca9
tree156789246b6bff64e580f60c8154df9ce476864d
parent7efa183e8f5b66409f75a551c3fdfd652f7f205f
i965: Push computation for sampler state batch offsets up a level.

Other than this, brw_update_sampler_state only deals with a single
SAMPLER_STATE structure, and doesn't need to know which position it is
in the table.  The caller takes care of dealing with multiple surface
states.

Pushing this up a level allows us to drop the ss_index parameter.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_sampler_state.c