Mesa (master): i965/fs: Assert that ir_expressions are usable by 3-src instructions.
Matt Turner
mattst88 at kemper.freedesktop.org
Tue Aug 27 22:09:32 UTC 2013
Module: Mesa
Branch: master
Commit: e817b94a2c3c3f12141d7429a5b0c7f65f36cca6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e817b94a2c3c3f12141d7429a5b0c7f65f36cca6
Author: Matt Turner <mattst88 at gmail.com>
Date: Mon Aug 26 22:01:17 2013 -0700
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 at gmail.com>
---
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index 964ad40..6186a9c 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -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
More information about the mesa-commit
mailing list