jay: model MAC

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41398>
This commit is contained in:
Alyssa Rosenzweig 2026-04-30 10:08:43 -04:00 committed by Marge Bot
parent b6e88ab904
commit 6f2b1cece6
2 changed files with 3 additions and 0 deletions

View file

@ -98,6 +98,8 @@ op('lzd', 1, 'u32')
op('frc', 1, 'f32 f64', Props.NEGATE | Props.CMOD)
op('mad', 3, 'u32 s32 u16 s16 f32 f64 f16 bf16',
Props.NEGATE | Props.SAT | Props.CMOD | Props.COMMUTATIVE)
op('mac', 3, 'f32', Props.NEGATE | Props.SAT | Props.CMOD |
Props.COMMUTATIVE)
op('max', 2, 'u32 s32 u64 s64 u16 s16 f32 f64 f16 bf16',
Props.NEGATE | Props.SAT | Props.COMMUTATIVE)
op('min', 2, 'u32 s32 u64 s64 u16 s16 f32 f64 f16 bf16',

View file

@ -341,6 +341,7 @@ emit(struct brw_codegen *p,
OP2(SHR, SHR)
OP2(SHL, SHL)
OP2(BFI1, BFI1)
OP2(MAC, MAC)
OP3(BFI2, BFI2)
OP3(ADD3, ADD3)
OP3(CSEL, CSEL)