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 9516095bd8b5d45f90a0876d6b48ef8351b5ab13..973b9fec0d2bd3334f137bce4774c9b685979d69 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 330e0ba74cd041529ee4b4c5a625e794827811b7..b24b64c586111288e423fa53309a24b963b982fb 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
 {