mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
ir3/compiler: Handle new alu opcodes 'umul_low' and 'imadsh_mix16'
They directly emit ir3_MULL_U and ir3_MADSH_M16 respectively. Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
c27b3758fa
commit
e45de3a6c3
1 changed files with 6 additions and 0 deletions
|
|
@ -559,6 +559,12 @@ emit_alu(struct ir3_context *ctx, nir_alu_instr *alu)
|
|||
dst[0] = ir3_MUL_S(b, src[0], 0, src[1], 0);
|
||||
}
|
||||
break;
|
||||
case nir_op_umul_low:
|
||||
dst[0] = ir3_MULL_U(b, src[0], 0, src[1], 0);
|
||||
break;
|
||||
case nir_op_imadsh_mix16:
|
||||
dst[0] = ir3_MADSH_M16(b, src[0], 0, src[1], 0, src[2], 0);
|
||||
break;
|
||||
case nir_op_ineg:
|
||||
dst[0] = ir3_ABSNEG_S(b, src[0], IR3_REG_SNEG);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue