i965/vs: Allow scalar values in assignments, too.

Fixes glsl-vs-all-02 and many other tests.
This commit is contained in:
Eric Anholt 2011-08-05 16:31:30 -07:00
parent c0f334a3ed
commit 82aa9299fb

View file

@ -1285,7 +1285,8 @@ vec4_visitor::visit(ir_assignment *ir)
int first_enabled_chan = 0;
int src_chan = 0;
assert(ir->lhs->type->is_vector());
assert(ir->lhs->type->is_vector() ||
ir->lhs->type->is_scalar());
dst.writemask = ir->write_mask;
for (int i = 0; i < 4; i++) {