tgsi: remove special-case code for fragment position
authorBrian Paul <brianp@vmware.com>
Fri, 5 Feb 2010 16:42:00 +0000 (09:42 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 5 Feb 2010 17:00:00 +0000 (10:00 -0700)
commitcea2b8d65609756fed46f3904db8a6945f0dd769
treeab13b8f719373ecccd645dbca3347c3bb6338ecd
parent476b668ccc3f234676dbd3f15207eafe7965222e
tgsi: remove special-case code for fragment position

Since the origin_lower_left / pixel_center_origin changes, we need
to use the fragcoord info that's set up in setup_fragcoord_coeff().
The code in exec_declaration() was clobbering the the interpolated
fragment position.

Fixes progs/glsl/fragcoord.c demo.
src/gallium/auxiliary/tgsi/tgsi_exec.c