llvmpipe: Color slot interpolation can be flat or perspective, not linear.

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>
This commit is contained in:
Olivier Galibert
2012-05-15 22:10:08 +02:00
committed by José Fonseca
parent 4050756804
commit 982df3c1a5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -55,7 +55,7 @@
* 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,
+1 -1
View File
@@ -555,7 +555,7 @@ generate_fragment(struct llvmpipe_context *lp,
if (key->flatshade)
inputs[i].interp = LP_INTERP_CONSTANT;
else
inputs[i].interp = LP_INTERP_LINEAR;
inputs[i].interp = LP_INTERP_PERSPECTIVE;
}
}
@@ -790,7 +790,7 @@ lp_make_setup_variant_key(struct llvmpipe_context *lp,
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;
}
}