diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-07-24 13:48:20 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-07-24 13:48:20 -0600 |
commit | 67b61520ce1fabe2256e606ea73729f44d57fa99 (patch) | |
tree | 36d761b0daf774ef80294b01dc58cb22e606d94d /src/mesa/pipe/tgsi | |
parent | 3af7876521e23152bc82f42f00e1a1d51bd37812 (diff) |
added missing OPCODE_ARL to TGSI_OPCODES[], added sanity check assertion
Diffstat (limited to 'src/mesa/pipe/tgsi')
-rw-r--r-- | src/mesa/pipe/tgsi/core/tgsi_dump.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/pipe/tgsi/core/tgsi_dump.c b/src/mesa/pipe/tgsi/core/tgsi_dump.c index 0345fd93f7..33a898ea04 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 ); |