i965/vs: Allow scalar values in assignments, too.
Fixes glsl-vs-all-02 and many other tests.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user