OSDN Git Service

gallium: add new semantic for clip vertex.
authorDave Airlie <airlied@redhat.com>
Wed, 4 Jan 2012 11:48:24 +0000 (11:48 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 7 Jan 2012 08:36:24 +0000 (08:36 +0000)
This is to match the gl_ClipVertex output from GLSL 1.20.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/include/pipe/p_shader_tokens.h

index 9516095..973b9fe 100644 (file)
@@ -71,7 +71,8 @@ const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT] =
    "INSTANCEID",
    "VERTEXID",
    "STENCIL",
-   "CLIPDIST"
+   "CLIPDIST",
+   "CLIPVERTEX"
 };
 
 const char *tgsi_texture_names[TGSI_TEXTURE_COUNT] =
index 330e0ba..b24b64c 100644 (file)
@@ -147,7 +147,8 @@ struct tgsi_declaration_dimension
 #define TGSI_SEMANTIC_VERTEXID   11
 #define TGSI_SEMANTIC_STENCIL    12
 #define TGSI_SEMANTIC_CLIPDIST   13
-#define TGSI_SEMANTIC_COUNT      14 /**< number of semantic values */
+#define TGSI_SEMANTIC_CLIPVERTEX 14
+#define TGSI_SEMANTIC_COUNT      15 /**< number of semantic values */
 
 struct tgsi_declaration_semantic
 {