From ca2b5e9069177ea603efbe250e675dc7d194ef90 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Tue, 12 Feb 2019 12:55:28 +0100 Subject: 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 Reviewed-by: Matt Turner Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/compiler/nir/nir.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/compiler/nir/nir.h') diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index a6690682c83..0d5b70b1c34 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -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]; -- cgit v1.2.3