mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
pan/bi: Implement ihadd/irhadd operations
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358>
This commit is contained in:
parent
591ccbcf47
commit
c9c637a707
1 changed files with 8 additions and 0 deletions
|
|
@ -1260,6 +1260,14 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr)
|
|||
bi_iadd_to(b, sz, dst, s0, s1, true);
|
||||
break;
|
||||
|
||||
case nir_op_ihadd:
|
||||
bi_hadd_to(b, sz, dst, s0, s1, BI_ROUND_RTN);
|
||||
break;
|
||||
|
||||
case nir_op_irhadd:
|
||||
bi_hadd_to(b, sz, dst, s0, s1, BI_ROUND_RTP);
|
||||
break;
|
||||
|
||||
case nir_op_isub:
|
||||
bi_isub_to(b, sz, dst, s0, s1, false);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue