glsl/linker: validate explicit locations for SSO programs
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 20 Oct 2017 07:18:33 +0000 (09:18 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 26 Oct 2017 06:40:14 +0000 (08:40 +0200)
commite2abb75b0e4c2e38120316c4f3cc4cde44497330
tree01d982e355508693098a8c0aeaf3edaa14638b76
parentbdaf0589785138f91cd485fd698274a33b7d33d5
glsl/linker: validate explicit locations for SSO programs

v2:
- we only need to validate inputs to the first stage and outputs
  from the last stage, everything else has already been validated
  during cross_validate_outputs_to_inputs (Timothy).
- Use MAX_VARYING instead of MAX_VARYINGS_INCL_PATCH (Illia)

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