glsl: Exit when the shader IR contains an interface block instance
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 2 Oct 2013 22:57:03 +0000 (15:57 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 2 May 2014 14:19:40 +0000 (07:19 -0700)
commit5699220cd5719be6fbafdefd75025a817bcb200a
tree13eb1d5646321306f23822670a1bcd270c528f43
parentba7195d126ce20bf74a27725224662aaca4d90ef
glsl: Exit when the shader IR contains an interface block instance

While writing the link_varyings::single_interface_input test, I
discovered that populate_consumer_input_sets assumes that all shader
interface blocks have been lowered to discrete variables.  Since there
is a pass that does this, it is a reasonable assumption.  It was,
however, non-obvious.  Make the code fail when it encounters such a
thing, and add a test to verify that behavior.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/link_varyings.cpp
src/glsl/tests/varyings_test.cpp