tgsi: print debug messages on failure to codegenerate
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 15 Feb 2008 18:54:00 +0000 (18:54 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 21 Feb 2008 19:17:27 +0000 (19:17 +0000)
src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c

index 29a7f842ed82eeaeadf7e1429d66ee7f03822aa4..779b901f2b8289734becb72a0f0ac33e5f0442ab 100755 (executable)
@@ -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: