intel/disasm/gfx12+: Fix print out of non-existing condmod field with 64-bit immediate.
The conditional mode field doesn't exist for instructions with a 64-bit immediate, so this would currently print garbage. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20543>
This commit is contained in:

committed by
Marge Bot

parent
f3352745ad
commit
f80f29dc4b
@@ -1964,7 +1964,10 @@ brw_disassemble_inst(FILE *file, const struct brw_isa_info *isa,
|
||||
err |= control(file, "function", sync_function,
|
||||
brw_inst_cond_modifier(devinfo, inst), NULL);
|
||||
|
||||
} else if (!is_send(opcode)) {
|
||||
} else if (!is_send(opcode) &&
|
||||
(devinfo->ver < 12 ||
|
||||
brw_inst_src0_reg_file(devinfo, inst) != BRW_IMMEDIATE_VALUE ||
|
||||
type_sz(brw_inst_src0_type(devinfo, inst)) < 8)) {
|
||||
err |= control(file, "conditional modifier", conditional_modifier,
|
||||
brw_inst_cond_modifier(devinfo, inst), NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user