Fixes a bunch of glsl 1.10 interpolation piglit tests.
Signed-off-by: Olivier Galibert <galibert@pobox.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
* src_index.
*
* LP_INTERP_COLOR is translated to either LP_INTERP_CONSTANT or
- * LINEAR depending on flatshade state.
+ * PERSPECTIVE depending on flatshade state.
*/
enum lp_interp {
LP_INTERP_CONSTANT,
if (key->flatshade)
inputs[i].interp = LP_INTERP_CONSTANT;
else
- inputs[i].interp = LP_INTERP_LINEAR;
+ inputs[i].interp = LP_INTERP_PERSPECTIVE;
}
}
if (lp->rasterizer->flatshade)
key->inputs[i].interp = LP_INTERP_CONSTANT;
else
- key->inputs[i].interp = LP_INTERP_LINEAR;
+ key->inputs[i].interp = LP_INTERP_PERSPECTIVE;
}
}