nir: Populate conversion opcodes to 16-bit types

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

v2: Remove "from" 16-bit in commit subject (Topi Pohjolainen)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Eduardo Lima Mitev 2017-07-01 08:01:21 +02:00 committed by Jose Maria Casanova Crespo
parent d711445430
commit 2af63683bc
1 changed files with 1 additions and 1 deletions

View File

@ -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