From: Alyssa Rosenzweig Date: Tue, 19 May 2020 15:11:25 +0000 (-0400) Subject: softpipe: Use SATURATE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ea2ad0b3999a8e5d7334447af5d3c32537366fa;p=mesa.git softpipe: Use SATURATE Signed-off-by: Alyssa Rosenzweig Reviewed-by: Eric Engestrom Part-of: --- diff --git a/src/gallium/drivers/softpipe/sp_state_blend.c b/src/gallium/drivers/softpipe/sp_state_blend.c index 319bbccea2c..7351e09a5bb 100644 --- a/src/gallium/drivers/softpipe/sp_state_blend.c +++ b/src/gallium/drivers/softpipe/sp_state_blend.c @@ -79,7 +79,7 @@ softpipe_set_blend_color(struct pipe_context *pipe, /* save clamped color too */ for (i = 0; i < 4; i++) softpipe->blend_color_clamped.color[i] = - CLAMP(blend_color->color[i], 0.0f, 1.0f); + SATURATE(blend_color->color[i]); softpipe->dirty |= SP_NEW_BLEND; }