From 982df3c1a5e99e43f28f849419d4379e6e5d5d05 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Tue, 15 May 2012 22:10:08 +0200 Subject: llvmpipe: Color slot interpolation can be flat or perspective, not linear. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a bunch of glsl 1.10 interpolation piglit tests. Signed-off-by: Olivier Galibert Signed-off-by: José Fonseca --- src/gallium/drivers/llvmpipe/lp_bld_interp.h | 2 +- src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 +- src/gallium/drivers/llvmpipe/lp_state_setup.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/gallium/drivers/llvmpipe/lp_bld_interp.h b/src/gallium/drivers/llvmpipe/lp_bld_interp.h index 5f72b0b8953..b0cbd9bdaec 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_interp.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_interp.h @@ -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, diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index d16952c2ec1..11a3871c408 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -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; } } diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c b/src/gallium/drivers/llvmpipe/lp_state_setup.c index ab38357872d..212bc1b9d05 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_state_setup.c @@ -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; } } -- cgit v1.2.3