[Piglit] [PATCH 34/40] Port vp-constant-negate.vpfp to shader_runner

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


This commit was autogenerated by Python and Bash scripting.
---
 tests/all.py                                       |  1 -
 tests/shaders/generic/vp-constant-negate.vpfp      | 22 ---------------
 .../vp-constant-negate.shader_test                 | 31 ++++++++++++++++++++++
 3 files changed, 31 insertions(+), 23 deletions(-)
 delete mode 100644 tests/shaders/generic/vp-constant-negate.vpfp
 create mode 100644 tests/spec/arb_vertex_program/vp-constant-negate.shader_test

diff --git a/tests/all.py b/tests/all.py
index eb7507e..921e775 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-constant-negate')
     add_vpfpgeneric(g, 'vp-exp-alias')
     add_vpfpgeneric(g, 'vp-max')
     add_vpfpgeneric(g, 'vp-min')
diff --git a/tests/shaders/generic/vp-constant-negate.vpfp b/tests/shaders/generic/vp-constant-negate.vpfp
deleted file mode 100644
index b33f9f1..0000000
--- a/tests/shaders/generic/vp-constant-negate.vpfp
+++ /dev/null
@@ -1,22 +0,0 @@
-; Checks for a bug in the 965 driver in handling negation of constants.
-
-!!ARBvp1.0
-OPTION ARB_position_invariant;
-
-TEMP temp1, temp2;
-MOV temp1, 2.0;
-MOV temp2, -2.0;
-ADD temp1, temp1, temp2;
-ABS temp1, temp1;
-SLT temp1, -temp1, {0.0};
-MOV result.color, {0.0, 1.0, 0.0, 0.0};
-MOV result.color.x, temp1;
-END
-
-!!ARBfp1.0
-MOV result.color, fragment.color;
-END
-
-!!test
-expected          0.0     1.0      0.0      0.0
-
diff --git a/tests/spec/arb_vertex_program/vp-constant-negate.shader_test b/tests/spec/arb_vertex_program/vp-constant-negate.shader_test
new file mode 100644
index 0000000..e2fb3be
--- /dev/null
+++ b/tests/spec/arb_vertex_program/vp-constant-negate.shader_test
@@ -0,0 +1,31 @@
+# Checks for a bug in the 965 driver in handling negation of constants.
+
+[require]
+GL >= 1.3
+ARB_vertex_program
+ARB_fragment_program
+
+[vertex program]
+!!ARBvp1.0
+OPTION ARB_position_invariant;
+
+TEMP temp1, temp2;
+MOV temp1, 2.0;
+MOV temp2, -2.0;
+ADD temp1, temp1, temp2;
+ABS temp1, temp1;
+SLT temp1, -temp1, {0.0};
+MOV result.color, {0.0, 1.0, 0.0, 0.0};
+MOV result.color.x, temp1;
+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.0 1.0 0.0 0.0
+
-- 
2.4.2



More information about the Piglit mailing list