tgsi: consolidate TGSI string arrays in new tgsi_strings.h
authorBrian Paul <brianp@vmware.com>
Thu, 5 Jan 2012 15:30:00 +0000 (08:30 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Jan 2012 16:01:43 +0000 (09:01 -0700)
commit85b5dac705fcf3fafb734696e1f863cfc21e2d6e
treefe4596433fca3a13756e90a94aa57ac0a8bc8235
parent188aca34923d109323e0e1a882c69f2b422b5cae
tgsi: consolidate TGSI string arrays in new tgsi_strings.h

There was some duplication between the tgsi_dump.c and tgsi_text.c
files.  Also use some static assertions to help catch errors when
adding new TGSI values.

v2: put strings in tgsi_strings.c file instead of the .h file.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c
src/gallium/auxiliary/tgsi/tgsi_dump.c
src/gallium/auxiliary/tgsi/tgsi_dump.h
src/gallium/auxiliary/tgsi/tgsi_strings.c [new file with mode: 0644]
src/gallium/auxiliary/tgsi/tgsi_strings.h [new file with mode: 0644]
src/gallium/auxiliary/tgsi/tgsi_text.c