From 85b5dac705fcf3fafb734696e1f863cfc21e2d6e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 5 Jan 2012 08:30:00 -0700 Subject: 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 --- src/gallium/auxiliary/tgsi/tgsi_dump.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/gallium/auxiliary/tgsi/tgsi_dump.h') diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.h b/src/gallium/auxiliary/tgsi/tgsi_dump.h index 2491e9198a2..adaef9d89fe 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_dump.h +++ b/src/gallium/auxiliary/tgsi/tgsi_dump.h @@ -36,27 +36,6 @@ extern "C" { #endif -extern const char * -tgsi_file_names[TGSI_FILE_COUNT]; - -extern const char * -tgsi_swizzle_names[4]; - -extern const char * -tgsi_texture_names[TGSI_TEXTURE_COUNT]; - -extern const char * -tgsi_property_names[TGSI_PROPERTY_COUNT]; - -extern const char * -tgsi_primitive_names[PIPE_PRIM_MAX]; - -extern const char * -tgsi_fs_coord_origin_names[2]; - -extern const char * -tgsi_fs_coord_pixel_center_names[2]; - void tgsi_dump_str( const struct tgsi_token *tokens, -- cgit v1.2.3