mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
pan/bi: Support bit_count()
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
58e887f07e
commit
06d6dd1b40
1 changed files with 4 additions and 0 deletions
|
|
@ -1517,6 +1517,10 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr)
|
|||
bi_clz_to(b, sz, dst, s0, false);
|
||||
break;
|
||||
|
||||
case nir_op_bit_count:
|
||||
bi_popcount_i32_to(b, dst, s0);
|
||||
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