diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-19 11:11:17 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-26 22:31:31 +0000 |
commit | bb5e10af246b320796f11d6faccbf6dc4c43e4fe (patch) | |
tree | dd8fb53c1b0121a8832ed96d0c2203b7f4ed2e8d /src | |
parent | 17199107fd2f55dbed674e37922773172152eeae (diff) |
iris: 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')
-rw-r--r-- | src/gallium/drivers/iris/iris_clear.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |