[Piglit] [PATCH 08/13] glean/glsl1: Delete duplicated fp precision tests.

Matt Turner mattst88 at gmail.com
Sat Jul 5 23:03:20 PDT 2014


---
 tests/all.py           |  2 --
 tests/glean/tglsl1.cpp | 35 -----------------------------------
 2 files changed, 37 deletions(-)

diff --git a/tests/all.py b/tests/all.py
index 539ef23..f1a20ba 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -168,8 +168,6 @@ glean_glsl_tests = [
                     'chained assignment',
                     'assignment operators',
                     'cross() function, in-place',
-                    'precision exp2',
-                    'precision log2',
                     'discard statement (1)',
                     'discard statement (2)',
                     'discard statement in for loop',
diff --git a/tests/glean/tglsl1.cpp b/tests/glean/tglsl1.cpp
index 7a661c8..bf0268b 100644
--- a/tests/glean/tglsl1.cpp
+++ b/tests/glean/tglsl1.cpp
@@ -416,41 +416,6 @@ static const ShaderProgram Programs[] = {
 		FLAG_NONE
 	},
 
-	// Floating Point Precision ==========================================
-	{
-		"precision exp2",
-		NO_VERTEX_SHADER,
-		"uniform vec4 uniform1; \n"
-		"void main() { \n"
-		"   vec4 vals = vec4(-0.999992, -0.988281, -0.535149, -0.496090); \n"
-		"   vals *= uniform1.xxxx; // multply by one \n"
-		"   vec4 actual = exp2(vals); \n"
-		"   vec4 expected = vec4(0.500003, 0.504078, 0.690087, 0.709026); \n"
-		"   vec4 error = abs((actual - expected) / expected); \n"
-		"   gl_FragColor = vec4(lessThan(error, vec4(1e-04))); \n"
-		"} \n",
-		{ 1.0, 1.0, 1.0, 1.0 },
-		DONT_CARE_Z,
-		FLAG_NONE
-	},
-
-	{
-		"precision log2",
-		NO_VERTEX_SHADER,
-		"uniform vec4 uniform1; \n"
-		"void main() { \n"
-		"   vec4 vals = vec4(0.125096, 0.250265, 0.500301, 2.001205); \n"
-		"   vals *= uniform1.xxxx; // multiply by one \n"
-		"   vec4 actual = log2(vals); \n"
-		"   vec4 expected = vec4(-2.998889, -1.998471, -0.999131, 1.000869); \n"
-		"   vec4 error = abs(actual - expected); \n"
-		"   gl_FragColor = vec4(lessThan(error, vec4(1e-05))); \n"
-		"} \n",
-		{ 1.0, 1.0, 1.0, 1.0 },
-		DONT_CARE_Z,
-		FLAG_NONE
-	},
-
 	// Flow Control ======================================================
 	{
 		"discard statement (1)",
-- 
1.8.3.2



More information about the Piglit mailing list