965 / GLSL: Use full precision for EXP instruction
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 18 Dec 2008 22:13:26 +0000 (14:13 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 19 Dec 2008 21:06:53 +0000 (13:06 -0800)
The partial precision mode doesn't have quite enough bits of precision
to pass conformance tests.

src/mesa/drivers/dri/i965/brw_vs_emit.c

index 25b4ee85cb07676bdf110dfa2c382c0334ab0bb8..4a9541378f707aa74abffda09ab2e137576d332a 100644 (file)
@@ -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) {