From c1d3080ee86cd3d914712ffe0bb533c5d6a6b271 Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Thu, 12 Dec 2013 12:57:57 +0200 Subject: glsl: introduce data section to ir_variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Data section helps serialization and cloning of a ir_variable. This patch includes the helper bits used for read only ir_variables. Signed-off-by: Tapani Pälli Reviewed-by: Paul Berry --- src/glsl/builtin_variables.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/glsl/builtin_variables.cpp') diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index d0e76e3a402..9cc11b77c85 100644 --- a/src/glsl/builtin_variables.cpp +++ b/src/glsl/builtin_variables.cpp @@ -442,7 +442,7 @@ builtin_variable_generator::add_variable(const char *name, case ir_var_shader_in: case ir_var_uniform: case ir_var_system_value: - var->read_only = true; + var->data.read_only = true; break; case ir_var_shader_out: break; @@ -937,8 +937,8 @@ builtin_variable_generator::generate_varyings() add_variable(fields[i].name, fields[i].type, ir_var_shader_out, fields[i].location); var->interpolation = fields[i].interpolation; - var->centroid = fields[i].centroid; - var->sample = fields[i].sample; + var->data.centroid = fields[i].centroid; + var->data.sample = fields[i].sample; var->init_interface_type(per_vertex_out_type); } } -- cgit v1.2.3