compiler/nir: add an is_conversion field to nir_op_info
This is set to True only for numeric conversion opcodes. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:

committed by
Jason Ekstrand

parent
55e6454d5e
commit
ca2b5e9069
@@ -918,6 +918,9 @@ typedef struct {
|
||||
nir_alu_type input_types[NIR_MAX_VEC_COMPONENTS];
|
||||
|
||||
nir_op_algebraic_property algebraic_properties;
|
||||
|
||||
/* Whether this represents a numeric conversion opcode */
|
||||
bool is_conversion;
|
||||
} nir_op_info;
|
||||
|
||||
extern const nir_op_info nir_op_infos[nir_num_opcodes];
|
||||
|
Reference in New Issue
Block a user