From: Alyssa Rosenzweig Date: Tue, 19 May 2020 15:09:41 +0000 (-0400) Subject: intel: Use SATURATE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f59d02a86dcf0e34cf43a223e44f51924e9ff4a8;p=mesa.git intel: Use SATURATE Signed-off-by: Alyssa Rosenzweig Reviewed-by: Eric Engestrom Part-of: --- diff --git a/src/intel/compiler/brw_shader.cpp b/src/intel/compiler/brw_shader.cpp index 470d77227ab..e78f2cbe50a 100644 --- a/src/intel/compiler/brw_shader.cpp +++ b/src/intel/compiler/brw_shader.cpp @@ -570,10 +570,10 @@ brw_saturate_immediate(enum brw_reg_type type, struct brw_reg *reg) /* Nothing to do. */ return false; case BRW_REGISTER_TYPE_F: - sat_imm.f = CLAMP(imm.f, 0.0f, 1.0f); + sat_imm.f = SATURATE(imm.f); break; case BRW_REGISTER_TYPE_DF: - sat_imm.df = CLAMP(imm.df, 0.0, 1.0); + sat_imm.df = SATURATE(imm.df); break; case BRW_REGISTER_TYPE_UB: case BRW_REGISTER_TYPE_B: