i965/vs: Add support for textureGather(.., comp)
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 5 Oct 2013 10:10:04 +0000 (23:10 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 5 Oct 2013 22:25:11 +0000 (11:25 +1300)
commite8ec2e03442cc21e84ff3a1ed7610e6b6d4468e5
treeaed5f616ee6f11a09579c91767a4a39ceaea2f1c
parent09c6fd450dcd70016823f861e72be64fdd122802
i965/vs: Add support for textureGather(.., comp)

- For HSW: Select the channel based on the component selected (swizzle
  is done in HW)
- For IVB: Select the channel based on the swizzle state for the
  component selected. Only apply the RG32F w/a if we actually want
  green -- we're about to flag it regardless of swizzle state.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp