Module: Mesa
Branch: master
Commit: 283d4d18e598793bbff7d9ba5a601bced9b36542
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=283d4d18e598793bbff7d9ba5a601bced9b36542

Author: Eric Anholt <e...@anholt.net>
Date:   Fri Nov  4 13:41:20 2016 -0700

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-sta...@lists.freedesktop.org>

---

 src/gallium/drivers/vc4/vc4_program.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_program.c 
b/src/gallium/drivers/vc4/vc4_program.c
index f4be5f4..33cd135 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -1421,7 +1421,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);
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to