we need those for OpenCL Signed-off-by: Karol Herbst <kher...@redhat.com> --- src/compiler/nir/nir_opcodes.py | 2 +- src/compiler/nir/nir_opcodes_c.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 7070f53adef..f4cd175bc6a 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -179,7 +179,7 @@ for src_t in [tint, tuint, tfloat]: else: bit_sizes = [8, 16, 32, 64] for bit_size in bit_sizes: - if bit_size == 16 and dst_t == tfloat and src_t == tfloat: + if dst_t == tfloat and src_t == tfloat: rnd_modes = ['_rtne', '_rtz', ''] for rnd_mode in rnd_modes: unop_convert("{0}2{1}{2}{3}".format(src_t[0], dst_t[0], diff --git a/src/compiler/nir/nir_opcodes_c.py b/src/compiler/nir/nir_opcodes_c.py index 3edf1d4c225..19079f86e7b 100644 --- a/src/compiler/nir/nir_opcodes_c.py +++ b/src/compiler/nir/nir_opcodes_c.py @@ -69,7 +69,7 @@ nir_type_conversion_op(nir_alu_type src, nir_alu_type dst, nir_rounding_mode rnd % endif % for dst_bits in bit_sizes: case ${dst_bits}: -% if src_t == 'float' and dst_t == 'float' and dst_bits == 16: +% if src_t == 'float' and dst_t == 'float': switch(rnd) { % for rnd_t in [('rtne', '_rtne'), ('rtz', '_rtz'), ('undef', '')]: case nir_rounding_mode_${rnd_t[0]}: -- 2.14.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev