glsl: fix subroutine uniform .length().
authorDave Airlie <airlied@redhat.com>
Tue, 17 May 2016 03:07:40 +0000 (13:07 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 23 May 2016 06:19:57 +0000 (16:19 +1000)
commitc714731653fb40d4e20cdfc98c3a200e836e2a21
tree68592cf22893224da223cf7c4b0cb37731aec7a3
parent432ac19c1ad34f32bdcfe6ec7823383ee24eb016
glsl: fix subroutine uniform .length().

This fixes .length() on subroutine uniform arrays, if
we don't find the identifier normally, we look up the corresponding
subroutine identifier instead.

Fixes:
GL45-CTS.shader_subroutine.arrays_of_arrays_of_uniforms
GL45-CTS.shader_subroutine.arrayed_subroutine_uniforms

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