summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_info.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-07-31 10:23:09 -0600
committerBrian Paul <[email protected]>2009-08-03 11:24:09 -0600
commitc3c90c2dd95ba4f714c6d5fdf5793e1db1a191ca (patch)
tree64dd68f1b98b5fc20d15713653a0fb99894c0d91 /src/gallium/auxiliary/tgsi/tgsi_info.c
parent2e9bf100143c45ed169cc2d9875dc1b528a94ba5 (diff)
tgsi: added tgsi_get_opcode_name()
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_info.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_info.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.c b/src/gallium/auxiliary/tgsi/tgsi_info.c
index cd8871e32dd..ccf4b205ffb 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_info.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_info.c
@@ -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;
+}
+