[Piglit] [PATCH 29/40] Port vp-arl-local-array.vpfp to shader_runner
Kenneth Graunke
kenneth at whitecape.org
Sat Jun 6 19:11:55 PDT 2015
This commit was autogenerated by Python and Bash scripting.
---
tests/all.py | 1 -
tests/shaders/generic/vp-arl-local-array.vpfp | 22 ---------------
.../vp-arl-local-array.shader_test | 31 ++++++++++++++++++++++
3 files changed, 31 insertions(+), 23 deletions(-)
delete mode 100644 tests/shaders/generic/vp-arl-local-array.vpfp
create mode 100644 tests/spec/arb_vertex_program/vp-arl-local-array.shader_test
diff --git a/tests/all.py b/tests/all.py
index 3c31431..92a583f 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -2592,7 +2592,6 @@ with profile.group_manager(
g(['vp-address-04'], run_concurrent=False)
g(['vp-bad-program'], run_concurrent=False)
g(['vp-max-array'], run_concurrent=False)
- add_vpfpgeneric(g, 'vp-arl-local-array')
add_vpfpgeneric(g, 'vp-arl-neg-array')
add_vpfpgeneric(g, 'vp-arl-neg-array-2')
add_vpfpgeneric(g, 'vp-constant-array')
diff --git a/tests/shaders/generic/vp-arl-local-array.vpfp b/tests/shaders/generic/vp-arl-local-array.vpfp
deleted file mode 100644
index 6022c3c..0000000
--- a/tests/shaders/generic/vp-arl-local-array.vpfp
+++ /dev/null
@@ -1,22 +0,0 @@
-; Tests loading of a variable entry from an array of program locals.
-
-!!ARBvp1.0
-OPTION ARB_position_invariant;
-PARAM vals[4] = { program.local[1..4] };
-ADDRESS A0;
-ARL A0.x, program.local[0].x;
-MOV result.color, vals[A0.x+0];
-END
-
-!!ARBfp1.0
-MOV result.color, fragment.color;
-END
-
-!!test
-vertex.local[0] 3.0 0.0 0.0 0.0
-vertex.local[1] 0.5 1.0 2.0 0.0
-vertex.local[2] 1.0 0.0 1.0 0.0
-vertex.local[3] 1.0 0.0 0.5 0.0
-vertex.local[4] 0.8 1.0 0.0 0.0
-expected 0.8 1.0 0.0 0.0
-
diff --git a/tests/spec/arb_vertex_program/vp-arl-local-array.shader_test b/tests/spec/arb_vertex_program/vp-arl-local-array.shader_test
new file mode 100644
index 0000000..19ebe7d
--- /dev/null
+++ b/tests/spec/arb_vertex_program/vp-arl-local-array.shader_test
@@ -0,0 +1,31 @@
+# Tests loading of a variable entry from an array of program locals.
+
+[require]
+GL >= 1.3
+ARB_vertex_program
+ARB_fragment_program
+
+[vertex program]
+!!ARBvp1.0
+OPTION ARB_position_invariant;
+PARAM vals[4] = { program.local[1..4] };
+ADDRESS A0;
+ARL A0.x, program.local[0].x;
+MOV result.color, vals[A0.x+0];
+END
+
+[fragment program]
+!!ARBfp1.0
+MOV result.color, fragment.color;
+END
+
+[test]
+ortho 0 1 0 1
+parameter local_vp 0 (3.0, 0.0, 0.0, 0.0)
+parameter local_vp 1 (0.5, 1.0, 2.0, 0.0)
+parameter local_vp 2 (1.0, 0.0, 1.0, 0.0)
+parameter local_vp 3 (1.0, 0.0, 0.5, 0.0)
+parameter local_vp 4 (0.8, 1.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