llvmpipe: Color slot interpolation can be flat or perspective, not linear.
authorOlivier Galibert <galibert@pobox.com>
Tue, 15 May 2012 20:10:08 +0000 (22:10 +0200)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 16 May 2012 12:12:04 +0000 (13:12 +0100)
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/gallium/drivers/llvmpipe/lp_bld_interp.h
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_state_setup.c

index 5f72b0b..b0cbd9b 100644 (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,
index d16952c..11a3871 100644 (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;
       }
    }
 
index ab38357..212bc1b 100644 (file)
@@ -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;
       }
    }