diff options
author | Brian <[email protected]> | 2007-12-19 08:51:17 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-12-19 13:16:36 -0700 |
commit | 127ab73b380d9c26974d19062e3e16758005bd80 (patch) | |
tree | 7e0e2edff93de7be7a2b66628f4c40de81e447f0 /src/mesa/pipe/tgsi | |
parent | cedf6892e7cc29aab404b142012eec0b0603a414 (diff) |
remove obsolete TXP, add some sanity checks
Diffstat (limited to 'src/mesa/pipe/tgsi')
-rw-r--r-- | src/mesa/pipe/tgsi/util/tgsi_dump.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mesa/pipe/tgsi/util/tgsi_dump.c b/src/mesa/pipe/tgsi/util/tgsi_dump.c index 3f4d930dec5..cdbc0dbc9ca 100644 --- a/src/mesa/pipe/tgsi/util/tgsi_dump.c +++ b/src/mesa/pipe/tgsi/util/tgsi_dump.c @@ -453,7 +453,6 @@ static const char *TGSI_OPCODES[] = "OPCODE_CALLNZ", "OPCODE_IFC", "OPCODE_BREAKC", - "OPCODE_TXP", "OPCODE_KIL", "OPCODE_END" }; @@ -592,7 +591,6 @@ static const char *TGSI_OPCODES_SHORT[] = "CALLNZ", "IFC", "BREAKC", - "TXP", "KIL", "END" }; @@ -1518,6 +1516,15 @@ dump_gen( tgsi_parse_free( &parse ); } + +static void +sanity_checks(void) +{ + assert(strcmp(TGSI_OPCODES[TGSI_OPCODE_END], "OPCODE_END") == 0); + assert(strcmp(TGSI_OPCODES_SHORT[TGSI_OPCODE_END], "END") == 0); +} + + void tgsi_dump( const struct tgsi_token *tokens, @@ -1525,6 +1532,8 @@ tgsi_dump( { struct file_dump dump; + sanity_checks(); + dump.base.write = _file_dump_write; #if 0 { |