From: Eric Anholt Date: Sun, 28 Mar 2010 08:29:18 +0000 (-0700) Subject: Don't let swizzles with duplicated components be considered as lvalues. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9fafc6504ebccdc0fee3d2529c3fe6068cc86b8;p=mesa.git Don't let swizzles with duplicated components be considered as lvalues. Fixes swizzle2.frag. --- diff --git a/ir.h b/ir.h index 600a2cd78de..3ef37083697 100644 --- a/ir.h +++ b/ir.h @@ -432,7 +432,7 @@ public: bool is_lvalue() { - return val->is_lvalue(); + return val->is_lvalue() && !mask.has_duplicates; } ir_rvalue *val;