freedreno/a5xx: set fragcoordxy properly
authorRob Clark <robdclark@gmail.com>
Sun, 22 Jan 2017 17:23:27 +0000 (12:23 -0500)
committerRob Clark <robdclark@gmail.com>
Sun, 22 Jan 2017 19:11:43 +0000 (14:11 -0500)
commit8d6af93e76bb9e592293b632b22b2b756cc0cae8
tree464e03318009ac33d7e4a9e9ff792bed12c2ab66
parent278b97946f8aefc1c9788f85b66e70d12cb23503
freedreno/a5xx: set fragcoordxy properly

What a3xx docs call IJPERSPCENTERREGID.. the xy coord passed into
bary.f.  We were incorrectly setting both this and gl_FragCoord.xy to
the same register resulting in all sorts of hilarity.

Fixes stk, vdrift, 0ad, probably a bunch others.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/freedreno/a5xx/fd5_program.c