i965: Remove swizzling of assignment to vector-splitting single-channel LHS.

We'd end up reading some non-x component of the float RHS.  +53 piglits.
This commit is contained in:
Eric Anholt 2010-09-27 15:10:34 -07:00
parent 11ba8bafdb
commit a5c6c8a31b
1 changed files with 0 additions and 2 deletions

View File

@ -319,8 +319,6 @@ ir_vector_splitting_visitor::visit_leave(ir_assignment *ir)
ir->write_mask = (1 << 0);
handle_rvalue(&ir->rhs);
ir->rhs = new(mem_ctx) ir_swizzle(ir->rhs,
elem, elem, elem, elem, 1);
} else {
handle_rvalue(&ir->rhs);
}