summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_text.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-06-06 09:46:40 -0600
committerBrian Paul <brianp@vmware.com>2013-06-07 09:23:24 -0600
commit14541dacab218cbe82310d999d44130ebc3f6526 (patch)
tree1295e6f153bf8c3276f12ad51837bef67a4a81d4 /src/gallium/auxiliary/tgsi/tgsi_text.c
parent97d641eb229e48cacc448eefb583381a27bd8af1 (diff)
downloadexternal_mesa3d-14541dacab218cbe82310d999d44130ebc3f6526.zip
external_mesa3d-14541dacab218cbe82310d999d44130ebc3f6526.tar.gz
external_mesa3d-14541dacab218cbe82310d999d44130ebc3f6526.tar.bz2
tgsi: replace tgsi_file_names tgsi_file_names[] with tgsi_file_name() function
This change came from the discovery that the STATIC_ASSERT to check that the number of register file strings didn't actually work. Similar changes could be made for the other string arrays in tgsi_string.c Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_text.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
index 187e23e..688c5bc 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_text.c
@@ -322,7 +322,7 @@ parse_file( const char **pcur, uint *file )
for (i = 0; i < TGSI_FILE_COUNT; i++) {
const char *cur = *pcur;
- if (str_match_nocase_whole( &cur, tgsi_file_names[i] )) {
+ if (str_match_nocase_whole( &cur, tgsi_file_name(i) )) {
*pcur = cur;
*file = i;
return TRUE;