info->input_cylindrical_wrap[reg] = (ubyte)fulldecl->Interp.CylindricalWrap;
info->num_inputs++;
- if (procType == TGSI_PROCESSOR_FRAGMENT &&
- fulldecl->Semantic.Name == TGSI_SEMANTIC_POSITION)
+ if (procType == TGSI_PROCESSOR_FRAGMENT) {
+ if (fulldecl->Semantic.Name == TGSI_SEMANTIC_POSITION)
info->reads_position = TRUE;
+ else if (fulldecl->Semantic.Name == TGSI_SEMANTIC_PRIMID)
+ info->uses_primid = TRUE;
+ else if (fulldecl->Semantic.Name == TGSI_SEMANTIC_FACE)
+ info->uses_frontface = TRUE;
+ }
}
else if (file == TGSI_FILE_SYSTEM_VALUE) {
unsigned index = fulldecl->Range.First;
boolean uses_instanceid;
boolean uses_vertexid;
boolean uses_primid;
+ boolean uses_frontface;
boolean origin_lower_left;
boolean pixel_center_integer;
boolean color0_writes_all_cbufs;