From: Bas Nieuwenhuizen Date: Wed, 20 Apr 2016 13:42:01 +0000 (+0200) Subject: glsl: Use correct mode for split components. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=533d1e90853448c874a3aa85f91bceded47ed052;p=mesa.git glsl: Use correct mode for split components. The mode should stay the same as the original struct. In particular, shared should not be changed to temporary. Reviewed-by: Jordan Justen Signed-off-by: Bas Nieuwenhuizen --- diff --git a/src/compiler/glsl/opt_structure_splitting.cpp b/src/compiler/glsl/opt_structure_splitting.cpp index 0d18a2f7584..f4c129e6255 100644 --- a/src/compiler/glsl/opt_structure_splitting.cpp +++ b/src/compiler/glsl/opt_structure_splitting.cpp @@ -351,7 +351,7 @@ do_structure_splitting(exec_list *instructions) entry->components[i] = new(entry->mem_ctx) ir_variable(type->fields.structure[i].type, name, - ir_var_temporary); + (ir_variable_mode) entry->var->data.mode); entry->var->insert_before(entry->components[i]); }