st/mesa: fix bug in emit_adjusted_wpos()
authorBrian Paul <brianp@vmware.com>
Fri, 23 Jul 2010 19:39:36 +0000 (13:39 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 23 Jul 2010 19:42:06 +0000 (13:42 -0600)
commite393350904a48d332d832881af9549400194608c
tree8a8096b511194fed04e95da162ee85f9ecdba73d
parentc65f4fd5ae2ba4ac36d9bd86cdc492df0f1da1b3
st/mesa: fix bug in emit_adjusted_wpos()

If we bias x,y we still need to pass through z,w in case the shader
reads gl_FragCoord.z or .w.

Fixes fd.o bug 29183 (piglit glsl-bug-22603).

NOTE: This is a candidate for the 7.8 branch.
src/mesa/state_tracker/st_mesa_to_tgsi.c