From c786159186c4cd7e15aa4f0051b993cb2bda5f41 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Sun, 27 Jun 2021 14:35:32 -0700 Subject: [PATCH] i915g: Improve logging of unsupported opcodes. Part-of: --- 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; }