summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_wm_fp.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-05-19 08:48:42 -0700
committerEric Anholt <eric@anholt.net>2011-05-26 10:07:38 -0700
commitf147599ef4b0d14c25a7e0d3f9f1c9b0229bb6fc (patch)
tree38041ac862ffd96cd8c64fb9b735d1e2f2d18f91 /src/mesa/drivers/dri/i965/brw_wm_fp.c
parentc095335fa54498ec54e4587b5f84ad6afd8f1857 (diff)
downloadexternal_mesa3d-f147599ef4b0d14c25a7e0d3f9f1c9b0229bb6fc.zip
external_mesa3d-f147599ef4b0d14c25a7e0d3f9f1c9b0229bb6fc.tar.gz
external_mesa3d-f147599ef4b0d14c25a7e0d3f9f1c9b0229bb6fc.tar.bz2
i965: Remove linear_color for GL_PERSPECTIVE_CORRECTION_HINT.
From the GL 2.1 spec: "Required perspective-correct interpolation for all fragment attributes except depth in sections 3.4.1 and 3.5.1, effectively making GL PERSPECTIVE CORRECT HINT a no-op." Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_fp.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_fp.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index 9ddbee2..59dcda7 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c
@@ -417,25 +417,14 @@ static void emit_interp( struct brw_wm_compile *c,
src_undef());
}
else {
- if (c->key.linear_color) {
- emit_op(c,
- WM_LINTERP,
- dst,
- 0,
- interp,
- deltas,
- src_undef());
- }
- else {
- /* perspective-corrected color interpolation */
- emit_op(c,
- WM_PINTERP,
- dst,
- 0,
- interp,
- deltas,
- get_pixel_w(c));
- }
+ /* perspective-corrected color interpolation */
+ emit_op(c,
+ WM_PINTERP,
+ dst,
+ 0,
+ interp,
+ deltas,
+ get_pixel_w(c));
}
break;
case FRAG_ATTRIB_FOGC: