intel/disasm: Fix decoding of src0 of SENDS
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 7 Jan 2020 04:14:29 +0000 (22:14 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 8 Jan 2020 14:14:16 +0000 (14:14 +0000)
There is no instruction field for the register file for src0 because
it's always GRF.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3309>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3309>

src/intel/compiler/brw_disasm.c

index 7d821dbc1faa5ae6a6a29798056f07e20bcb1abf..31d932b9cbab946f9f2bbb6034ee23c8b323f68a 100644 (file)
@@ -1446,7 +1446,7 @@ src0(FILE *file, const struct gen_device_info *devinfo, const brw_inst *inst)
          return src_sends_da(file,
                              devinfo,
                              BRW_REGISTER_TYPE_UD,
-                             brw_inst_send_src0_reg_file(devinfo, inst),
+                             BRW_GENERAL_REGISTER_FILE,
                              brw_inst_src0_da_reg_nr(devinfo, inst),
                              brw_inst_src0_da16_subreg_nr(devinfo, inst));
       } else {