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:
committed by
José Fonseca
parent
4050756804
commit
982df3c1a5
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user