[Piglit] [PATCH] Mesa's asin (and hence atan) implementation is not that precise.

Olivier Galibert galibert at pobox.com
Tue May 8 01:53:33 PDT 2012


diff --git a/tests/shaders/glsl-const-folding-01.shader_test b/tests/shaders/glsl-const-folding-01.shader_test
index e342499..8ba5e66 100644
--- a/tests/shaders/glsl-const-folding-01.shader_test
+++ b/tests/shaders/glsl-const-folding-01.shader_test
@@ -61,7 +61,7 @@ void main()
 		bad_constant_folding();
 	else if (atan(0.0) != 0.0)
 		bad_constant_folding();
-	else if (atan(1.0) <= (3.1415 / 4.0))
+	else if (atan(1.0) <= (3.1412 / 4.0))
 		bad_constant_folding();
 	else if (atan(1.0) >= (3.1416 / 4.0))
 		bad_constant_folding();


More information about the Piglit mailing list