From: Abdiel Janulgue Date: Mon, 16 Jun 2014 20:56:50 +0000 (-0700) Subject: yi965/vec4: Add support for ir_unop_saturate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb621166dca23f223139797dd5fd476cdfd01c22;p=mesa.git yi965/vec4: Add support for ir_unop_saturate Reviewed-by: Matt Turner Signed-off-by: Abdiel Janulgue --- 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");