brw: Fix disassembler trying to decode 3src_hstride in Gfx9

This field is not encoded for Gfx9, so use the fixed value
that makes sense for that platform.

Fixes: 9dfff2cb14 ("brw: Allow generating destination with stride 2 in 3-src instructions")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12881
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34197>
This commit is contained in:
Caio Oliveira 2025-03-25 13:16:41 -07:00 committed by Marge Bot
parent 4ee3c302ce
commit 72aefea0a0

View file

@ -1000,7 +1000,7 @@ dest_3src(FILE *file, const struct intel_device_info *devinfo,
if (subreg_nr)
format(file, ".%u", subreg_nr);
string(file, "<");
unsigned _horiz_stride =
unsigned _horiz_stride = devinfo->ver == 9 ? BRW_HORIZONTAL_STRIDE_1 :
hstride_from_align1_3src_dst_hstride(brw_eu_inst_3src_a1_dst_hstride(devinfo, inst));
err |= control(file, "horiz_stride", horiz_stride, _horiz_stride, NULL);
string(file, ">");