[Piglit] [PATCH 24/40] Port vp-arl-constant-array-huge-varying.vpfp to shader_runner

Kenneth Graunke kenneth at whitecape.org
Sat Jun 6 19:11:50 PDT 2015


This commit was autogenerated by Python and Bash scripting.
---
 tests/all.py                                       |   1 -
 .../vp-arl-constant-array-huge-varying.vpfp        | 158 -------------------
 .../vp-arl-constant-array-huge-varying.shader_test | 168 +++++++++++++++++++++
 3 files changed, 168 insertions(+), 159 deletions(-)
 delete mode 100644 tests/shaders/generic/vp-arl-constant-array-huge-varying.vpfp
 create mode 100644 tests/spec/arb_vertex_program/vp-arl-constant-array-huge-varying.shader_test

diff --git a/tests/all.py b/tests/all.py
index 1f01443..52f7540 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -2594,7 +2594,6 @@ with profile.group_manager(
     g(['vp-max-array'], run_concurrent=False)
     add_vpfpgeneric(g, 'vp-arl-constant-array')
     add_vpfpgeneric(g, 'vp-arl-constant-array-huge')
-    add_vpfpgeneric(g, 'vp-arl-constant-array-huge-varying')
     add_vpfpgeneric(g, 'vp-arl-constant-array-varying')
     add_vpfpgeneric(g, 'vp-arl-env-array')
     add_vpfpgeneric(g, 'vp-arl-local-array')
diff --git a/tests/shaders/generic/vp-arl-constant-array-huge-varying.vpfp b/tests/shaders/generic/vp-arl-constant-array-huge-varying.vpfp
deleted file mode 100644
index 178d5f4..0000000
--- a/tests/shaders/generic/vp-arl-constant-array-huge-varying.vpfp
+++ /dev/null
@@ -1,158 +0,0 @@
-; Tests loading of a per-vertex variable entry from a constant array.
-
-!!ARBvp1.0
-OPTION ARB_position_invariant;
-PARAM vals[] =	{
-			{ 0.75,  0.25, 0.0, 0.0},
-			{-0.25,  0.25, 0.0, 0.0},
-			{ 0.75, -0.75, 0.0, 0.0},
-			{-0.25, -0.75, 0.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-
-
-
-
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0},
-			{1.0, 0.0, 1.0, 0.0}
-		};
-ADDRESS A0;
-TEMP temp;
-MUL temp.x, vertex.position.y, {2};
-ADD temp.x, temp, vertex.position.x;
-ARL A0.x, temp.x;
-ADD result.color, vals[A0.x], vertex.position.xyzz;
-END
-
-!!ARBfp1.0
-MOV result.color, fragment.color;
-END
-
-!!test
-expected          0.75     0.25      0.0      0.0
diff --git a/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-varying.shader_test b/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-varying.shader_test
new file mode 100644
index 0000000..685f5a3
--- /dev/null
+++ b/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-varying.shader_test
@@ -0,0 +1,168 @@
+# Tests loading of a per-vertex variable entry from a constant array.
+
+[require]
+GL >= 1.3
+ARB_vertex_program
+ARB_fragment_program
+
+[vertex program]
+!!ARBvp1.0
+OPTION ARB_position_invariant;
+PARAM vals[] =	{
+			{ 0.75,  0.25, 0.0, 0.0},
+			{-0.25,  0.25, 0.0, 0.0},
+			{ 0.75, -0.75, 0.0, 0.0},
+			{-0.25, -0.75, 0.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+
+
+
+
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0},
+			{1.0, 0.0, 1.0, 0.0}
+		};
+ADDRESS A0;
+TEMP temp;
+MUL temp.x, vertex.position.y, {2};
+ADD temp.x, temp, vertex.position.x;
+ARL A0.x, temp.x;
+ADD result.color, vals[A0.x], vertex.position.xyzz;
+END
+
+[fragment program]
+!!ARBfp1.0
+MOV result.color, fragment.color;
+END
+
+[test]
+ortho 0 1 0 1
+draw rect 0 0 1 1
+probe all rgba  0.75 0.25 0.0 0.0
+
-- 
2.4.2



More information about the Piglit mailing list