Don't let swizzles with duplicated components be considered as lvalues.

Fixes swizzle2.frag.
This commit is contained in:
Eric Anholt 2010-03-28 01:29:18 -07:00 committed by Ian Romanick
parent ab372dab2a
commit a9fafc6504
1 changed files with 1 additions and 1 deletions

2
ir.h
View File

@ -432,7 +432,7 @@ public:
bool is_lvalue()
{
return val->is_lvalue();
return val->is_lvalue() && !mask.has_duplicates;
}
ir_rvalue *val;