summaryrefslogtreecommitdiff
path: root/progs/fp
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-09-12 08:40:50 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-09-12 08:40:50 -0600
commitc436f96b1073495bd6ba66769b4a8605a3775c0c (patch)
treed390faf3b464dc058163026cbfe0203c8ab17f4a /progs/fp
parent0c0e5b71c0fb18f7ead2884a8c1429d00c090e18 (diff)
simple add with swizzle and mul with swizzle tests
Diffstat (limited to 'progs/fp')
-rw-r--r--progs/fp/add-swz.txt5
-rw-r--r--progs/fp/mul-swz.txt3
2 files changed, 8 insertions, 0 deletions
diff --git a/progs/fp/add-swz.txt b/progs/fp/add-swz.txt
new file mode 100644
index 000000000..5ec51bcb8
--- /dev/null
+++ b/progs/fp/add-swz.txt
@@ -0,0 +1,5 @@
+!!ARBfp1.0
+TEMP R0;
+ADD R0, fragment.color, fragment.color;
+ADD result.color, R0.xxxx, R0;
+END
diff --git a/progs/fp/mul-swz.txt b/progs/fp/mul-swz.txt
new file mode 100644
index 000000000..7ef2f5863
--- /dev/null
+++ b/progs/fp/mul-swz.txt
@@ -0,0 +1,3 @@
+!!ARBfp1.0
+MUL result.color, fragment.color.zyxw, fragment.color;
+END