[Piglit] [PATCH 35/40] Port vp-exp-alias.vpfp to shader_runner

Kenneth Graunke kenneth at whitecape.org
Sat Jun 6 19:12:01 PDT 2015


This commit was autogenerated by Python and Bash scripting.
---
 tests/all.py                                       |  1 -
 tests/shaders/generic/vp-exp-alias.vpfp            | 20 ---------------
 .../arb_vertex_program/vp-exp-alias.shader_test    | 29 ++++++++++++++++++++++
 3 files changed, 29 insertions(+), 21 deletions(-)
 delete mode 100644 tests/shaders/generic/vp-exp-alias.vpfp
 create mode 100644 tests/spec/arb_vertex_program/vp-exp-alias.shader_test

diff --git a/tests/all.py b/tests/all.py
index 921e775..ad3701c 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-exp-alias')
     add_vpfpgeneric(g, 'vp-max')
     add_vpfpgeneric(g, 'vp-min')
     add_vpfpgeneric(g, 'vp-sge-alias')
diff --git a/tests/shaders/generic/vp-exp-alias.vpfp b/tests/shaders/generic/vp-exp-alias.vpfp
deleted file mode 100644
index 0ecc791..0000000
--- a/tests/shaders/generic/vp-exp-alias.vpfp
+++ /dev/null
@@ -1,20 +0,0 @@
-; Detects whether or not the implementation correctly handles aliasing
-; of src/dst in EXP.
-
-!!ARBvp1.0
-OPTION ARB_position_invariant;
-TEMP temp1;
-
-MOV temp1, {1, 2.5, 2, 0};
-EXP temp1, temp1.y;
-; EXP result should be {4, .5, 5.65, 1.0};
-ADD result.color, temp1, {-3.5, 0, -5.15, -0.5};
-END
-
-!!ARBfp1.0
-MOV result.color, fragment.color;
-END
-
-!!test
-expected          0.5     0.5      0.5      0.5
-
diff --git a/tests/spec/arb_vertex_program/vp-exp-alias.shader_test b/tests/spec/arb_vertex_program/vp-exp-alias.shader_test
new file mode 100644
index 0000000..5fa4ed3
--- /dev/null
+++ b/tests/spec/arb_vertex_program/vp-exp-alias.shader_test
@@ -0,0 +1,29 @@
+# Detects whether or not the implementation correctly handles aliasing
+# of src/dst in EXP.
+
+[require]
+GL >= 1.3
+ARB_vertex_program
+ARB_fragment_program
+
+[vertex program]
+!!ARBvp1.0
+OPTION ARB_position_invariant;
+TEMP temp1;
+
+MOV temp1, {1, 2.5, 2, 0};
+EXP temp1, temp1.y;
+# EXP result should be {4, .5, 5.65, 1.0};
+ADD result.color, temp1, {-3.5, 0, -5.15, -0.5};
+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.5 0.5 0.5 0.5
+
-- 
2.4.2



More information about the Piglit mailing list