summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-08-16 21:01:12 +0100
committerJosé Fonseca <[email protected]>2009-08-29 09:21:33 +0100
commit2c90652ed9e119f09af6757c59d10273894ba590 (patch)
tree6e955689a2def49ef68cde631039c30b558313c5
parent58f20b2b65ec0237202dad2be5db6b29d3cf6e93 (diff)
llvmpipe: More verbose error message when failed to translate opcodes.
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
index 60b9819fffe..85c264947b4 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
@@ -1472,10 +1472,10 @@ lp_build_tgsi_soa(LLVMBuilderRef builder,
case TGSI_TOKEN_TYPE_INSTRUCTION:
if (!emit_instruction( &bld, &parse.FullToken.FullInstruction )) {
- debug_printf("failed to translate tgsi opcode %d to SSE (%s)\n",
- parse.FullToken.FullInstruction.Instruction.Opcode,
- parse.FullHeader.Processor.Processor == TGSI_PROCESSOR_VERTEX ?
- "vertex shader" : "fragment shader");
+ unsigned opcode = parse.FullToken.FullInstruction.Instruction.Opcode;
+ const struct tgsi_opcode_info *info = tgsi_get_opcode_info(opcode);
+ _debug_printf("warning: failed to translate tgsi opcode %s to LLVM\n",
+ info ? info->mnemonic : "<invalid>");
}
break;