From e9cec96633488ab382b0a67e1abf1af546c95639 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 8 Feb 2023 21:27:17 -0500 Subject: [PATCH] agx: Implement b2b32 Shows up with store_shared. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index e6529488623..fddfe2056e5 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -1131,6 +1131,10 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr) case nir_op_b2i16: return agx_icmpsel_to(b, dst, s0, i0, i0, i1, AGX_ICOND_UEQ); + case nir_op_b2b32: + return agx_icmpsel_to(b, dst, s0, i0, i0, agx_mov_imm(b, 32, ~0), + AGX_ICOND_UEQ); + case nir_op_b2f16: case nir_op_b2f32: { /* At this point, boolean is just zero/nonzero, so compare with zero */