vc4: Use Newton-Raphson on the 1/W write to fix glmark2 terrain.
authorEric Anholt <eric@anholt.net>
Fri, 4 Nov 2016 20:41:20 +0000 (13:41 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Nov 2016 22:34:38 +0000 (15:34 -0700)
commit283d4d18e598793bbff7d9ba5a601bced9b36542
tree3570bd028c34f111aa653afb59912e877acf55a4
parent70fc3a941abc876f8679a32bc9aa83ff3ca2a129
vc4: Use Newton-Raphson on the 1/W write to fix glmark2 terrain.

The 1/W was apparently not accurate enough, and we were getting sparklies
in the distance.  The closed driver also did a N-R step here.

Cc: <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/vc4/vc4_program.c