From 8d22eb960b7246dd65aefbe581c443fdc2746541 Mon Sep 17 00:00:00 2001 From: Sviatoslav Peleshko Date: Sun, 6 Jul 2025 23:58:29 +0300 Subject: [PATCH] brw/disasm: Fix Gfx11 3src-instructions dst register disassembly The conversion from bit value to register file type is already done by the brw_eu_inst_3src_a1_dst_reg_file in the FFC macro now, so doing it again produced incorrect results. Fixes: e7179232 ("intel/brw: Move encoding of Gfx11 3-src inside the inst helpers") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13141 Signed-off-by: Sviatoslav Peleshko Reviewed-by: Caio Oliveira Part-of: --- src/intel/compiler/brw_disasm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/intel/compiler/brw_disasm.c b/src/intel/compiler/brw_disasm.c index 4935be6c5a9..50f89099f33 100644 --- a/src/intel/compiler/brw_disasm.c +++ b/src/intel/compiler/brw_disasm.c @@ -986,10 +986,8 @@ dest_3src(FILE *file, const struct intel_device_info *devinfo, if (devinfo->ver < 10 && is_align1) return 0; - if (devinfo->ver >= 12) + if (devinfo->ver >= 12 || is_align1) reg_file = brw_eu_inst_3src_a1_dst_reg_file(devinfo, inst); - else if (is_align1 && brw_eu_inst_3src_a1_dst_reg_file(devinfo, inst)) - reg_file = ARF; else reg_file = FIXED_GRF;