summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-07-30 00:44:56 +0900
committerJosé Fonseca <[email protected]>2008-07-30 00:44:56 +0900
commit76164bf7a20ef6dabc3204a766f604becfba9997 (patch)
tree56625fb4bcefe0a8906e2bd69cc5d0df05ac757b /src/gallium/auxiliary/tgsi
parent28454a512a9b1c1e9f70a04b43c34f239abd6ba7 (diff)
tgsi: Insert newlines after the statements, instead of before.
Prevents shader dumps from getting concatenated with the next debug message.
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_dump.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c
index d2e6375212f..290d78bb14b 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_dump.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c
@@ -332,7 +332,7 @@ void
tgsi_dump_declaration(
const struct tgsi_full_declaration *decl )
{
- TXT( "\nDCL " );
+ TXT( "DCL " );
_dump_register(
decl->Declaration.File,
@@ -354,6 +354,8 @@ tgsi_dump_declaration(
TXT( ", " );
ENM( decl->Declaration.Interpolate, interpolate_names );
+
+ EOL();
}
static boolean
@@ -407,7 +409,6 @@ tgsi_dump_instruction(
uint i;
boolean first_reg = TRUE;
- EOL();
UID( instno );
CHR( ':' );
ENM( inst->Instruction.Opcode, opcode_names );
@@ -534,6 +535,8 @@ tgsi_dump_instruction(
UID( inst->InstructionExtLabel.Label );
break;
}
+
+ EOL();
}
static boolean
@@ -551,11 +554,11 @@ static boolean
prolog(
struct tgsi_iterate_context *ctx )
{
- EOL();
ENM( ctx->processor.Processor, processor_type_names );
UID( ctx->version.MajorVersion );
CHR( '.' );
UID( ctx->version.MinorVersion );
+ EOL();
return TRUE;
}