From: Keith Whitwell Date: Fri, 15 Feb 2008 18:54:00 +0000 (+0000) Subject: tgsi: print debug messages on failure to codegenerate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1eaf7b775ba0dacff8a3debd7c0f260970e5a61d;p=mesa.git tgsi: print debug messages on failure to codegenerate --- diff --git a/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c b/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c index 29a7f842ed8..779b901f2b8 100755 --- a/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c +++ b/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c @@ -2356,11 +2356,17 @@ tgsi_emit_sse2_fs( ok = emit_instruction( func, &parse.FullToken.FullInstruction ); + + if (!ok) { + debug_printf("failed to translate tgsi opcode %d\n", + parse.FullToken.FullInstruction.Instruction.Opcode ); + } break; case TGSI_TOKEN_TYPE_IMMEDIATE: /* XXX implement this */ ok = 0; + debug_printf("failed to emit immediate value\n"); break; default: