From: Alyssa Rosenzweig Date: Sun, 2 May 2021 13:36:09 +0000 (-0400) Subject: agx: Add b2i implementation X-Git-Tag: upstream/21.2.3~3978 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3abe997caef8f997768a34d80c9fca6915208de;p=platform%2Fupstream%2Fmesa.git agx: Add b2i implementation Another icmpsel variant. Signed-off-by: Alyssa Rosenzweig Acked-by: Jason Ekstrand Acked-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index fe5fba7..c437bd4 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -425,6 +425,10 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr) case nir_op_ushr: return agx_bfeil_to(b, dst, agx_zero(), s0, s1, 0); case nir_op_ishr: return agx_asr_to(b, dst, s0, s1); + case nir_op_b2i32: + case nir_op_b2i16: + return agx_icmpsel_to(b, dst, s0, agx_zero(), agx_zero(), agx_immediate(1), AGX_ICOND_UEQ); + case nir_op_b2f16: case nir_op_b2f32: {