glsl: Add support for separate reference Z for shadow samplers
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 10 Oct 2013 06:32:34 +0000 (19:32 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 26 Oct 2013 09:16:19 +0000 (22:16 +1300)
commitaf1dfd99b7119e0d074fa111e5d2ebeddd5dff93
tree786a0bc4d6d0a6e3f6392313dd335ee130bbf8fb
parentfb08769bb62510b10db61771eaf140194f6cc178
glsl: Add support for separate reference Z for shadow samplers

ARB_gpu_shader5's textureGather*() functions which take shadow samplers
have a separate `refz` parameter rather than adding it to the
coordinate.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_functions.cpp