[Piglit] [PATCH 13/40] Port fp-arb-fragment-coord-conventions-integer.vpfp to shader_runner
Kenneth Graunke
kenneth at whitecape.org
Sat Jun 6 19:11:39 PDT 2015
This commit was autogenerated by Python and Bash scripting.
---
tests/all.py | 1 -
.../fp-arb-fragment-coord-conventions-integer.vpfp | 16 -------------
...-fragment-coord-conventions-integer.shader_test | 26 ++++++++++++++++++++++
3 files changed, 26 insertions(+), 17 deletions(-)
delete mode 100644 tests/shaders/generic/fp-arb-fragment-coord-conventions-integer.vpfp
create mode 100644 tests/spec/arb_fragment_coord_conventions/fp-arb-fragment-coord-conventions-integer.shader_test
diff --git a/tests/all.py b/tests/all.py
index b20f557..9ea476b 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -1922,7 +1922,6 @@ with profile.group_manager(
PiglitGLTest,
grouptools.join('spec', 'arb_fragment_coord_conventions')) as g:
add_vpfpgeneric(g, 'fp-arb-fragment-coord-conventions-none')
- add_vpfpgeneric(g, 'fp-arb-fragment-coord-conventions-integer')
with profile.group_manager(
PiglitGLTest,
diff --git a/tests/shaders/generic/fp-arb-fragment-coord-conventions-integer.vpfp b/tests/shaders/generic/fp-arb-fragment-coord-conventions-integer.vpfp
deleted file mode 100644
index 4836aff..0000000
--- a/tests/shaders/generic/fp-arb-fragment-coord-conventions-integer.vpfp
+++ /dev/null
@@ -1,16 +0,0 @@
-; Tests that integer pixel center choice with ARB_fragment_coord_conventions
-; means no fractional component.
-
-!!ARBvp1.0
-OPTION ARB_position_invariant;
-END
-
-!!ARBfp1.0
-OPTION ARB_fragment_coord_pixel_center_integer;
-
-MOV result.color, {0.0, 0.0, 0.0, 0.0};
-FRC result.color.xy, fragment.position;
-END
-
-!!test
-expected 0.0 0.0 0.0 0.0
diff --git a/tests/spec/arb_fragment_coord_conventions/fp-arb-fragment-coord-conventions-integer.shader_test b/tests/spec/arb_fragment_coord_conventions/fp-arb-fragment-coord-conventions-integer.shader_test
new file mode 100644
index 0000000..ee11fb2
--- /dev/null
+++ b/tests/spec/arb_fragment_coord_conventions/fp-arb-fragment-coord-conventions-integer.shader_test
@@ -0,0 +1,26 @@
+# Tests that integer pixel center choice with ARB_fragment_coord_conventions
+# means no fractional component.
+
+[require]
+GL >= 1.3
+ARB_vertex_program
+ARB_fragment_program
+
+[vertex program]
+!!ARBvp1.0
+OPTION ARB_position_invariant;
+END
+
+[fragment program]
+!!ARBfp1.0
+OPTION ARB_fragment_coord_pixel_center_integer;
+
+MOV result.color, {0.0, 0.0, 0.0, 0.0};
+FRC result.color.xy, fragment.position;
+END
+
+[test]
+ortho 0 1 0 1
+draw rect 0 0 1 1
+probe all rgba 0.0 0.0 0.0 0.0
+
--
2.4.2
More information about the Piglit
mailing list