glsl/linker: create a helper function to validate explicit locations
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 20 Oct 2017 07:00:41 +0000 (09:00 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 26 Oct 2017 06:40:14 +0000 (08:40 +0200)
commite7b7fe314e414a6b7953f7b485d86849e00ae5fc
tree73358ea561e13287ea24ac7dd01d84d253a1ffb6
parentab40acb45341d8cea011ba7330626ffc6e3238ad
glsl/linker: create a helper function to validate explicit locations

Currently, we only validate explicit locations for non-SSO programs.
This creates a helper that we can call from both SSO and non-SSO paths
directly, so we can reuse all the logic behind this.

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