This adds both ARB_texture_gather and the enhanced gather for ARB_gpu_shader5.
This passes all the piglit tests, it relies on the GLSL lowering pass to make textureGatherOffsets work.
v2: use inline to get gather component (Brian) fix function name, add asserts (Brian)
55a7b51 softpipe: start adding gather support (v2)
src/gallium/drivers/softpipe/sp_screen.c | 5 +-
src/gallium/drivers/softpipe/sp_tex_sample.c | 286 ++++++++++++++++++--------
src/gallium/drivers/softpipe/sp_tex_sample.h | 2 +
3 files changed, 210 insertions(+), 83 deletions(-)
Upstream: cgit.freedesktop.org