Module: Mesa Branch: master Commit: 9cea86f501eab1f72a148280c12286244cd26acf URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cea86f501eab1f72a148280c12286244cd26acf
Author: Dave Airlie <[email protected]> Date: Wed Jan 4 11:48:24 2012 +0000 gallium: add new semantic for clip vertex. This is to match the gl_ClipVertex output from GLSL 1.20. Signed-off-by: Dave Airlie <[email protected]> --- src/gallium/auxiliary/tgsi/tgsi_strings.c | 3 ++- src/gallium/include/pipe/p_shader_tokens.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c index 9516095..973b9fe 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_strings.c +++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c @@ -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] = diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index 330e0ba..b24b64c 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -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 { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
