src/util: Remove out-of-range comparison
[mesa.git] / src / util / format / u_format_pack.py
index 5a1763d1e6fa02dcd9f6564c29d0a3843c79ccf5..c8749a2c0474e7057a3bd9275434fd4daec0b3f8 100644 (file)
@@ -437,7 +437,7 @@ def conversion_expr(src_channel,
             src_size = 32
 
         if dst_channel.size == 16:
-            value = 'util_float_to_half(%s)' % value
+            value = 'util_float_to_half_rtz(%s)' % value
         elif dst_channel.size == 64 and src_size < 64:
             value = '(double)%s' % value