r300g: Be ever-so-slightly more useful on bad shaders.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 9 Feb 2010 21:50:38 +0000 (13:50 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 9 Feb 2010 21:50:38 +0000 (13:50 -0800)
src/gallium/drivers/r300/r300_tgsi_to_rc.c

index 941ec17016b1e670890d309a7c786a9486264f70..a88a9477b435b60930721a5b00765f7c30e014ab 100644 (file)
@@ -29,6 +29,7 @@
 #include "tgsi/tgsi_scan.h"
 #include "tgsi/tgsi_util.h"
 
+#include "util/u_debug.h"
 
 static unsigned translate_opcode(unsigned opcode)
 {
@@ -144,7 +145,8 @@ static unsigned translate_opcode(unsigned opcode)
         case TGSI_OPCODE_KIL: return RC_OPCODE_KIL;
     }
 
-    fprintf(stderr, "Unknown opcode: %i\n", opcode);
+    debug_printf("r300: Unknown TGSI/RC opcode: %i\n", opcode);
+    assert(0);
     return RC_OPCODE_ILLEGAL_OPCODE;
 }