glsl/linker: report linker errors for invalid explicit locations on inputs
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 24 Oct 2017 08:21:13 +0000 (10:21 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 26 Oct 2017 06:40:14 +0000 (08:40 +0200)
commitb9446172249f05f577072f09ea17a391f3ee5d90
tree2569e2087948e7f2484860c2b1d8af853d3c39b3
parent16cfbef44cf0b196992bd06cb3521e70d1903033
glsl/linker: report linker errors for invalid explicit locations on inputs

We were assuming that if an input has an invalid explicit location it would
fail to link because it would not find the corresponding output, however,
since we look for the matching output by indexing the explicit_locations
array with the input location, we still need to ensure that we don't index
out of bounds.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/compiler/glsl/link_varyings.cpp