pan/bi: Add uclz() support

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8774>
This commit is contained in:
Boris Brezillon 2021-01-25 13:21:28 +01:00 committed by Alyssa Rosenzweig
parent 72c6173a85
commit 58e887f07e

View file

@ -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");