tgsi: added tgsi_get_opcode_name()
authorBrian Paul <brianp@vmware.com>
Fri, 31 Jul 2009 16:23:09 +0000 (10:23 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Aug 2009 17:24:09 +0000 (11:24 -0600)
src/gallium/auxiliary/tgsi/tgsi_info.c
src/gallium/auxiliary/tgsi/tgsi_info.h

index cd8871e32dde33734606f1c8d14dd659ce3b654c..ccf4b205ffb91d942b53a5b9883df35b42383188 100644 (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;
+}
+
index 16577598bb0a13933a4a5bba90da85fa95d83445..b2375c697105b858a62db53bda6ae814ada18369 100644 (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