mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
New ATTRIB interpolation type for vertex program inputs/declarations.
This commit is contained in:
parent
47ff9428ee
commit
31bd01f93b
4 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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[] =
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue