[Piglit] [PATCH 13/25] glean/tfragprog1: port SGE test to shader_runner

Dylan Baker dylan at pnwbakers.com
Fri Apr 29 16:50:23 UTC 2016


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 tests/all.py                                         |  1 -
 tests/glean/tfragprog1.cpp                           | 14 --------------
 .../built-in-functions/sge.shader_test               | 20 ++++++++++++++++++++
 3 files changed, 20 insertions(+), 15 deletions(-)
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/sge.shader_test

diff --git a/tests/all.py b/tests/all.py
index 4fbf31b..8b480cd 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -376,7 +376,6 @@ glean_glsl_tests = ['Primary plus secondary color',
                     'texcoord varying']
 
 glean_fp_tests = [
-                  'SGE test',
                   'SIN test',
                   'SIN test 2',
                   'SLT test',
diff --git a/tests/glean/tfragprog1.cpp b/tests/glean/tfragprog1.cpp
index 0ca8837..955166b 100644
--- a/tests/glean/tfragprog1.cpp
+++ b/tests/glean/tfragprog1.cpp
@@ -82,20 +82,6 @@ static GLfloat FogCoord = 50.0;  /* Between FogStart and FogEnd */
 // Alphabetical order, please
 static const FragmentProgram Programs[] = {
 	{
-		"SGE test",
-		"!!ARBfp1.0\n"
-		"PARAM p0 = program.local[0]; \n"
-		"PARAM p2 = program.local[2]; \n"
-		"SGE result.color, p2, p0; \n"
-		"END \n",
-		{ Param2[0] >= Param0[0] ? 1.0 : 0.0,
-		  Param2[1] >= Param0[1] ? 1.0 : 0.0,
-		  Param2[2] >= Param0[2] ? 1.0 : 0.0,
-		  Param2[3] >= Param0[3] ? 1.0 : 0.0,
-		},
-		DONT_CARE_Z
-	},
-	{
 		"SIN test",
 		"!!ARBfp1.0\n"
 		"PARAM values = { 1.57079, -1.57079, 0.5, 1.0 }; \n"
diff --git a/tests/spec/arb_fragment_program/built-in-functions/sge.shader_test b/tests/spec/arb_fragment_program/built-in-functions/sge.shader_test
new file mode 100644
index 0000000..c2a774f
--- /dev/null
+++ b/tests/spec/arb_fragment_program/built-in-functions/sge.shader_test
@@ -0,0 +1,20 @@
+[require]
+GL_ARB_fragment_program
+
+[fragment program]
+!!ARBfp1.0
+PARAM p = program.local[0];
+PARAM q = program.local[1];
+PARAM r = {1.0, 1.0, 0.0, 0.0};
+MOV result.color, q;
+SGE result.color, p, q;
+END
+
+[test]
+clear color 0.5 0.5 0.5 0.5
+clear
+
+parameter local_fp 0 (1.0, 0.1,  0.0, -0.5)
+parameter local_fp 1 (0.0, 0.0, -1.0,  1.0)
+draw rect -1 -1 2 2
+probe all rgba 1.0 1.0 1.0 0.0
-- 
2.8.0



More information about the Piglit mailing list