diff options
author | Brian Paul <[email protected]> | 2013-06-06 09:46:40 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-06-07 09:23:24 -0600 |
commit | 14541dacab218cbe82310d999d44130ebc3f6526 (patch) | |
tree | 1295e6f153bf8c3276f12ad51837bef67a4a81d4 /src/gallium/auxiliary/tgsi/tgsi_strings.h | |
parent | 97d641eb229e48cacc448eefb583381a27bd8af1 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_strings.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_strings.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.h b/src/gallium/auxiliary/tgsi/tgsi_strings.h index 5c57e229c28..43576465790 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_strings.h +++ b/src/gallium/auxiliary/tgsi/tgsi_strings.h @@ -40,8 +40,6 @@ extern "C" { extern const char *tgsi_processor_type_names[4]; -extern const char *tgsi_file_names[TGSI_FILE_COUNT]; - extern const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT]; extern const char *tgsi_texture_names[TGSI_TEXTURE_COUNT]; @@ -61,6 +59,10 @@ extern const char *tgsi_fs_coord_pixel_center_names[2]; extern const char *tgsi_immediate_type_names[3]; +const char * +tgsi_file_name(unsigned file); + + #if defined __cplusplus } #endif |