diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-19 11:09:41 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-26 22:31:31 +0000 |
commit | f59d02a86dcf0e34cf43a223e44f51924e9ff4a8 (patch) | |
tree | 3a5f6dc962cae9cb2da05abfa3f386bf9aca0eb5 /src | |
parent | 7ea2ad0b3999a8e5d7334447af5d3c32537366fa (diff) |
intel: 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/intel/compiler/brw_shader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_shader.cpp b/src/intel/compiler/brw_shader.cpp index 470d77227ab..e78f2cbe50a 100644 --- a/src/intel/compiler/brw_shader.cpp +++ b/src/intel/compiler/brw_shader.cpp @@ -570,10 +570,10 @@ brw_saturate_immediate(enum brw_reg_type type, struct brw_reg *reg) /* Nothing to do. */ return false; case BRW_REGISTER_TYPE_F: - sat_imm.f = CLAMP(imm.f, 0.0f, 1.0f); + sat_imm.f = SATURATE(imm.f); break; case BRW_REGISTER_TYPE_DF: - sat_imm.df = CLAMP(imm.df, 0.0, 1.0); + sat_imm.df = SATURATE(imm.df); break; case BRW_REGISTER_TYPE_UB: case BRW_REGISTER_TYPE_B: |