glsl/linker: refactor link-time validation of output locations
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 19 Oct 2017 08:57:30 +0000 (10:57 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 26 Oct 2017 06:40:14 +0000 (08:40 +0200)
commit6aa68772d4ecea120deb59bc2655e075ed0b6a17
tree2579c50f039005faf445bf52f4d19a73dbb10f7d
parentb9446172249f05f577072f09ea17a391f3ee5d90
glsl/linker: refactor link-time validation of output locations

Move the checks for explicit locations to a separate function. We
will use this in a follow-up patch to validate locations for interface
variables where we need to validate each interface member rather than
the interface variable itself.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/link_varyings.cpp