Add a test for the compare opcode.
authorAlex Corscadden <alexc@vmware.com>
Wed, 8 Sep 2010 17:42:41 +0000 (10:42 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 23 Feb 2012 12:29:29 +0000 (12:29 +0000)
This is a test for the compare opcode (CMP).  This should draw a green triangle
in the fs-test.

src/gallium/tests/python/tests/regress/fragment-shader/frag-cmp.sh [new file with mode: 0644]

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 (file)
index 0000000..6681d3f
--- /dev/null
@@ -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