glsl: Construct gl_in with a location of -1.
authorPaul Berry <stereotype441@gmail.com>
Sun, 29 Sep 2013 15:19:13 +0000 (08:19 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 10 Oct 2013 21:26:53 +0000 (14:26 -0700)
commit192d05f2770797db61d30a06f2e07602575a9791
treeda2b173364362c704f779a61506f468968867c93
parent8bc7673ef874faa95d43c255c7fc631c2d2160c0
glsl: Construct gl_in with a location of -1.

We use a location of -1 for variables which don't have their own
assigned locations--this includes ir_variables which represent named
interface blocks.  Technically the location assigned to gl_in doesn't
matter, since gl_in is only accessed via its members (which have their
own locations).  But it's nice to be consistent.

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