summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-09-29 08:19:13 -0700
committerPaul Berry <[email protected]>2013-10-10 14:26:53 -0700
commit192d05f2770797db61d30a06f2e07602575a9791 (patch)
treeda2b173364362c704f779a61506f468968867c93 /src/glsl
parent8bc7673ef874faa95d43c255c7fc631c2d2160c0 (diff)
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 <[email protected]> Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/builtin_variables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp
index 7a64acc9e6d..6fc9183ad14 100644
--- a/src/glsl/builtin_variables.cpp
+++ b/src/glsl/builtin_variables.cpp
@@ -830,7 +830,7 @@ builtin_variable_generator::generate_varyings()
GLSL_INTERFACE_PACKING_STD140,
"gl_in");
ir_variable *var = add_variable("gl_in", array(per_vertex_type, 0),
- ir_var_shader_in, 0);
+ ir_var_shader_in, -1);
var->init_interface_type(per_vertex_type);
}
}