mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 14:58:32 +02:00
i965/vs: Allow scalar values in assignments, too.
Fixes glsl-vs-all-02 and many other tests.
This commit is contained in:
parent
c0f334a3ed
commit
82aa9299fb
1 changed files with 2 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue