tgsi: tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE

Same story as in the tgsi_dump.c code (see prev commit).
This commit is contained in:
Brian Paul 2009-07-10 15:44:48 -06:00
parent f01af4dbd2
commit a79586ce18
1 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,7 @@
**************************************************************************/ **************************************************************************/
#include "util/u_debug.h" #include "util/u_debug.h"
#include "util/u_memory.h"
#include "tgsi_text.h" #include "tgsi_text.h"
#include "tgsi_build.h" #include "tgsi_build.h"
#include "tgsi_info.h" #include "tgsi_info.h"
@ -927,7 +928,8 @@ static const char *semantic_names[TGSI_SEMANTIC_COUNT] =
"FOG", "FOG",
"PSIZE", "PSIZE",
"GENERIC", "GENERIC",
"NORMAL" "NORMAL",
"FACE"
}; };
static const char *interpolate_names[TGSI_INTERPOLATE_COUNT] = static const char *interpolate_names[TGSI_INTERPOLATE_COUNT] =
@ -947,6 +949,9 @@ static boolean parse_declaration( struct translate_ctx *ctx )
const char *cur; const char *cur;
uint advance; uint advance;
assert(Elements(semantic_names) == TGSI_SEMANTIC_COUNT);
assert(Elements(interpolate_names) == TGSI_INTERPOLATE_COUNT);
if (!eat_white( &ctx->cur )) { if (!eat_white( &ctx->cur )) {
report_error( ctx, "Syntax error" ); report_error( ctx, "Syntax error" );
return FALSE; return FALSE;