From 72231b042c4c9cd2a18b707f46b427192905db81 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 13 Aug 2023 16:01:59 -0400 Subject: [PATCH] agx: Handle b2i8 Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 3877b1f5f96..04a6de36970 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -1223,6 +1223,7 @@ is_conversion_to_8bit(nir_op op) case nir_op_u2u8: case nir_op_f2i8: case nir_op_f2u8: + case nir_op_b2i8: return true; default: return false; @@ -1395,6 +1396,7 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr) case nir_op_b2i32: case nir_op_b2i16: + case nir_op_b2i8: return agx_icmpsel_to(b, dst, s0, i0, i0, i1, AGX_ICOND_UEQ); case nir_op_b2b32: