Mesa (main): i915g: Improve logging of unsupported opcodes.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 28 22:17:31 UTC 2021


Module: Mesa
Branch: main
Commit: c786159186c4cd7e15aa4f0051b993cb2bda5f41
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c786159186c4cd7e15aa4f0051b993cb2bda5f41

Author: Emma Anholt <emma at anholt.net>
Date:   Sun Jun 27 14:35:32 2021 -0700

i915g: Improve logging of unsupported opcodes.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11617>

---

 src/gallium/drivers/i915/i915_fpc_translate.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c
index 107f2bd8a1d..4368ed1a9dd 100644
--- a/src/gallium/drivers/i915/i915_fpc_translate.c
+++ b/src/gallium/drivers/i915/i915_fpc_translate.c
@@ -35,6 +35,7 @@
 
 #include "pipe/p_shader_tokens.h"
 #include "tgsi/tgsi_dump.h"
+#include "tgsi/tgsi_info.h"
 #include "tgsi/tgsi_parse.h"
 #include "util/log.h"
 #include "util/u_math.h"
@@ -814,7 +815,9 @@ i915_translate_instruction(struct i915_fp_compile *p,
       break;
 
    default:
-      i915_program_error(p, "bad opcode %d", inst->Instruction.Opcode);
+      i915_program_error(p, "bad opcode %s (%d)",
+                         tgsi_get_opcode_name(inst->Instruction.Opcode),
+                         inst->Instruction.Opcode);
       p->error = 1;
       return;
    }



More information about the mesa-commit mailing list