From: Alyssa Rosenzweig Date: Tue, 19 May 2020 15:11:41 +0000 (-0400) Subject: i965: Use SATURATE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17199107fd2f55dbed674e37922773172152eeae;p=mesa.git i965: Use SATURATE Signed-off-by: Alyssa Rosenzweig Reviewed-by: Eric Engestrom Part-of: --- diff --git a/src/mesa/drivers/dri/i965/brw_meta_util.c b/src/mesa/drivers/dri/i965/brw_meta_util.c index 6a6d68425fa..268b3192de0 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_util.c +++ b/src/mesa/drivers/dri/i965/brw_meta_util.c @@ -365,7 +365,7 @@ brw_meta_convert_fast_clear_color(const struct brw_context *brw, switch (_mesa_get_format_datatype(mt->format)) { case GL_UNSIGNED_NORMALIZED: 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]); break; case GL_SIGNED_NORMALIZED: