Mesa (master): r300g: Be ever-so-slightly more useful on bad shaders.

Corbin Simpson csimpson at kemper.freedesktop.org
Tue Feb 9 21:54:25 UTC 2010


Module: Mesa
Branch: master
Commit: 5a27a77d009b44dcd2eb35c3b66bd88cf5005d24
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a27a77d009b44dcd2eb35c3b66bd88cf5005d24

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Tue Feb  9 13:50:38 2010 -0800

r300g: Be ever-so-slightly more useful on bad shaders.

---

 src/gallium/drivers/r300/r300_tgsi_to_rc.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_tgsi_to_rc.c b/src/gallium/drivers/r300/r300_tgsi_to_rc.c
index 941ec17..a88a947 100644
--- a/src/gallium/drivers/r300/r300_tgsi_to_rc.c
+++ b/src/gallium/drivers/r300/r300_tgsi_to_rc.c
@@ -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;
 }
 




More information about the mesa-commit mailing list