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 cd8871e..ccf4b20 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 1657759..b2375c6 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