Mesa (master): intel/tools: Show unknown instructions in decoded state.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Mar 9 09:49:15 UTC 2021
Module: Mesa
Branch: master
Commit: 6905122999b1a2f96a092b3f2cdb6bb645e24027
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6905122999b1a2f96a092b3f2cdb6bb645e24027
Author: Fan Yugang <yugang.fan at intel.com>
Date: Wed Mar 3 08:54:12 2021 +0800
intel/tools: Show unknown instructions in decoded state.
Signed-off-by: Fan Yugang <yugang.fan at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9455>
---
src/intel/common/gen_batch_decoder.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c
index 7719b7b61da..6efadbfea2d 100644
--- a/src/intel/common/gen_batch_decoder.c
+++ b/src/intel/common/gen_batch_decoder.c
@@ -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;
}
More information about the mesa-commit
mailing list