tgsi: added tgsi_get_opcode_name()

This commit is contained in:
Brian Paul
2009-07-31 10:23:09 -06:00
parent 2e9bf10014
commit c3c90c2dd9
2 changed files with 13 additions and 0 deletions
+9
View File
@@ -170,3 +170,12 @@ tgsi_get_opcode_info( uint opcode )
assert( 0 );
return NULL;
}
const char *
tgsi_get_opcode_name( uint opcode )
{
const struct tgsi_opcode_info *info = tgsi_get_opcode_info(opcode);
return info->mnemonic;
}
+4
View File
@@ -47,6 +47,10 @@ struct tgsi_opcode_info
const struct tgsi_opcode_info *
tgsi_get_opcode_info( uint opcode );
const char *
tgsi_get_opcode_name( uint opcode );
#if defined __cplusplus
}
#endif