From: Eric Anholt Date: Fri, 23 Apr 2010 01:48:20 +0000 (-0700) Subject: Fix the swizzling of vector constructors from scalars. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82ad90f8cf0860a4065f3a4ece6dc66b1e408c12;p=mesa.git Fix the swizzling of vector constructors from scalars. A refactor turned 'i' into '1', meaning everything writemasked into the y component. --- diff --git a/glsl_types.cpp b/glsl_types.cpp index 4cd0f46aab2..b4abfdd7b68 100644 --- a/glsl_types.cpp +++ b/glsl_types.cpp @@ -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);