glsl: track total amount of uniform locations used
authorTapani Pälli <tapani.palli@intel.com>
Fri, 8 Jan 2016 06:20:25 +0000 (08:20 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 12 Jan 2016 05:52:44 +0000 (07:52 +0200)
commit4985159ad6884d7d6ab509567349ae0f716d4080
tree04317e4de87f0fd02193931202afbe3d5800b9f9
parent395b53dad69470f0f3014e96bed0e6ceef383ce8
glsl: track total amount of uniform locations used

Linker missed a check for situation where we exceed max amount of
uniform locations with explicit + implicit locations. Patch adds this
check to already existing iteration over uniforms in linker.

Fixes following CTS test:
   ES31-CTS.explicit_uniform_location.uniform-loc-negative-link-max-num-of-locations

v2: use var->type->uniform_locations() (Timothy)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/glsl/linker.cpp