summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAbdiel Janulgue <[email protected]>2014-06-16 13:56:50 -0700
committerAbdiel Janulgue <[email protected]>2014-08-31 21:04:08 +0300
commitcb621166dca23f223139797dd5fd476cdfd01c22 (patch)
tree81509c9e176d30f753d770e54a7359999cfc006b /src/mesa
parent4bfe8a1e613ac4798f52944e2ef1f34ebd859251 (diff)
yi965/vec4: Add support for ir_unop_saturate
Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Abdiel Janulgue <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 6eeed3cf9de..f0de5d59280 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");