glsl/linker: Mark no locations as invalid instead of marking all locations
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 6 Jan 2018 02:40:21 +0000 (18:40 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 10 Jan 2018 15:21:11 +0000 (07:21 -0800)
commit0c9df36157aca1e725f037e5adc54100aa387bd3
tree62370a45122ced8d57a60e9501da30b62d649d42
parent702dc43f7eda025103df8adaf9a57067f8f56f87
glsl/linker: Mark no locations as invalid instead of marking all locations

If max_index were ever 32, the linker would have marked all 32
locations as invalid instead of marking none of them as invalid.  It's
a good thing the maximum value actually set by any driver for
MaxAttribs is 16.

Found by inspection while investigating CID 1369628.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/linker.cpp