Mesa (intel-2008-q4): 965 / GLSL: Use full precision for EXP instruction

Eric Anholt anholt at kemper.freedesktop.org
Tue Dec 23 23:05:44 UTC 2008


Module: Mesa
Branch: intel-2008-q4
Commit: 2ef18a80c7dbf6fef87da72209e6ec33009a7d56
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ef18a80c7dbf6fef87da72209e6ec33009a7d56

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Thu Dec 18 14:13:26 2008 -0800

965 / GLSL: Use full precision for EXP instruction

The partial precision mode doesn't have quite enough bits of precision
to pass conformance tests.
(cherry picked from commit 7e04272690e8d9deecc0bf71c37bfa4c321ae6ab)

---

 src/mesa/drivers/dri/i965/brw_vs_emit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c
index 25b4ee8..4a95413 100644
--- a/src/mesa/drivers/dri/i965/brw_vs_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c
@@ -420,7 +420,7 @@ static void emit_exp_noalias( struct brw_vs_compile *c,
 		 BRW_MATH_FUNCTION_EXP, 
 		 brw_writemask(dst, WRITEMASK_Z),
 		 brw_swizzle1(arg0, 0), 
-		 BRW_MATH_PRECISION_PARTIAL);
+		 BRW_MATH_PRECISION_FULL);
    }  
 
    if (dst.dw1.bits.writemask & WRITEMASK_W) {




More information about the mesa-commit mailing list