glsl: validate subroutine types match function signature.
authorDave Airlie <airlied@redhat.com>
Fri, 6 May 2016 01:28:40 +0000 (11:28 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 23 May 2016 06:19:56 +0000 (16:19 +1000)
commitb572b599efb29f1d28ab0595b762e2d24012d9ed
tree6dba717e46c37b0cd368fbf2f3a44d5c2af55e10
parentba3414d832c0661e6b827641dbd33a2829d1812e
glsl: validate subroutine types match function signature.

This fixes:
GL43-CTS.shader_subroutine.subroutines_incompatible_with_subroutine_type

It just makes sure the signatures match as well as the return
types.

Reviewed-by: Chris Forbes <chrisforbes@google.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/ast_to_hir.cpp