Mesa (master): Add a test for the compare opcode.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Feb 23 12:29:33 UTC 2012


Module: Mesa
Branch: master
Commit: 1702d8bdd88dd58b5b7c85911423886986845436
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1702d8bdd88dd58b5b7c85911423886986845436

Author: Alex Corscadden <alexc at vmware.com>
Date:   Wed Sep  8 10:42:41 2010 -0700

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.

---

 .../tests/regress/fragment-shader/frag-cmp.sh      |   12 ++++++++++++
 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 0000000..6681d3f
--- /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




More information about the mesa-commit mailing list