Take into account the number of locations taken up by a uniform
authorNeil Roberts <nroberts@igalia.com>
Mon, 19 Mar 2018 22:28:19 +0000 (23:28 +0100)
committerNeil Roberts <nroberts@igalia.com>
Wed, 21 Mar 2018 11:03:39 +0000 (12:03 +0100)
commit2d539049996678c2503449ae5ea313d019cd52e1
tree1b9f85b0518e608e97488f00c57b0b423ed01f42
parent1fe4a44759903aeb4a4e4cfc94c3e82961714e76
Take into account the number of locations taken up by a uniform

When assigning uniform locations it now takes into account the number
of locations occupied by the type. For uniforms, all types except
arrays and structs take up one location. For arrays the base location
count is multiplied by the array dimensions and for structs it is the
sum of the locations of each member.
glslang/MachineIndependent/iomapper.cpp
glslang/MachineIndependent/linkValidate.cpp
glslang/MachineIndependent/localintermediate.h