mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
pan/bi: Implement bitfield_reverse
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8774>
This commit is contained in:
parent
06d6dd1b40
commit
2ef97a079a
1 changed files with 4 additions and 0 deletions
|
|
@ -1521,6 +1521,10 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr)
|
|||
bi_popcount_i32_to(b, dst, s0);
|
||||
break;
|
||||
|
||||
case nir_op_bitfield_reverse:
|
||||
bi_bitrev_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