Mesa (mesa_7_5_branch): tgsi: tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE

Brian Paul brianp at kemper.freedesktop.org
Fri Jul 10 22:34:57 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: a79586ce180a77beb15f6a9b6a72d490ad6e6afd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a79586ce180a77beb15f6a9b6a72d490ad6e6afd

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Jul 10 15:44:48 2009 -0600

tgsi: tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE

Same story as in the tgsi_dump.c code (see prev commit).

---

 src/gallium/auxiliary/tgsi/tgsi_text.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

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




More information about the mesa-commit mailing list