mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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:
parent
72c6173a85
commit
58e887f07e
1 changed files with 4 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue