mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
llvmpipe: More verbose error message when failed to translate opcodes.
This commit is contained in:
parent
58f20b2b65
commit
2c90652ed9
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue