[Mesa-dev] [PATCH 05/47] nir: Populate conversion opcodes to/from 16-bit types

Alejandro PiƱeiro apinheiro at igalia.com
Thu Aug 24 13:54:20 UTC 2017


From: Eduardo Lima Mitev <elima at igalia.com>

This will include the following NIR ALU opcodes:
 * nir_op_i2i16
 * nir_op_i2f16
 * nir_op_u2u16
 * nir_op_u2f16
 * nir_op_f2i16
 * nir_op_f2u16
 * nir_op_f2f16

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
 src/compiler/nir/nir_opcodes_c.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/nir/nir_opcodes_c.py b/src/compiler/nir/nir_opcodes_c.py
index a1db54f05a8..02bb4738ed8 100644
--- a/src/compiler/nir/nir_opcodes_c.py
+++ b/src/compiler/nir/nir_opcodes_c.py
@@ -62,7 +62,7 @@ nir_type_conversion_op(nir_alu_type src, nir_alu_type dst)
 %                 endif
 %              endif
                switch (dst_bit_size) {
-%                 for dst_bits in [32, 64]:
+%                 for dst_bits in [16, 32, 64]:
                   case ${dst_bits}:
                      return ${'nir_op_{0}2{1}{2}'.format(src_t[0], dst_t[0], dst_bits)};
 %                 endfor
-- 
2.11.0



More information about the mesa-dev mailing list