glsl/linker: always validate explicit locations for first and last interfaces
authorAndres Gomez <agomez@igalia.com>
Fri, 8 Mar 2019 21:21:58 +0000 (23:21 +0200)
committerAndres Gomez <agomez@igalia.com>
Mon, 15 Apr 2019 22:34:50 +0000 (22:34 +0000)
commit42351c21bbb9ed5e067737ac72e1da510832ddd7
treefcf790858a35ec32adfe316d7de2a5a4c518a13c
parent6281517f3e249024285b137975196432798db530
glsl/linker: always validate explicit locations for first and last interfaces

Until now, we were only doing this when linking a SSO
program. However, nothing avoids linking a non SSO program which
doesn't have both a VS and FS. In those cases, we also need to report
the usual linking errors, if happening.

v2: Use a better name for the renamed function (Timothy).

Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/link_varyings.cpp
src/compiler/glsl/link_varyings.h
src/compiler/glsl/linker.cpp