mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
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:
parent
4050756804
commit
982df3c1a5
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue