softpipe: start adding gather support (v2)
authorDave Airlie <airlied@redhat.com>
Tue, 19 May 2015 06:29:39 +0000 (16:29 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 20 May 2015 02:32:59 +0000 (12:32 +1000)
commit55a7b5165d40b831fd303079f8f80962d195d6ee
treeb1ac59a13d3c9d3607ca9369eef835a317d65c25
parent0108eae2911d2fc8f2ae0ef0fc6fc503fbfc600d
softpipe: start adding gather support (v2)

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)

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_tex_sample.h