From b62b0cfa7141250622229face8a8b338c344f9d2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 2 Aug 2019 15:21:14 -0500 Subject: [PATCH] intel/nir: Add 1-bit opcodes to brw_cmod_for_nir_comparison_op Reviewed-by: Matt Turner --- src/intel/compiler/brw_nir.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 18cd13ed66e..b331e62f91a 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -1045,17 +1045,25 @@ enum brw_conditional_mod brw_cmod_for_nir_comparison(nir_op op) { switch (op) { + case nir_op_flt: case nir_op_flt32: + case nir_op_ilt: case nir_op_ilt32: + case nir_op_ult: case nir_op_ult32: return BRW_CONDITIONAL_L; + case nir_op_fge: case nir_op_fge32: + case nir_op_ige: case nir_op_ige32: + case nir_op_uge: case nir_op_uge32: return BRW_CONDITIONAL_GE; + case nir_op_feq: case nir_op_feq32: + case nir_op_ieq: case nir_op_ieq32: case nir_op_b32all_fequal2: case nir_op_b32all_iequal2: @@ -1065,7 +1073,9 @@ brw_cmod_for_nir_comparison(nir_op op) case nir_op_b32all_iequal4: return BRW_CONDITIONAL_Z; + case nir_op_fne: case nir_op_fne32: + case nir_op_ine: case nir_op_ine32: case nir_op_b32any_fnequal2: case nir_op_b32any_inequal2: -- 2.30.2