From 67b61520ce1fabe2256e606ea73729f44d57fa99 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 24 Jul 2007 13:48:20 -0600 Subject: added missing OPCODE_ARL to TGSI_OPCODES[], added sanity check assertion --- src/mesa/pipe/tgsi/core/tgsi_dump.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/pipe/tgsi/core/tgsi_dump.c b/src/mesa/pipe/tgsi/core/tgsi_dump.c index 0345fd93f7f..33a898ea042 100644 --- a/src/mesa/pipe/tgsi/core/tgsi_dump.c +++ b/src/mesa/pipe/tgsi/core/tgsi_dump.c @@ -179,6 +179,7 @@ static const char *TGSI_IMMS[] = static const char *TGSI_OPCODES[] = { + "OPCODE_ARL", "OPCODE_MOV", "OPCODE_LIT", "OPCODE_RCP", @@ -404,7 +405,7 @@ tgsi_dump( static GLuint counter = 0; char buffer[64]; - sprintf( buffer, "sbir-dump-%.4u.txt", counter++ ); + sprintf( buffer, "tgsi-dump-%.4u.txt", counter++ ); dump.file = fopen( buffer, "wt" ); #else dump.file = stderr; @@ -412,9 +413,12 @@ tgsi_dump( #endif } + /* sanity check */ + assert(strcmp(TGSI_OPCODES[TGSI_OPCODE_CONT], "OPCODE_CONT") == 0); + tgsi_parse_init( &parse, tokens ); - TXT( "sbir-dump" ); + TXT( "tgsi-dump begin" ); CHR( '\n' ); TXT( "\nMajorVersion: " ); @@ -868,6 +872,8 @@ tgsi_dump( } } + TXT( "\ntgsi-dump end\n" ); + tgsi_parse_free( &parse ); fclose( dump.file ); -- cgit v1.2.3