summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-03-28 01:29:18 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-29 12:48:45 -0700
commita9fafc6504ebccdc0fee3d2529c3fe6068cc86b8 (patch)
tree4e98d4124b207be52c5feb3da37c35912bf358a9 /ir.h
parentab372dab2a013e5d0c8ee57bb799a76c9a78abf2 (diff)
Don't let swizzles with duplicated components be considered as lvalues.
Fixes swizzle2.frag.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir.h b/ir.h
index 600a2cd78d..3ef3708369 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;