diff options
author | Eric Anholt <eric@anholt.net> | 2016-11-04 13:41:20 -0700 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-11-09 14:13:01 +0000 |
commit | a31947fbf95ee79c7617cf74ebb24a6849e0c9c3 (patch) | |
tree | fb74e95a935ca8ab9b8239a5b9802133e6808e45 /src | |
parent | f7efc0f0fcc6920b46daa8ce73fcba6d76415411 (diff) | |
download | external_mesa3d-a31947fbf95ee79c7617cf74ebb24a6849e0c9c3.zip external_mesa3d-a31947fbf95ee79c7617cf74ebb24a6849e0c9c3.tar.gz external_mesa3d-a31947fbf95ee79c7617cf74ebb24a6849e0c9c3.tar.bz2 |
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>
(cherry picked from commit 283d4d18e598793bbff7d9ba5a601bced9b36542)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 81ac070..0145488 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -1370,7 +1370,7 @@ emit_vert_end(struct vc4_compile *c, struct vc4_varying_slot *fs_inputs, uint32_t num_fs_inputs) { - struct qreg rcp_w = qir_RCP(c, c->outputs[c->output_position_index + 3]); + struct qreg rcp_w = ntq_rcp(c, c->outputs[c->output_position_index + 3]); emit_stub_vpm_read(c); |