mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 03:30:30 +01:00
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>
This commit is contained in:
parent
1c1873b93b
commit
533d1e9085
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue