glsl: Checks for interpolation into its own function.
authorAndres Gomez <agomez@igalia.com>
Wed, 23 Mar 2016 23:13:26 +0000 (01:13 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 29 Apr 2016 06:03:00 +0000 (08:03 +0200)
commitc750029b37c64521267910af0ec2c89c58c82987
tree4bf946c618305e81e6d0fbf4c8735fe93ce3fc04
parent6d4a42674534ad2de254a330835344a5845428ef
glsl: Checks for interpolation into its own function.

This generalizes the validation also to be done for variables inside
interface blocks, which, for some cases, was missing.

For a discussion about the additional validation cases included see
https://lists.freedesktop.org/archives/mesa-dev/2016-March/109117.html
and Khronos bug #15671.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
src/compiler/glsl/ast_to_hir.cpp