summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-02-12 12:55:28 +0100
committerJason Ekstrand <[email protected]>2019-03-06 17:24:57 +0000
commitca2b5e9069177ea603efbe250e675dc7d194ef90 (patch)
tree5bccf4ec9c9aefc5beacfa1214aed9a1c10bdb94 /src/compiler/nir/nir.h
parent55e6454d5e9dae6f8f29992af83f99217446da38 (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h3
1 files changed, 3 insertions, 0 deletions
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];