mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 03:38:06 +02:00
ir3: Implement [iu]sub_sat.
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17468>
This commit is contained in:
parent
9a83ccf1fa
commit
d9fb1b05eb
1 changed files with 8 additions and 0 deletions
|
|
@ -826,6 +826,14 @@ emit_alu(struct ir3_context *ctx, nir_alu_instr *alu)
|
|||
dst[0] = ir3_ADD_S(b, src[0], 0, src[1], 0);
|
||||
dst[0]->flags |= IR3_INSTR_SAT;
|
||||
break;
|
||||
case nir_op_usub_sat:
|
||||
dst[0] = ir3_SUB_U(b, src[0], 0, src[1], 0);
|
||||
dst[0]->flags |= IR3_INSTR_SAT;
|
||||
break;
|
||||
case nir_op_isub_sat:
|
||||
dst[0] = ir3_SUB_S(b, src[0], 0, src[1], 0);
|
||||
dst[0]->flags |= IR3_INSTR_SAT;
|
||||
break;
|
||||
|
||||
case nir_op_udot_4x8_uadd:
|
||||
case nir_op_udot_4x8_uadd_sat:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue