OSDN Git Service

freedreno/a5xx: set fragcoordxy properly
authorRob Clark <robdclark@gmail.com>
Sun, 22 Jan 2017 17:23:27 +0000 (12:23 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 Jan 2017 02:07:25 +0000 (02:07 +0000)
commit516b34908d576eb91157de1722cc3748538af891
treefb98ec02082e61ab11201c182b2f468082faf757
parent0645c0e0d4f8e10d6e178e420405f707644dfdbc
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>
(cherry picked from commit 8d6af93e76bb9e592293b632b22b2b756cc0cae8)
src/gallium/drivers/freedreno/a5xx/fd5_program.c