From f982d2bb7976d3c581c5d42133695147c6c0ec10 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Mon, 17 Jun 2024 23:27:48 -0700 Subject: [PATCH] intel/brw: Fix typo in DPAS emission code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The enums were mixed up. Code was working because they were being used only for their numerical values. Fixes: e666872c751 ("intel/compiler: Initial bits for DPAS instruction") Acked-by: Iván Briano Reviewed-by: Ian Romanick Part-of: --- src/intel/compiler/brw_eu_emit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index efd632bde99..11bb27aa769 100644 --- a/src/intel/compiler/brw_eu_emit.c +++ b/src/intel/compiler/brw_eu_emit.c @@ -744,8 +744,8 @@ brw_alu3(struct brw_codegen *p, unsigned opcode, struct brw_reg dest, } static brw_inst * -brw_dpas_three_src(struct brw_codegen *p, enum gfx12_systolic_depth opcode, - unsigned sdepth, unsigned rcount, struct brw_reg dest, +brw_dpas_three_src(struct brw_codegen *p, enum opcode opcode, + enum gfx12_systolic_depth sdepth, unsigned rcount, struct brw_reg dest, struct brw_reg src0, struct brw_reg src1, struct brw_reg src2) { const struct intel_device_info *devinfo = p->devinfo;