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