tgsi: added tgsi_get_opcode_name()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user