glsl: Fix block name of built-in gl_PerVertex interface block.

Previously, we erroneously used the name "gl_in" for both the block
name and the instance name.

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>
This commit is contained in:
Paul Berry 2013-09-29 08:08:46 -07:00
parent 192d05f277
commit d2e66b953e
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ builtin_variable_generator::generate_varyings()
glsl_type::get_interface_instance(this->per_vertex_fields,
this->num_per_vertex_fields,
GLSL_INTERFACE_PACKING_STD140,
"gl_in");
"gl_PerVertex");
ir_variable *var = add_variable("gl_in", array(per_vertex_type, 0),
ir_var_shader_in, -1);
var->init_interface_type(per_vertex_type);