glsl: Generate an interface type for uniform blocks
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 11 Dec 2012 20:14:03 +0000 (12:14 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 25 Jan 2013 14:07:33 +0000 (09:07 -0500)
commit17e6f1904444be019cafa208495e3fe479cb86fd
tree5ceea9206368ec73890c633b7e13ae6b9dd9bf62
parent491364e1f34ddb2c8ea439e871dd42aaa5cc9b28
glsl: Generate an interface type for uniform blocks

If the block has an instance name, add the instance name to the symbol
table instead of the individual fields.

Fixes the piglit test interface-name-access-without-interface-name.vert
for real.

v2: Update the comment before the assertion that interface block
definitions won't generate instructions.  Suggested by Paul Berry.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ast_to_hir.cpp