Parcourir la source

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>
tags/mesa-8.0-rc1
Dave Airlie il y a 14 ans
Parent
révision
9cea86f501

+ 2
- 1
src/gallium/auxiliary/tgsi/tgsi_strings.c Voir le fichier

@@ -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] =

+ 2
- 1
src/gallium/include/pipe/p_shader_tokens.h Voir le fichier

@@ -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
{

Chargement…
Annuler
Enregistrer