Quieten TGSI
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 9 Aug 2007 10:22:45 +0000 (11:22 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 9 Aug 2007 10:23:19 +0000 (11:23 +0100)
src/mesa/state_tracker/st_atom_fs.c

index 9ca1807913cc7c223962fc3174724f5afa4ae4a1..58875de3f94b37a23058330279cefdb6d4d45b70 100644 (file)
@@ -37,6 +37,8 @@
 #include "pipe/tgsi/mesa/mesa_to_tgsi.h"
 #include "pipe/tgsi/core/tgsi_dump.h"
 
+#define TGSI_DEBUG 0
+
 static void compile_fs( struct st_context *st,
                        struct st_fragment_program *fs )
 {
@@ -44,7 +46,8 @@ static void compile_fs( struct st_context *st,
     */
    tgsi_mesa_compile_fp_program( &fs->Base, fs->tokens, ST_FP_MAX_TOKENS );
 
-   tgsi_dump( fs->tokens, TGSI_DUMP_VERBOSE );
+   if (TGSI_DEBUG)
+      tgsi_dump( fs->tokens, TGSI_DUMP_VERBOSE );
 }