[Mesa-dev] [PATCH 08/14] i965/vec4: Add support for ir_unop_saturate
Abdiel Janulgue
abdiel.janulgue at linux.intel.com
Mon Jun 23 22:27:20 PDT 2014
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 ee52c07..2112edf 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -1348,6 +1348,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:
assert(!"not reached: should be handled by lower_noise");
--
1.9.1
More information about the mesa-dev
mailing list