From 58e887f07e24ce644770a6257bebff32980469cf Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Mon, 25 Jan 2021 13:21:28 +0100 Subject: [PATCH] pan/bi: Add uclz() support Signed-off-by: Boris Brezillon Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 6eee47ffa0f..9fe70992e57 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -1513,6 +1513,10 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr) bi_frcp_to(b, sz, dst, s0); break; + case nir_op_uclz: + bi_clz_to(b, sz, dst, s0, false); + break; + default: fprintf(stderr, "Unhandled ALU op %s\n", nir_op_infos[instr->op].name); unreachable("Unknown ALU op");