aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/softfloat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/softfloat.c b/src/util/softfloat.c
index 591128efd47..365b15bbf0c 100644
--- a/src/util/softfloat.c
+++ b/src/util/softfloat.c
@@ -211,7 +211,7 @@ uint16_t _mesa_roundtozero_f16(int16_t s, int16_t e, int16_t m)
if (e < 0) {
m = _mesa_shift_right_jam32(m, -e);
e = 0;
- } else if ((e > 0x1d) || (0x8000 <= m)) {
+ } else if (e > 0x1d) {
e = 0x1f;
m = 0;
return (s << 15) + (e << 10) + m - 1;