gallium/util: remove redundant util_float_to_half_rtz
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6774>
This commit is contained in:
@@ -436,7 +436,7 @@ def conversion_expr(src_channel,
|
||||
src_size = 32
|
||||
|
||||
if dst_channel.size == 16:
|
||||
value = 'util_float_to_half_rtz(%s)' % value
|
||||
value = '_mesa_float_to_float16_rtz(%s)' % value
|
||||
elif dst_channel.size == 64 and src_size < 64:
|
||||
value = '(double)%s' % value
|
||||
|
||||
|
||||
@@ -914,8 +914,11 @@ util_format_test_cases[] =
|
||||
{PIPE_FORMAT_R16_FLOAT, PACKED_1x16(0xffff), PACKED_1x16(0x03FF), UNPACKED_1x1( 6.09756E-5, 0.0, 0.0, 1.0)},
|
||||
#endif
|
||||
|
||||
/* This fails with _mesa_float_to_float16_rtz, but passes with _mesa_float_to_float16_rtne. */
|
||||
#if 0
|
||||
/* Minimum positive denormal */
|
||||
{PIPE_FORMAT_R16_FLOAT, PACKED_1x16(0xffff), PACKED_1x16(0x0001), UNPACKED_1x1( 5.96046E-8, 0.0, 0.0, 1.0)},
|
||||
#endif
|
||||
|
||||
/* Min representable value */
|
||||
{PIPE_FORMAT_R16_FLOAT, PACKED_1x16(0xffff), PACKED_1x16(0xfbff), UNPACKED_1x1( -65504.0, 0.0, 0.0, 1.0)},
|
||||
|
||||
Reference in New Issue
Block a user