Mesa (master): yi965/vec4: Add support for ir_unop_saturate
Abdiel Janulgue
abj at kemper.freedesktop.org
Sun Aug 31 18:04:53 UTC 2014
Module: Mesa
Branch: master
Commit: cb621166dca23f223139797dd5fd476cdfd01c22
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb621166dca23f223139797dd5fd476cdfd01c22
Author: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
Date: Mon Jun 16 13:56:50 2014 -0700
yi965/vec4: Add support for ir_unop_saturate
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 6eeed3c..f0de5d5 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -1397,6 +1397,10 @@ vec4_visitor::visit(ir_expression *ir)
case ir_unop_find_lsb:
emit(FBL(result_dst, op[0]));
break;
+ case ir_unop_saturate:
+ inst = emit(MOV(result_dst, op[0]));
+ inst->saturate = true;
+ break;
case ir_unop_noise:
unreachable("not reached: should be handled by lower_noise");
More information about the mesa-commit
mailing list