From: Alyssa Rosenzweig Date: Tue, 19 May 2020 15:11:17 +0000 (-0400) Subject: iris: Use SATURATE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb5e10af246b320796f11d6faccbf6dc4c43e4fe;p=mesa.git iris: Use SATURATE Signed-off-by: Alyssa Rosenzweig Reviewed-by: Eric Engestrom Part-of: --- diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c index 366b2e00990..d8e94a22cd9 100644 --- a/src/gallium/drivers/iris/iris_clear.c +++ b/src/gallium/drivers/iris/iris_clear.c @@ -138,7 +138,7 @@ convert_fast_clear_color(struct iris_context *ice, if (util_format_is_unorm(format)) { for (int i = 0; i < 4; i++) - override_color.f32[i] = CLAMP(override_color.f32[i], 0.0f, 1.0f); + override_color.f32[i] = SATURATE(override_color.f32[i]); } else if (util_format_is_snorm(format)) { for (int i = 0; i < 4; i++) override_color.f32[i] = CLAMP(override_color.f32[i], -1.0f, 1.0f);