mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
glsl2: Clean up vec_index_to_cond_assign after the clone return type change.
This commit is contained in:
parent
773025b92c
commit
6de882334a
1 changed files with 2 additions and 2 deletions
|
|
@ -107,8 +107,8 @@ ir_vec_index_to_cond_assign_visitor::convert_vec_index_to_cond_assign(ir_rvalue
|
||||||
/* Just clone the rest of the deref chain when trying to get at the
|
/* Just clone the rest of the deref chain when trying to get at the
|
||||||
* underlying variable.
|
* underlying variable.
|
||||||
*/
|
*/
|
||||||
deref = (ir_dereference *)orig_deref->array->clone(NULL);
|
swizzle = new(base_ir) ir_swizzle(orig_deref->array->clone(NULL),
|
||||||
swizzle = new(base_ir) ir_swizzle(deref, i, 0, 0, 0, 1);
|
i, 0, 0, 0, 1);
|
||||||
|
|
||||||
deref = new(base_ir) ir_dereference_variable(var);
|
deref = new(base_ir) ir_dereference_variable(var);
|
||||||
assign = new(base_ir) ir_assignment(deref, swizzle, condition);
|
assign = new(base_ir) ir_assignment(deref, swizzle, condition);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue