glsl: Add support for specifying the component in textureGather
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 5 Oct 2013 05:26:56 +0000 (18:26 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 5 Oct 2013 22:12:29 +0000 (11:12 +1300)
commit88ee9bc9d1dd66ddb9721dc44574b8caaa26df70
tree703eea9eaceab52cb3820145fe9cc2036bbafb1e
parentf93a63bfccf22b64d5f0886b25fce833babdab1c
glsl: Add support for specifying the component in textureGather

ARB_gpu_shader5 introduces new variants of textureGather* which have an
explicit component selector, rather than relying purely on the sampler's
swizzle state.

This patch adds the GLSL plumbing for the extra parameter.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_functions.cpp
src/glsl/ir.h
src/glsl/ir_clone.cpp
src/glsl/ir_hv_accept.cpp
src/glsl/ir_print_visitor.cpp
src/glsl/ir_reader.cpp
src/glsl/ir_rvalue_visitor.cpp
src/glsl/opt_tree_grafting.cpp