glsl: fix matrix type check in ir_algebraic

Fixes glsl-mat-mul-1.
This commit is contained in:
Aras Pranckevicius 2010-11-30 13:24:44 -08:00 committed by Eric Anholt
parent d56c97413e
commit 4ce084c707

View file

@ -123,8 +123,8 @@ ir_algebraic_visitor::reassociate_constant(ir_expression *ir1, int const_index,
/* Don't want to even think about matrices. */
if (ir1->operands[0]->type->is_matrix() ||
ir1->operands[0]->type->is_matrix() ||
ir2->operands[1]->type->is_matrix() ||
ir1->operands[1]->type->is_matrix() ||
ir2->operands[0]->type->is_matrix() ||
ir2->operands[1]->type->is_matrix())
return false;