mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
iris: Use SATURATE
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5100>
This commit is contained in:
parent
17199107fd
commit
bb5e10af24
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ convert_fast_clear_color(struct iris_context *ice,
|
||||||
|
|
||||||
if (util_format_is_unorm(format)) {
|
if (util_format_is_unorm(format)) {
|
||||||
for (int i = 0; i < 4; i++)
|
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)) {
|
} else if (util_format_is_snorm(format)) {
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
override_color.f32[i] = CLAMP(override_color.f32[i], -1.0f, 1.0f);
|
override_color.f32[i] = CLAMP(override_color.f32[i], -1.0f, 1.0f);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue