From 7ea2ad0b3999a8e5d7334447af5d3c32537366fa Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 19 May 2020 11:11:25 -0400 Subject: [PATCH] softpipe: Use SATURATE Signed-off-by: Alyssa Rosenzweig Reviewed-by: Eric Engestrom Part-of: --- src/gallium/drivers/softpipe/sp_state_blend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2