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

diff --git a/tests/all.py b/tests/all.py
index 0ebd5fc..3c857d9 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 = [
-                  'POW test (exponentiation)',
                   'RCP test (reciprocal)',
                   'RCP test 2 (reciprocal)',
                   'RSQ test 1 (reciprocal square root)',
diff --git a/tests/glean/tfragprog1.cpp b/tests/glean/tfragprog1.cpp
index 32b8313..37c70c1 100644
--- a/tests/glean/tfragprog1.cpp
+++ b/tests/glean/tfragprog1.cpp
@@ -82,21 +82,6 @@ static GLfloat FogCoord = 50.0;  /* Between FogStart and 
FogEnd */
 // Alphabetical order, please
 static const FragmentProgram Programs[] = {
        {
-               "POW test (exponentiation)",
-               "!!ARBfp1.0\n"
-               "PARAM values = {0.5, 2, 3, 4}; \n"
-               "POW result.color.x, values.x, values.y; \n"
-               "POW result.color.y, values.x, values.z; \n"
-               "POW result.color.z, values.x, values.w; \n"
-               "POW result.color.w, values.w, values.x; \n"
-               "END \n",
-               { 0.5 * 0.5,
-                 0.5 * 0.5 * 0.5,
-                 0.5 * 0.5 * 0.5 * 0.5,
-                 CLAMP01(2.0) },
-               DONT_CARE_Z
-       },
-       {
                "RCP test (reciprocal)",
                "!!ARBfp1.0\n"
                "PARAM values = {8, -10, 1, 12 }; \n"
diff --git a/tests/spec/arb_fragment_program/built-in-functions/pow.shader_test 
b/tests/spec/arb_fragment_program/built-in-functions/pow.shader_test
new file mode 100644
index 0000000..eb6f890
--- /dev/null
+++ b/tests/spec/arb_fragment_program/built-in-functions/pow.shader_test
@@ -0,0 +1,19 @@
+[require]
+GL_ARB_fragment_program
+
+[fragment program]
+!!ARBfp1.0
+PARAM p = program.local[0];
+POW result.color.x, p.x, p.y;
+POW result.color.y, p.x, p.z;
+POW result.color.z, p.x, p.w;
+POW result.color.w, p.w, p.x;
+END
+
+[test]
+clear color 0.5 0.5 0.5 0.5
+clear
+
+parameter local_fp 0 (0.5, 2.0, 3.0, 4.0)
+draw rect -1 -1 2 2
+probe all rgba 0.25 0.125 0.0625 1.0
-- 
git-series 0.8.10
_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to