gallium: add TGSI_SEMANTIC_VERTEXID
This commit is contained in:
@@ -128,6 +128,7 @@ static const char *semantic_names[] =
|
||||
"EDGEFLAG",
|
||||
"PRIM_ID",
|
||||
"INSTANCEID",
|
||||
"VERTEXID",
|
||||
"STENCIL"
|
||||
};
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -1023,6 +1023,7 @@ static const char *semantic_names[TGSI_SEMANTIC_COUNT] =
|
||||
"EDGEFLAG",
|
||||
"PRIM_ID",
|
||||
"INSTANCEID",
|
||||
"VERTEXID",
|
||||
"STENCIL"
|
||||
};
|
||||
|
||||
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user