{
struct tgsi_declaration_interpolation di;
- assert( interpolate <= TGSI_INTERPOLATE_PERSPECTIVE );
+ assert( interpolate <= TGSI_INTERPOLATE_ATTRIB );
di = tgsi_default_declaration_interpolation();
di.Interpolate = interpolate;
{
"INTERPOLATE_CONSTANT",
"INTERPOLATE_LINEAR",
- "INTERPOLATE_PERSPECTIVE"
+ "INTERPOLATE_PERSPECTIVE",
+ "INTERPOLATE_ATTRIB"
};
static const char *TGSI_INTERPOLATES_SHORT[] =
{
"CONSTANT",
"LINEAR",
- "PERSPECTIVE"
+ "PERSPECTIVE",
+ "ATTRIB"
};
static const char *TGSI_SEMANTICS[] =
#define TGSI_INTERPOLATE_CONSTANT 0
#define TGSI_INTERPOLATE_LINEAR 1
#define TGSI_INTERPOLATE_PERSPECTIVE 2
+#define TGSI_INTERPOLATE_ATTRIB 3 /**< Vertex shader input attrib */
struct tgsi_declaration_interpolation
{
for (i = 0; i < numInputs; i++) {\r
struct tgsi_full_declaration fulldecl;\r
fulldecl = make_input_decl(i,\r
- TGSI_INTERPOLATE_CONSTANT, /* no interp */\r
+ TGSI_INTERPOLATE_ATTRIB,\r
TGSI_WRITEMASK_XYZW,\r
GL_FALSE, inputSemanticName[i],\r
inputSemanticIndex[i]);\r