glsl: Fix block name of built-in gl_PerVertex interface block.
authorPaul Berry <stereotype441@gmail.com>
Sun, 29 Sep 2013 15:08:46 +0000 (08:08 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 10 Oct 2013 21:26:56 +0000 (14:26 -0700)
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>
src/glsl/builtin_variables.cpp

index 6fc9183ad14c139fe2c69dca3134ddae20e1c8a8..6f93d96c69168452ffc8627935cd9e69324171da 100644 (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);