From 1fb681e51d02357093533f55f7432a9bf0476472 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 23 Feb 2021 23:41:32 +0000 Subject: [PATCH] pan/bi: Emit int CSEL instead of float by default Will be needed when we use 1-bit booleans. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index bc8e998d4d6..0b7bae63c9e 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -1689,7 +1689,7 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr) if (sz == 8) bi_mux_v4i8_to(b, dst, s2, s1, s0, BI_MUX_INT_ZERO); else - bi_csel_to(b, nir_type_float, sz, dst, s0, bi_zero(), s1, s2, BI_CMPF_NE); + bi_csel_to(b, nir_type_int, sz, dst, s0, bi_zero(), s1, s2, BI_CMPF_NE); break; case nir_op_ishl: