glsl: relax const offset requirement for textureGatherOffset
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 6 Oct 2013 01:26:01 +0000 (14:26 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 26 Oct 2013 08:54:15 +0000 (21:54 +1300)
commit4fa123deac19aa40616cdca3b373d7c4ecdeed94
treec5afdb8097565ae11bf7c00598186bd0a6009978
parent00235402a0a341426c0ef292209489e0922309eb
glsl: relax const offset requirement for textureGatherOffset

Prior to ARB_gpu_shader5 / GLSL 4.0, the offset is required to be
a constant expression.

With that extension, it is relaxed to be an arbitrary expression.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/builtin_functions.cpp