Fix the swizzling of vector constructors from scalars.
A refactor turned 'i' into '1', meaning everything writemasked into the y component.
This commit is contained in:
committed by
Ian Romanick
parent
22147be898
commit
82ad90f8cf
+1
-1
@@ -259,7 +259,7 @@ generate_vec_body_from_N_scalars(exec_list *instructions,
|
||||
ir_dereference *const lhs_ref = new ir_dereference(declarations[16]);
|
||||
ir_dereference *const rhs = new ir_dereference(declarations[i]);
|
||||
|
||||
ir_swizzle *lhs = new ir_swizzle(lhs_ref, 1, 0, 0, 0, 1);
|
||||
ir_swizzle *lhs = new ir_swizzle(lhs_ref, i, 0, 0, 0, 1);
|
||||
|
||||
inst = new ir_assignment(lhs, rhs, NULL);
|
||||
instructions->push_tail(inst);
|
||||
|
||||
Reference in New Issue
Block a user