i965: Shift brw_upload_sampler_state_table away from structures.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 26 Jul 2014 18:27:57 +0000 (11:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Aug 2014 12:14:42 +0000 (05:14 -0700)
commit8fbc96ca74012d3f94564d88692e170bc4ef7937
tree0866eb8be26943eae1bafe25225493147ec6f628
parent378eea970824821ffb0d38c27e214af94ec0aca9
i965: Shift brw_upload_sampler_state_table away from structures.

The Gen4-6 and Gen7+ code is virtually identical, but both use different
structure types.  Switching to use a uint32_t pointer and operate on the
number of DWords will make it possible to share code.

It turns out that SURFACE_STATE is the same number of DWords on every
platform currently; it will be easy to handle a change there, though.

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