intel/brw: Fix typo in DPAS emission code

The enums were mixed up.  Code was working because they were being
used only for their numerical values.

Fixes: e666872c75 ("intel/compiler: Initial bits for DPAS instruction")
Acked-by: Iván Briano <ivan.briano@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29762>
This commit is contained in:
Caio Oliveira
2024-06-17 23:27:48 -07:00
committed by Marge Bot
parent c3c398d56d
commit f982d2bb79
+2 -2
View File
@@ -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;