diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2008-02-15 18:54:00 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2008-02-21 19:17:27 +0000 |
commit | 1eaf7b775ba0dacff8a3debd7c0f260970e5a61d (patch) | |
tree | 0c1810552faead199424b061968ebb960505ccdf /src/gallium/auxiliary/tgsi | |
parent | de5c64e0af0b1a1ce3ee12f361341880dc260868 (diff) |
tgsi: print debug messages on failure to codegenerate
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rwxr-xr-x | src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c b/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c index 29a7f842ed..779b901f2b 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: |