summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2019-08-27 22:02:19 -0700
committerFrancisco Jerez <[email protected]>2019-10-11 12:24:16 -0700
commitc03869323b2d3da648385690b277571be8277886 (patch)
tree87535e662ff0a532dd419118c82ab931ab42539a /src/intel
parentf15e0b3439dc005933c560e1f5be66dba629ffdc (diff)
intel/disasm: Don't disassemble saturate control on SEND instructions.
The field is gone on Gen12+ and it was illegal on previous generations. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/compiler/brw_disasm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_disasm.c b/src/intel/compiler/brw_disasm.c
index 594ea665a9c..44c6995d7fd 100644
--- a/src/intel/compiler/brw_disasm.c
+++ b/src/intel/compiler/brw_disasm.c
@@ -1663,8 +1663,10 @@ brw_disassemble_inst(FILE *file, const struct gen_device_info *devinfo,
}
err |= print_opcode(file, devinfo, opcode);
- err |= control(file, "saturate", saturate, brw_inst_saturate(devinfo, inst),
- NULL);
+
+ if (!is_send(opcode))
+ err |= control(file, "saturate", saturate, brw_inst_saturate(devinfo, inst),
+ NULL);
err |= control(file, "debug control", debug_ctrl,
brw_inst_debug_control(devinfo, inst), NULL);