negate.txt - test negation of a src reg
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Sep 2008 21:31:46 +0000 (15:31 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Sep 2008 21:33:07 +0000 (15:33 -0600)
progs/fp/negate.txt [new file with mode: 0644]

diff --git a/progs/fp/negate.txt b/progs/fp/negate.txt
new file mode 100644 (file)
index 0000000..3d00a04
--- /dev/null
@@ -0,0 +1,6 @@
+!!ARBfp1.0
+# this should result in fragment color passing through unchanged
+TEMP R0;
+ADD R0, fragment.color, fragment.color;
+ADD result.color, R0, -fragment.color;
+END