i965: Introduce a function to emit a SAMPLER_STATE structure.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 26 Jul 2014 19:58:20 +0000 (12:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Aug 2014 12:16:40 +0000 (05:16 -0700)
commit05f0796eb68fe1be3e55b7c78c7660dccf44e0a1
treed504f7755352a2bf1938b80626986b8809005616
parent7cdb0a30faf1c96bacf5cec2d64bb64d7c8ef4a8
i965: Introduce a function to emit a SAMPLER_STATE structure.

This simply assembles all the SAMPLER_STATE fields into their proper bit
locations.  Making it work on all generations was easy enough; some of
the fields are even in the same place.

Not used by anything yet, but will be soon.  I made it non-static so
BLORP can use it too.

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
src/mesa/drivers/dri/i965/brw_state.h