gallium: add new semantic for clip vertex.

This is to match the gl_ClipVertex output from GLSL 1.20.

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie
2012-01-04 11:48:24 +00:00
parent 17707d89f4
commit 9cea86f501
2 changed files with 4 additions and 2 deletions

View File

@@ -71,7 +71,8 @@ const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT] =
"INSTANCEID", "INSTANCEID",
"VERTEXID", "VERTEXID",
"STENCIL", "STENCIL",
"CLIPDIST" "CLIPDIST",
"CLIPVERTEX"
}; };
const char *tgsi_texture_names[TGSI_TEXTURE_COUNT] = const char *tgsi_texture_names[TGSI_TEXTURE_COUNT] =

View File

@@ -147,7 +147,8 @@ struct tgsi_declaration_dimension
#define TGSI_SEMANTIC_VERTEXID 11 #define TGSI_SEMANTIC_VERTEXID 11
#define TGSI_SEMANTIC_STENCIL 12 #define TGSI_SEMANTIC_STENCIL 12
#define TGSI_SEMANTIC_CLIPDIST 13 #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 struct tgsi_declaration_semantic
{ {