summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests
diff options
context:
space:
mode:
authorAlex Corscadden <[email protected]>2010-09-08 10:42:41 -0700
committerJosé Fonseca <[email protected]>2012-02-23 12:29:29 +0000
commit1702d8bdd88dd58b5b7c85911423886986845436 (patch)
tree47be7b53dbcb7b8f2e34d3a4cf51239913fa9188 /src/gallium/tests
parent132daa87fbb78f136de3e7c6e7823ada652a70cf (diff)
Add a test for the compare opcode.
This is a test for the compare opcode (CMP). This should draw a green triangle in the fs-test.
Diffstat (limited to 'src/gallium/tests')
-rw-r--r--src/gallium/tests/python/tests/regress/fragment-shader/frag-cmp.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/tests/python/tests/regress/fragment-shader/frag-cmp.sh b/src/gallium/tests/python/tests/regress/fragment-shader/frag-cmp.sh
new file mode 100644
index 00000000000..6681d3f2d18
--- /dev/null
+++ b/src/gallium/tests/python/tests/regress/fragment-shader/frag-cmp.sh
@@ -0,0 +1,12 @@
+FRAG
+
+DCL IN[0], COLOR, LINEAR
+DCL OUT[0], COLOR
+
+IMM FLT32 { 1, 0, 0, 1 }
+IMM FLT32 { 0, 1, 1, 0 }
+IMM FLT32 { 1, 0,-1, 0 }
+
+CMP OUT[0], IMM[2], IMM[0], IMM[1]
+
+END