summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-03-20 11:42:44 -0700
committerDavid Schleef <ds@schleef.org>2011-05-17 10:22:05 -0700
commit2f73959f22d5b2b07aec8cc98ab9a35f2771ca8b (patch)
treeb3a86fba2f8320298f03bf4a7242be2aff5cde22
parentf5cf1c6c6c73f2068843dec2d5cdf47857f7d766 (diff)
Fixes for changes in orc opcodes
-rw-r--r--pixman/pixman-orccode.orc40
1 files changed, 31 insertions, 9 deletions
diff --git a/pixman/pixman-orccode.orc b/pixman/pixman-orccode.orc
index 2592146..969a334 100644
--- a/pixman/pixman-orccode.orc
+++ b/pixman/pixman-orccode.orc
@@ -50,7 +50,7 @@ copyl d1, s1
.dest 4 d1
.source 4 s1
-compadd d1, d1, s1
+addusb4 d1, d1, s1
.function orc_composite_add_8_8_line
@@ -77,14 +77,14 @@ addusb d1, d1, t1
.temp 4 t1
compin t1, s1, s2
-compadd d1, d1, t1
+addusb4 d1, d1, t1
.function orc_code_combine_add_u_n
.dest 4 d1
.source 4 s1
-compadd d1, d1, s1
+addusb4 d1, d1, s1
.function orc_code_combine_over_u
@@ -108,17 +108,39 @@ compover d1, d1, s1
.dest 4 d1
.source 4 s1
.source 4 s2
-.temp 4 t1
-
-compin t1, s1, s2
-compin d1, t1, d1
+#.temp 4 t1
+.temp 8 t2
+.temp 8 t3
+
+#compin t1, s1, s2
+convubw4 t2, s1
+convubw4 t3, s2
+splat0w4 t3, t3
+mullw4 t2, t2, t3
+div255w4 t2, t2
+#convwb4 t1, t2
+#compin d1, t1, d1
+#convubw4 t2, t1
+convubw4 t3, d1
+splat0w4 t3, t3
+mullw4 t2, t2, t3
+div255w4 t2, t2
+convwb4 d1, t2
.function orc_code_combine_in_u_n
.dest 4 d1
.source 4 s1
-
-compin d1, s1, d1
+.temp 8 t1
+.temp 8 t2
+
+convubw4 t1, s1
+convubw4 t2, d1
+splat0w4 t2, t2
+mullw4 t1, t1, t2
+div255w4 t1, t1
+convwb4 d1, t1
+#compin d1, s1, d1
.function orc_code_combine_out_u