mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
remove obsolete TXP, add some sanity checks
This commit is contained in:
parent
cedf6892e7
commit
127ab73b38
1 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue