glsl: produce a linker error for a subroutine uniform with no functions.
authorDave Airlie <airlied@redhat.com>
Fri, 6 May 2016 01:37:06 +0000 (11:37 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 23 May 2016 06:19:56 +0000 (16:19 +1000)
commit18b0a13e803d740e52f1205b690e30cd119bcf87
tree6cefcd2b8688f3015aea65eb986033ac3b8f07ae
parentb572b599efb29f1d28ab0595b762e2d24012d9ed
glsl: produce a linker error for a subroutine uniform with no functions.

If a subroutine uniform is declared with no functions backing it,
that isn't legal, so we should fail to link.

Fixes:
GL43-CTS.shader_subroutine.subroutine_uniform_wo_matching_subroutines

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