glsl/linker: Modify array_sizing_visitor to handle named interface blocks.
authorPaul Berry <stereotype441@gmail.com>
Mon, 23 Sep 2013 17:44:19 +0000 (10:44 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 9 Oct 2013 23:49:41 +0000 (16:49 -0700)
commite226669eea47e2075c1188e5c61e0ba479ff8d47
treeb72ebabd99ae6e1cd1623dce58bb504e259e33e5
parentf878d2060c196c8130af0912ffc4493c631b1c34
glsl/linker: Modify array_sizing_visitor to handle named interface blocks.

Unsized arrays appearing inside named interface blocks now get a
proper size assigned by the array_sizing_visitor.

Fixes piglit tests:
- spec/glsl-1.50/execution/unsized-in-named-interface-block
- spec/glsl-1.50/execution/unsized-in-named-interface-block-gs
- spec/glsl-1.50/linker/unsized-in-named-interface-block
- spec/glsl-1.50/linker/unsized-in-named-interface-block-gs
- spec/glsl-1.50/linker/unsized-in-unnamed-interface-block-gs (*)

(*) is fixed by dumb luck--support for unsized arrays in unnamed
interface blocks will come in a later patch.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/ir.h
src/glsl/linker.cpp