aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-11-29 16:25:43 -0800
committerEric Anholt <eric@anholt.net>2011-12-12 15:05:49 -0800
commitb37a3c4089df760f2dfdd656fcc4298dbb2d1995 (patch)
tree7448ae7d280878e3f2a498a3cb65208ae80e176b
parenta3650e2455c3264ee602d6f5f4c2a74dd710d4c6 (diff)
ARB_fragment_program/lrp_sat: Convert lrp_sat.fp to shader_runner.
-rw-r--r--tests/shaders/generic/lrp_sat.fp15
-rw-r--r--tests/spec/arb_fragment_program/lrp_sat.shader_test21
2 files changed, 21 insertions, 15 deletions
diff --git a/tests/shaders/generic/lrp_sat.fp b/tests/shaders/generic/lrp_sat.fp
deleted file mode 100644
index b98033b4..00000000
--- a/tests/shaders/generic/lrp_sat.fp
+++ /dev/null
@@ -1,15 +0,0 @@
-1 3 0
-tc
- 0.5 0.0 1.0 0.0
- 1.5 4.5 2.0 1.0
--0.5 4.5 3.5 1.0
-tex
-expected
- 0.25 0.5 0.5 0.5
-
-!!ARBfp1.0
-TEMP r0;
-LRP_SAT r0, fragment.texcoord[0], fragment.texcoord[1], fragment.texcoord[2];
-MUL result.color, 0.5, r0;
-END
-; comment
diff --git a/tests/spec/arb_fragment_program/lrp_sat.shader_test b/tests/spec/arb_fragment_program/lrp_sat.shader_test
new file mode 100644
index 00000000..2f06e487
--- /dev/null
+++ b/tests/spec/arb_fragment_program/lrp_sat.shader_test
@@ -0,0 +1,21 @@
+[vertex program]
+!!ARBvp1.0
+MOV result.position, vertex.position;
+MOV result.texcoord[0], program.env[0];
+MOV result.texcoord[1], program.env[1];
+MOV result.texcoord[2], program.env[2];
+END
+
+[fragment program]
+!!ARBfp1.0
+TEMP r0;
+LRP_SAT r0, fragment.texcoord[0], fragment.texcoord[1], fragment.texcoord[2];
+MUL result.color, 0.5, r0;
+END
+
+[test]
+parameter env_vp 0 (0.5, 0.0, 1.0, 0.0)
+parameter env_vp 1 (1.5, 4.5, 2.0, 1.0)
+parameter env_vp 2 (-0.5, 4.5, 3.5, 1.0)
+draw rect -1 -1 2 2
+probe all rgba 0.25 0.5 0.5 0.5