glsl: Refactor code for creating gl_PerVertex interface block.
authorPaul Berry <stereotype441@gmail.com>
Sun, 29 Sep 2013 15:10:33 +0000 (08:10 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 10 Oct 2013 21:26:58 +0000 (14:26 -0700)
commitfb41f2c531b1243e6eebfe7b02ac04b0fe66c24e
treef6d732b10852845cb15224083f045c44040a2719
parentd2e66b953e458b591f86207d8b21253e1a9fbf08
glsl: Refactor code for creating gl_PerVertex interface block.

Currently, we create just a single gl_PerVertex interface block for
geometry shader inputs.  In later patches, we'll also need to create
an interface block for geometry and vertex shader outputs.  Moving the
code into its own class will make reuse easier.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/builtin_variables.cpp