i965/fs: Add support for textureGather(.., comp)
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 5 Oct 2013 09:59:17 +0000 (22:59 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 5 Oct 2013 22:25:03 +0000 (11:25 +1300)
commit09c6fd450dcd70016823f861e72be64fdd122802
tree05758008c7abd2ef5f50d3f38c5fea05aa98a493
parent7335bc7526478637db168128ad989539c8c0211e
i965/fs: 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_fs_visitor.cpp