[Piglit] [PATCH 04/40] Port arl.vpfp to shader_runner
Kenneth Graunke
kenneth at whitecape.org
Sat Jun 6 19:11:30 PDT 2015
This commit was autogenerated by Python and Bash scripting.
---
tests/all.py | 1 -
tests/shaders/generic/arl.vpfp | 23 -------------------
tests/spec/arb_vertex_program/arl.shader_test | 32 +++++++++++++++++++++++++++
3 files changed, 32 insertions(+), 24 deletions(-)
mode change 100755 => 100644 tests/all.py
delete mode 100644 tests/shaders/generic/arl.vpfp
create mode 100644 tests/spec/arb_vertex_program/arl.shader_test
diff --git a/tests/all.py b/tests/all.py
old mode 100755
new mode 100644
index 19ad73a..3be8825
--- a/tests/all.py
+++ b/tests/all.py
@@ -2606,7 +2606,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, 'arl')
add_vpfpgeneric(g, 'big-param')
add_vpfpgeneric(g, 'dataflow-bug')
add_vpfpgeneric(g, 'fogcoord-dp3')
diff --git a/tests/shaders/generic/arl.vpfp b/tests/shaders/generic/arl.vpfp
deleted file mode 100644
index 4a63912..0000000
--- a/tests/shaders/generic/arl.vpfp
+++ /dev/null
@@ -1,23 +0,0 @@
-; Detects whether or not the implementation correctly uses floor() for ARL
-; or incorrectly uses round().
-
-!!ARBvp1.0
-OPTION ARB_position_invariant;
-
-ADDRESS A0;
-PARAM p[2] = { program.local[0..1] };
-
-ARL A0.x, program.local[2].x;
-MOV result.color, p[A0.x];
-END
-
-!!ARBfp1.0
-MOV result.color, fragment.color;
-END
-
-!!test
-vertex.local[0] 0.0 1.0 0.0 1.0
-vertex.local[1] 1.0 0.0 0.0 1.0
-vertex.local[2] 0.99999 0.0 0.0 0.0
-expected 0.0 1.0 0.0 1.0
-
diff --git a/tests/spec/arb_vertex_program/arl.shader_test b/tests/spec/arb_vertex_program/arl.shader_test
new file mode 100644
index 0000000..a628322
--- /dev/null
+++ b/tests/spec/arb_vertex_program/arl.shader_test
@@ -0,0 +1,32 @@
+# Detects whether or not the implementation correctly uses floor() for ARL
+# or incorrectly uses round().
+
+[require]
+GL >= 1.3
+ARB_vertex_program
+ARB_fragment_program
+
+[vertex program]
+!!ARBvp1.0
+OPTION ARB_position_invariant;
+
+ADDRESS A0;
+PARAM p[2] = { program.local[0..1] };
+
+ARL A0.x, program.local[2].x;
+MOV result.color, p[A0.x];
+END
+
+[fragment program]
+!!ARBfp1.0
+MOV result.color, fragment.color;
+END
+
+[test]
+ortho 0 1 0 1
+parameter local_vp 0 (0.0, 1.0, 0.0, 1.0)
+parameter local_vp 1 (1.0, 0.0, 0.0, 1.0)
+parameter local_vp 2 (0.99999, 0.0, 0.0, 0.0)
+draw rect 0 0 1 1
+probe all rgba 0.0 1.0 0.0 1.0
+
--
2.4.2
More information about the Piglit
mailing list