From cb621166dca23f223139797dd5fd476cdfd01c22 Mon Sep 17 00:00:00 2001 From: Abdiel Janulgue Date: Mon, 16 Jun 2014 13:56:50 -0700 Subject: [PATCH] yi965/vec4: Add support for ir_unop_saturate Reviewed-by: Matt Turner Signed-off-by: Abdiel Janulgue --- 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 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"); -- 2.30.2