New ATTRIB interpolation type for vertex program inputs/declarations.

This commit is contained in:
Brian 2007-10-09 14:36:14 -06:00
parent 47ff9428ee
commit 31bd01f93b
4 changed files with 7 additions and 4 deletions

View file

@ -294,7 +294,7 @@ tgsi_build_declaration_interpolation(
{
struct tgsi_declaration_interpolation di;
assert( interpolate <= TGSI_INTERPOLATE_PERSPECTIVE );
assert( interpolate <= TGSI_INTERPOLATE_ATTRIB );
di = tgsi_default_declaration_interpolation();
di.Interpolate = interpolate;

View file

@ -189,14 +189,16 @@ static const char *TGSI_INTERPOLATES[] =
{
"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[] =

View file

@ -96,6 +96,7 @@ struct tgsi_declaration_mask
#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
{

View file

@ -714,7 +714,7 @@ tgsi_mesa_compile_vp_program(
for (i = 0; i < numInputs; i++) {
struct tgsi_full_declaration fulldecl;
fulldecl = make_input_decl(i,
TGSI_INTERPOLATE_CONSTANT, /* no interp */
TGSI_INTERPOLATE_ATTRIB,
TGSI_WRITEMASK_XYZW,
GL_FALSE, inputSemanticName[i],
inputSemanticIndex[i]);