diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-19 11:11:41 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-26 22:31:31 +0000 |
commit | 17199107fd2f55dbed674e37922773172152eeae (patch) | |
tree | 9651514e306002ddacad1df45ab97e0e9ce0e9a2 /src/mesa/drivers/dri | |
parent | f59d02a86dcf0e34cf43a223e44f51924e9ff4a8 (diff) |
i965: Use SATURATE
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5100>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_meta_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |