GLuint index,\r
GLuint interpolate,\r
GLuint usage_mask,\r
+ GLboolean semantic_info,\r
GLuint semantic_name,\r
GLuint semantic_index )\r
{\r
decl.Declaration.File = TGSI_FILE_INPUT;\r
decl.Declaration.Declare = TGSI_DECLARE_RANGE;\r
decl.Declaration.UsageMask = usage_mask;\r
- decl.Declaration.Semantic = 1;\r
+ decl.Declaration.Semantic = semantic_info;\r
decl.Declaration.Interpolate = 1;\r
decl.u.DeclarationRange.First = index;\r
decl.u.DeclarationRange.Last = index;\r
- decl.Semantic.SemanticName = semantic_name;\r
- decl.Semantic.SemanticIndex = semantic_index;\r
+ if (semantic_info) {\r
+ decl.Semantic.SemanticName = semantic_name;\r
+ decl.Semantic.SemanticIndex = semantic_index;\r
+ }\r
decl.Interpolation.Interpolate = interpolate;\r
\r
return decl;\r
fulldecl = make_input_decl(i,\r
TGSI_INTERPOLATE_CONSTANT,\r
TGSI_WRITEMASK_XY,\r
- TGSI_SEMANTIC_POSITION, 0 );\r
+ GL_TRUE, TGSI_SEMANTIC_POSITION, 0 );\r
ti += tgsi_build_full_declaration(\r
&fulldecl,\r
&tokens[ti],\r
fulldecl = make_input_decl(i,\r
TGSI_INTERPOLATE_LINEAR,\r
TGSI_WRITEMASK_ZW,\r
- TGSI_SEMANTIC_POSITION, 0 );\r
+ GL_TRUE, TGSI_SEMANTIC_POSITION, 0 );\r
ti += tgsi_build_full_declaration(\r
&fulldecl,\r
&tokens[ti],\r
fulldecl = make_input_decl(i,\r
interpMode[i],\r
TGSI_WRITEMASK_XYZW,\r
- inputSemanticName[i],\r
+ GL_TRUE, inputSemanticName[i],\r
inputSemanticIndex[i]);\r
ti += tgsi_build_full_declaration(&fulldecl,\r
&tokens[ti],\r
fulldecl = make_input_decl(i,\r
TGSI_INTERPOLATE_CONSTANT, /* no interp */\r
TGSI_WRITEMASK_XYZW,\r
- inputSemanticName[i],\r
+ GL_FALSE, inputSemanticName[i],\r
inputSemanticIndex[i]);\r
ti += tgsi_build_full_declaration(&fulldecl,\r
&tokens[ti],\r