draw: fix non-perspective interpolation in interp()
authorBrian Paul <brianp@vmware.com>
Sat, 16 Feb 2013 18:54:22 +0000 (11:54 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 19 Feb 2013 14:19:18 +0000 (07:19 -0700)
commit5da967aff5adb3e27954488206fb885ea1ede0fd
tree4ca040cb783b76e69f07af22f950f5f8564cc98d
parent07cdfdb708ac28aa487a738db30b128cb0df1dc3
draw: fix non-perspective interpolation in interp()

This fixes a regression from ab74fee5e1a3fc3323b7238278637b232c2d0d95.
When we use the clip coordinate to compute the screen-space interpolation
factor, we need to first apply the divide-by-W step to the clip
coordinate.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=60938

Note: This is a candidate for the 9.1 branch.
src/gallium/auxiliary/draw/draw_pipe_clip.c