gallium: add TGSI_SEMANTIC_VERTEXID

This commit is contained in:
Christoph Bumiller
2011-11-14 18:12:46 +01:00
parent a2bcaba1cd
commit e7ccd703a2
5 changed files with 9 additions and 2 deletions

View File

@@ -128,6 +128,7 @@ static const char *semantic_names[] =
"EDGEFLAG",
"PRIM_ID",
"INSTANCEID",
"VERTEXID",
"STENCIL"
};

View File

@@ -182,6 +182,9 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
if (fulldecl->Semantic.Name == TGSI_SEMANTIC_INSTANCEID) {
info->uses_instanceid = TRUE;
}
else if (fulldecl->Semantic.Name == TGSI_SEMANTIC_VERTEXID) {
info->uses_vertexid = TRUE;
}
}
else if (file == TGSI_FILE_OUTPUT) {
info->output_semantic_name[reg] = (ubyte)fulldecl->Semantic.Name;

View File

@@ -70,6 +70,7 @@ struct tgsi_shader_info
boolean writes_edgeflag; /**< vertex shader outputs edgeflag */
boolean uses_kill; /**< KIL or KILP instruction used? */
boolean uses_instanceid;
boolean uses_vertexid;
boolean origin_lower_left;
boolean pixel_center_integer;
boolean color0_writes_all_cbufs;

View File

@@ -1023,6 +1023,7 @@ static const char *semantic_names[TGSI_SEMANTIC_COUNT] =
"EDGEFLAG",
"PRIM_ID",
"INSTANCEID",
"VERTEXID",
"STENCIL"
};

View File

@@ -144,8 +144,9 @@ struct tgsi_declaration_dimension
#define TGSI_SEMANTIC_EDGEFLAG 8
#define TGSI_SEMANTIC_PRIMID 9
#define TGSI_SEMANTIC_INSTANCEID 10
#define TGSI_SEMANTIC_STENCIL 11
#define TGSI_SEMANTIC_COUNT 12 /**< number of semantic values */
#define TGSI_SEMANTIC_VERTEXID 11
#define TGSI_SEMANTIC_STENCIL 12
#define TGSI_SEMANTIC_COUNT 13 /**< number of semantic values */
struct tgsi_declaration_semantic
{