glsl/ast: subroutineTypes can't be returned from functions.
authorDave Airlie <airlied@redhat.com>
Mon, 23 May 2016 02:14:01 +0000 (12:14 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 30 May 2016 01:25:30 +0000 (11:25 +1000)
commit6effdce92e89890f7276d406607241b7e372d1be
tree55704daed47825d5e476a4b4e1d08b1e613c5493
parentdb2a35193fc8e08b2bb54bf9f6150a9fc054b178
glsl/ast: subroutineTypes can't be returned from functions.

These types can't be returned.

This fixes:
GL43-CTS.shader_subroutine.subroutines_not_allowed_as_variables_constructors_and_argument_or_return_types
for the return type case.

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