[Piglit] [PATCH 23/40] Port vp-arl-constant-array-huge-relative-offset.vpfp to shader_runner

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


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

diff --git a/tests/all.py b/tests/all.py
index e7a5ac5..1f01443 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -2595,7 +2595,6 @@ with profile.group_manager(
     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-huge-relative-offset')
     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-relative-offset.vpfp b/tests/shaders/generic/vp-arl-constant-array-huge-relative-offset.vpfp
deleted file mode 100644
index 7160817..0000000
--- a/tests/shaders/generic/vp-arl-constant-array-huge-relative-offset.vpfp
+++ /dev/null
@@ -1,147 +0,0 @@
-; Tests loading of a variable entry in a large constant array with an offset.
-
-!!ARBvp1.0
-OPTION ARB_position_invariant;
-PARAM vals[] =	{
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0},
-			{0.5, 1.0, 2.0, 0.0},
-			{1.0, 0.0, 0.8, 0.0},
-			{1.0, 0.0, 0.5, 0.0},
-			{0.8, 1.0, 0.0, 0.0}
-		};
-ADDRESS A0;
-
-ARL A0.x, program.local[0].x;
-MOV result.color, vals[A0.x+109];
-END
-
-!!ARBfp1.0
-MOV result.color, fragment.color;
-END
-
-!!test
-vertex.local[0]   -1.0     0.0      0.0      0.0
-expected          0.5     1.0      1.0      0.0
-!!test
-vertex.local[0]   0.0     0.0      0.0      0.0
-expected          1.0     0.0      0.8      0.0
-!!test
-vertex.local[0]   1.0     0.0      0.0      0.0
-expected          1.0     0.0      0.5      0.0
-!!test
-vertex.local[0]   2.0     0.0      0.0      0.0
-expected          0.8     1.0      0.0      0.0
-
diff --git a/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-relative-offset.shader_test b/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-relative-offset.shader_test
new file mode 100644
index 0000000..24d8d00
--- /dev/null
+++ b/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-relative-offset.shader_test
@@ -0,0 +1,156 @@
+# Tests loading of a variable entry in a large constant array with an offset.
+
+[require]
+GL >= 1.3
+ARB_vertex_program
+ARB_fragment_program
+
+[vertex program]
+!!ARBvp1.0
+OPTION ARB_position_invariant;
+PARAM vals[] =	{
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0},
+			{0.5, 1.0, 2.0, 0.0},
+			{1.0, 0.0, 0.8, 0.0},
+			{1.0, 0.0, 0.5, 0.0},
+			{0.8, 1.0, 0.0, 0.0}
+		};
+ADDRESS A0;
+
+ARL A0.x, program.local[0].x;
+MOV result.color, vals[A0.x+109];
+END
+
+[fragment program]
+!!ARBfp1.0
+MOV result.color, fragment.color;
+END
+
+[test]
+ortho 0 1 0 1
+parameter local_vp 0 (-1.0, 0.0, 0.0, 0.0)
+draw rect 0 0 1 1
+probe all rgba  0.5 1.0 1.0 0.0
+parameter local_vp 0 (0.0, 0.0, 0.0, 0.0)
+draw rect 0 0 1 1
+probe all rgba  1.0 0.0 0.8 0.0
+parameter local_vp 0 (1.0, 0.0, 0.0, 0.0)
+draw rect 0 0 1 1
+probe all rgba  1.0 0.0 0.5 0.0
+parameter local_vp 0 (2.0, 0.0, 0.0, 0.0)
+draw rect 0 0 1 1
+probe all rgba  0.8 1.0 0.0 0.0
+
-- 
2.4.2



More information about the Piglit mailing list