i965/fs: Assert that ir_expressions are usable by 3-src instructions.

MAD will be generated directly from ir_triop_fma, so this assertion
checks that all ir_expressions are usable.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
Matt Turner 2013-08-26 22:01:17 -07:00
parent d55c543c36
commit e817b94a2c
1 changed files with 1 additions and 0 deletions

View File

@ -336,6 +336,7 @@ fs_visitor::visit(ir_expression *ir)
ir->operands[operand]->print();
printf("\n");
}
assert(this->result.is_valid_3src());
op[operand] = this->result;
/* Matrix expression operands should have been broken down to vector