summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2016-04-20 15:42:01 +0200
committerDave Airlie <airlied@redhat.com>2016-05-24 09:55:38 +1000
commit533d1e90853448c874a3aa85f91bceded47ed052 (patch)
tree3ef19a2adbe77c22197974842041eba2363036a3 /src/compiler/glsl
parent1c1873b93b9aa30c8e9275000f813bce69ed99e4 (diff)
downloadexternal_mesa3d-533d1e90853448c874a3aa85f91bceded47ed052.zip
external_mesa3d-533d1e90853448c874a3aa85f91bceded47ed052.tar.gz
external_mesa3d-533d1e90853448c874a3aa85f91bceded47ed052.tar.bz2
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 <jordan.l.justen@intel.com> Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/opt_structure_splitting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/opt_structure_splitting.cpp b/src/compiler/glsl/opt_structure_splitting.cpp
index 0d18a2f..f4c129e 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]);
}