i965/fs: Assert that ir_expressions are usable by 3-src instructions.
authorMatt Turner <mattst88@gmail.com>
Tue, 27 Aug 2013 05:01:17 +0000 (22:01 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 27 Aug 2013 22:03:30 +0000 (15:03 -0700)
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>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 964ad4074a6f27207bf90df9d2697983c0293096..6186a9c0c5039f40d781c62df607b5df3eb6e627 100644 (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