Quieten TGSI

This commit is contained in:
Keith Whitwell 2007-08-09 11:22:29 +01:00
parent 4e517f9b0a
commit 17dde8dbb1
2 changed files with 12 additions and 5 deletions

View file

@ -1277,6 +1277,8 @@ tgsi_dump(
tgsi_parse_free( &parse );
fclose( dump->file );
if (dump->file != stderr &&
dump->file != stdout)
fclose( dump->file );
}

View file

@ -1,6 +1,8 @@
#include "tgsi_platform.h"
#include "tgsi_mesa.h"
#define TGSI_DEBUG 0
/*
* Map mesa register file to SBIR register file.
*/
@ -571,9 +573,11 @@ tgsi_mesa_compile_fp_program(
preamble_size,
TGSI_PROCESSOR_FRAGMENT ) ) {
assert( i == program->Base.NumInstructions - 1 );
tgsi_dump(
tokens,
0/*TGSI_DUMP_VERBOSE | TGSI_DUMP_NO_IGNORED | TGSI_DUMP_NO_DEFAULT*/ );
if (TGSI_DEBUG)
tgsi_dump(
tokens,
0/*TGSI_DUMP_VERBOSE | TGSI_DUMP_NO_IGNORED | TGSI_DUMP_NO_DEFAULT*/ );
break;
}
@ -617,7 +621,8 @@ tgsi_mesa_compile_vp_program(
0,
TGSI_PROCESSOR_VERTEX ) ) {
assert( ii == program->Base.NumInstructions - 1 );
tgsi_dump( tokens, TGSI_DUMP_NO_IGNORED | TGSI_DUMP_NO_DEFAULT );
if (TGSI_DEBUG)
tgsi_dump( tokens, TGSI_DUMP_NO_IGNORED | TGSI_DUMP_NO_DEFAULT );
break;
}