summaryrefslogtreecommitdiff
path: root/progs/fp
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-09-13 15:31:46 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-09-13 15:33:07 -0600
commit870afb831921a5c38f22817d9e64d6be7fab235c (patch)
treef0db234304aca5dbfaedb20d581f1724ec6a3f18 /progs/fp
parent809e81c0b424839cb742ff2502b1010c0258b368 (diff)
negate.txt - test negation of a src reg
Diffstat (limited to 'progs/fp')
-rw-r--r--progs/fp/negate.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/fp/negate.txt b/progs/fp/negate.txt
new file mode 100644
index 00000000000..3d00a04a587
--- /dev/null
+++ b/progs/fp/negate.txt
@@ -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