intel/tools: Show unknown instructions in decoded state.

Signed-off-by: Fan Yugang <yugang.fan@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9455>
This commit is contained in:
Fan Yugang 2021-03-03 08:54:12 +08:00 committed by Marge Bot
parent f532202f2d
commit 6905122999
1 changed files with 7 additions and 0 deletions

View File

@ -1112,6 +1112,13 @@ gen_print_batch(struct gen_batch_decode_ctx *ctx,
fprintf(ctx->fp, "%s0x%08"PRIx64": unknown instruction %08x%s\n",
(ctx->flags & GEN_BATCH_DECODE_IN_COLOR) ? RED_COLOR : "",
offset, p[0], reset_color);
for (int i=1; i < length; i++) {
fprintf(ctx->fp, "%s0x%08"PRIx64": -- %08x%s\n",
(ctx->flags & GEN_BATCH_DECODE_IN_COLOR) ? RED_COLOR : "",
offset + i * 4, p[i], reset_color);
}
continue;
}