glsl/linker: specify proper direction in location aliasing error
authorAndres Gomez <agomez@igalia.com>
Mon, 7 Jan 2019 14:11:44 +0000 (16:11 +0200)
committerAndres Gomez <agomez@igalia.com>
Thu, 10 Jan 2019 13:51:57 +0000 (15:51 +0200)
commit428164d87f8dc1d378236b4913538803653770c6
tree82a9b3a2b21ffb5cc2e36b1565d1f79b7a90a73e
parente2e03f84f9f1768ea250b8cf6d6f48ee8e7de96a
glsl/linker: specify proper direction in location aliasing error

The check for location aliasing was always asuming output variables
but this validation is also called for input variables.

Fixes: e2abb75b0e4 ("glsl/linker: validate explicit locations for SSO programs")
Cc: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/link_varyings.cpp