tgsi: replace tgsi_file_names tgsi_file_names[] with tgsi_file_name() function
authorBrian Paul <brianp@vmware.com>
Thu, 6 Jun 2013 15:46:40 +0000 (09:46 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Jun 2013 15:23:24 +0000 (09:23 -0600)
commit14541dacab218cbe82310d999d44130ebc3f6526
tree1295e6f153bf8c3276f12ad51837bef67a4a81d4
parent97d641eb229e48cacc448eefb583381a27bd8af1
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>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c
src/gallium/auxiliary/tgsi/tgsi_dump.c
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/auxiliary/tgsi/tgsi_strings.h
src/gallium/auxiliary/tgsi/tgsi_text.c
src/gallium/drivers/freedreno/freedreno_compiler.c
src/gallium/drivers/ilo/shader/toy_tgsi.c