From 6f2b1cece6c85f8229a3e7c16a2a839ad017e9be Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 30 Apr 2026 10:08:43 -0400 Subject: [PATCH] jay: model MAC Signed-off-by: Alyssa Rosenzweig Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/jay/jay_opcodes.py | 2 ++ src/intel/compiler/jay/jay_to_binary.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/intel/compiler/jay/jay_opcodes.py b/src/intel/compiler/jay/jay_opcodes.py index c27bfe35c4a..d945fa54c02 100644 --- a/src/intel/compiler/jay/jay_opcodes.py +++ b/src/intel/compiler/jay/jay_opcodes.py @@ -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', diff --git a/src/intel/compiler/jay/jay_to_binary.c b/src/intel/compiler/jay/jay_to_binary.c index 3a8eefdc10d..e5cbc1149ea 100644 --- a/src/intel/compiler/jay/jay_to_binary.c +++ b/src/intel/compiler/jay/jay_to_binary.c @@ -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)