i965/ps: Use SET_FIELD() for sampler count
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 29 Apr 2015 17:35:45 +0000 (20:35 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 29 Apr 2015 21:28:33 +0000 (00:28 +0300)
commitf39846fb57c2b4d29b65a40019ba55219b062117
tree026befd7103cdc019c62ef97ea90807009fcc40d
parent2c7e289d8b1d3c63ab55b64ab3961067fd5a1985
i965/ps: Use SET_FIELD() for sampler count

The value is actually clamped to 0-16 as sample state pointer
can be used to support more than 16 samplers.

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